-
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?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -13,6 +13,8 @@ | |||||
| 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 commentThe 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
Suggested change
|
||||||
|
|
||||||
| if (!$conf['activate_comments']) | ||||||
| { | ||||||
| page_not_found(null); | ||||||
|
|
||||||
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