Skip to content
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

[Security] XSS in demos/demo.mysqli.php of getID 3 #341

Closed
seongil-wi opened this issue Sep 10, 2021 · 1 comment · Fixed by #342
Closed

[Security] XSS in demos/demo.mysqli.php of getID 3 #341

seongil-wi opened this issue Sep 10, 2021 · 1 comment · Fixed by #342

Comments

@seongil-wi
Copy link

Describe the bug
Reflected Cross-Site Scripting (XSS) may allow an attacker to execute JavaScript code in the context of the victim’s browser. This may lead to unauthorised actions being performed, unauthorised access to data, stealing of session information, denial of service, etc. An attacker needs to coerce a user into visiting a link with the XSS payload to be properly exploited against a victim.

To Reproduce
Steps to reproduce the behavior:

  1. Access to the following link: http://[localhost]/getID3/demos/demo.mysqli.php?encoderoptionsdistribution=1&showtagfiles=%3Cscript%3Ealert(1)%3C/script%3E
  2. Boom!

Where the Issue Occurred
The code below displays the user-controlled parameter showtagfiles without sufficient sanitization:

echo 'Files with Encoder Options <b>'.$_REQUEST['showtagfiles'].'</b>:<br>';

@StudioMaX
Copy link
Collaborator

Well, besides this XSS, there are a lot of other weird problems in the demo files. Therefore, they are disabled by default.

die('Due to a security issue, this demo has been disabled. It can be enabled by removing line '.__LINE__.' in demos/'.basename(__FILE__));

But in any case, this will be fixed in #342. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants