Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
define('PHPWG_ROOT_PATH','./');
include_once(PHPWG_ROOT_PATH.'include/common.inc.php');

echo $_GET['asdf'];

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reflected XSS Vulnerability in tags.php (Severity: MEDIUM)

A reflected cross-site scripting (XSS) vulnerability exists in tags.php, allowing an attacker to inject arbitrary JavaScript code into the application's response, which can lead to account compromise or data theft. Specifically, the application directly reflects the value of the asdf parameter from the query string using echo $_GET['asdf'] on line 16 without proper sanitization, resulting in execution of any provided JavaScript within the user's browser.
View details in ZeroPath

Suggested change
echo $_GET['asdf'];
echo htmlspecialchars(isset($_GET['asdf']) ? $_GET['asdf'] : '', ENT_QUOTES, 'UTF-8');

echo $_GET['asdf'];

check_status(ACCESS_GUEST);
Expand Down