Skip to content
This repository has been archived by the owner on Jul 28, 2022. It is now read-only.

A Reflected XSS vulnerability in unaired.php #1

Closed
jgj212 opened this issue Mar 24, 2017 · 1 comment
Closed

A Reflected XSS vulnerability in unaired.php #1

jgj212 opened this issue Mar 24, 2017 · 1 comment

Comments

@jgj212
Copy link

jgj212 commented Mar 24, 2017

Hello:
I have find a Reflected XSS vulnerability.

The vulnerability exists due to insufficient filtration of user-supplied data in "episodeID" HTTP parameter that will be passed to "HelpMeWatchWho-master/unaired.php". The infected source code is line 4, there is no protection on $_GET['episodeID'], if it contains evil js code, line 42 will trigger untrusted code to be executed on the browser side.
1

So if a attacker construct a special url as follow and send it to a victim, when the victim click the url, the code which is contained in the url will be executed on the victim's browser side to do some evil.
http://your-web-root/HelpMeWatchWho-master/unaired.php?episodeID='/><script>alert(1);</script><"

The follow scrrenshot is the result to click the upper url ( win7 sp1 x64 + firefox 51.0.1 32bit ):
2

Discoverer: ADLab of Venustech

TheFirstQuestion added a commit that referenced this issue Mar 29, 2017
@TheFirstQuestion
Copy link
Owner

Thank you for pointing this out! This issue was resolved in the most recent commit (e23a510).

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

No branches or pull requests

2 participants