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

Stored XSS in static/js/trape.js #169

gaochua opened this issue Jun 15, 2019 · 0 comments


Copy link

commented Jun 15, 2019


User input is embedded in admin interface through jQuery's unsafe prepend() method. This leads to Cross-site Scripting attack.
The vulnerability is in The vulnerable parameters are country, query, refer sent in POST /register request.

Proof of concept

  1. python --url --port 8080
  2. Send the following HTTP request
POST /register HTTP/1.1
Host: <victim_url>	
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:67.0) Gecko/20100101 Firefox/67.0
Accept: application/json, text/javascript, */*; q=0.01
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With: XMLHttpRequest
Content-Length: 332
Connection: close
Referer: <victim_url>

  1. Open the Control Panel link, we see alert() box.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.