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 nbm.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
trigger_notify('loading_lang');
load_language('lang', PHPWG_ROOT_PATH.PWG_LOCAL_DIR, array('no_fallback'=>true, 'local'=>true) );

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 nbm.php (Severity: MEDIUM)

This reflected cross-site scripting (XSS) vulnerability in nbm.php allows an attacker to inject arbitrary JavaScript into the application, potentially leading to session hijacking or defacement. The vulnerability exists because the application directly reflects the asdf parameter from the GET request in the response on line 24 without proper sanitization or escaping, which causes the browser to execute any injected scripts.
View details in ZeroPath

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



// +-----------------------------------------------------------------------+
// | Main |
Expand Down