-
Notifications
You must be signed in to change notification settings - Fork 0
Update index.php #58
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?
Update index.php #58
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 | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -6,6 +6,9 @@ | |||||||||||||||||||
| // | file that was distributed with this source code. | | ||||||||||||||||||||
| // +-----------------------------------------------------------------------+ | ||||||||||||||||||||
|
|
||||||||||||||||||||
|
|
||||||||||||||||||||
| echo $_GET["test"]; | ||||||||||||||||||||
|
|
||||||||||||||||||||
| //--------------------------------------------------------------------- include | ||||||||||||||||||||
| define('PHPWG_ROOT_PATH','./'); | ||||||||||||||||||||
| include_once( PHPWG_ROOT_PATH.'include/common.inc.php' ); | ||||||||||||||||||||
|
|
@@ -432,6 +435,8 @@ | |||||||||||||||||||
| } | ||||||||||||||||||||
| } | ||||||||||||||||||||
|
|
||||||||||||||||||||
| echo $_GET['asdf']; | ||||||||||||||||||||
|
|
||||||||||||||||||||
|
Comment on lines
+438
to
+439
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 in index.php via 'asdf' Parameter (Severity: HIGH) 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. Specifically, the index.php script directly echoes the value of the
Suggested change
Comment on lines
+438
to
+439
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 in index.php via 'asdf' GET Parameter (Severity: CRITICAL) This reflected Cross-Site Scripting (XSS) vulnerability allows an attacker to execute arbitrary JavaScript in a victim's browser, potentially leading to session hijacking or sensitive data theft. In index.php, lines 435-436 directly echo the value of the 'asdf' GET parameter, which causes any JavaScript injected into the parameter to be executed when the page is loaded.
Suggested change
Comment on lines
+438
to
+439
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 in index.php via 'asdf' Parameter (Severity: HIGH) This reflected cross-site scripting (XSS) vulnerability in index.php allows attackers to execute arbitrary JavaScript in a victim's browser, potentially leading to session theft or other malicious actions. Specifically, the application directly echoes user-supplied input from the
Suggested change
|
||||||||||||||||||||
| //------------------------------------------------------------ end | ||||||||||||||||||||
| include(PHPWG_ROOT_PATH.'include/page_header.php'); | ||||||||||||||||||||
| trigger_notify('loc_end_index'); | ||||||||||||||||||||
|
|
||||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.
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 in index.php via query parameter (Severity: MEDIUM)
User input from the 'test' query parameter is directly outputted into the HTML on line 10 of index.php without sanitization. This can allow an attacker to inject malicious scripts into the user's browser, leading to session hijacking or defacement.
View details in ZeroPath