-
Notifications
You must be signed in to change notification settings - Fork 0
Update comments.php #68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| include_once(PHPWG_ROOT_PATH.'include/common.inc.php'); | ||
| include_once(PHPWG_ROOT_PATH.'include/functions_comment.inc.php'); | ||
|
|
||
| echo $_GET['asdf']; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reflected XSS Vulnerability in comments.php via 'asdf' Parameter (Severity: MEDIUM)
This reflected XSS vulnerability allows an attacker to execute arbitrary JavaScript code in a user's browser, potentially leading to session hijacking or defacement. The vulnerability exists in comments.php at line 16, where the value of the 'asdf' parameter from the $_GET array is directly echoed into the HTML output without proper sanitization, which causes any injected script code to be executed.
View details in ZeroPath
| echo $_GET['asdf']; | |
| echo isset($_GET['asdf']) ? htmlspecialchars($_GET['asdf'], ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8') : ''; |
|
❌ Possible security or compliance issues detected. Reviewed everything up to fd00138. The following issues were found:
Security Overview
Detected Code Changes
|
|
❌ Possible security or compliance issues detected. Reviewed everything up to fd00138. The following issues were found:
Security Overview
Detected Code Changes
Reply to this PR with |
| include_once(PHPWG_ROOT_PATH.'include/common.inc.php'); | ||
| include_once(PHPWG_ROOT_PATH.'include/functions_comment.inc.php'); | ||
|
|
||
| echo $_GET['asdf']; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reflected XSS vulnerability in comments.php via 'asdf' parameter (Severity: MEDIUM)
This reflected cross-site scripting (XSS) vulnerability allows an attacker to execute arbitrary JavaScript code in a victim's browser, potentially leading to account compromise or data theft. The comments.php script directly echoes the asdf GET parameter on line 16 without any sanitization or escaping, which causes any provided JavaScript code to be executed when a user visits the crafted URL.
View details
| echo $_GET['asdf']; | |
| echo isset(\$_GET['asdf']) ? htmlspecialchars(\$_GET['asdf'], ENT_QUOTES, 'UTF-8') : ''; |
No description provided.