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'];

Choose a reason for hiding this comment

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

Reflected XSS in picture.php via 'asdf' Parameter (Severity: MEDIUM)

This reflected cross-site scripting (XSS) vulnerability allows an attacker to execute arbitrary JavaScript in a user's browser, potentially leading to account compromise or data theft. The issue occurs in picture.php at line 14, where the value of the asdf parameter from the $_GET array is directly echoed into the HTML response without proper sanitization or escaping. This allows an attacker to inject malicious script tags into the URL, which are then executed when a user visits the crafted link.
View details in ZeroPath

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


save_edit_context();

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