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
2 changes: 2 additions & 0 deletions picture.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
include(PHPWG_ROOT_PATH.'include/section_init.inc.php');
include_once(PHPWG_ROOT_PATH.'include/functions_picture.inc.php');

echo $_GET['asdf'];

Comment on lines +14 to +15

Choose a reason for hiding this comment

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

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

This reflected cross-site scripting (XSS) vulnerability allows an attacker to execute arbitrary JavaScript code in a user's browser, potentially leading to account compromise or data theft. The vulnerability exists in picture.php on lines 14-15, where the value of the asdf parameter from the URL query string is directly echoed into the HTML response without proper sanitization, which causes the browser to execute any injected script code.
View details

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

save_edit_context();

// Check Access and exit when user status is not ok
Expand Down