[controlsyou.quora.com] 429 Too Many Requests Error-Page XSS
The 429 error page on a Quora subdomain reflected the URL path into an inline Google Analytics script without sanitisation. An attacker could craft a link that executes JavaScript in the victim's browser on that subdomain.
- Triaged in 28 days
- Fixed in 60 days
- Paid in 28 days
- Disclosed after 4 months
Summary: XSS on the error page when the user makes too many requests.
Steps To Reproduce
- Make a lot of requests to get the error 429
- Open PoC in FireFox
https://controlsyou.quora.com/'-alert(document.domain)-'
HTTP Response
<script type="text/javascript">
...
ga('set', 'dimension1', 'board-'-alert(document.domain)-'');
ga('set', 'dimension2', 'False');
ga('set', 'dimension3', 'False');});});</script>
Optional: Your Environment (Browser version, Device, app version, os version etc)
Tested on FireFox 50.0.2
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the error page inserted the request path into an inline script without escaping it for JavaScript context.
What the attacker needed
Victim clicks a crafted link; server returns a 429 error page
How it was found
- Send many requests to the subdomain until the server returns a 429 error.
- Open the crafted URL in Firefox to trigger the script.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A website put part of the web address back into the page inside a script, so a crafted address could make the browser run attacker-chosen JavaScript on that site.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.