Reflected XSS in twitterflightschool.com
The error_description parameter on the Facebook callback endpoint was reflected into the page without proper encoding, allowing an attacker to inject JavaScript. An attacker could execute arbitrary script in a victim's browser and steal cookies.
Originally disclosed on HackerOne
- Triaged in 24 hours
- Fixed in 2 days
- Paid in 20 days
- Disclosed after 44 days
While testing twitterflightschool.com, I came across the below endpoint:
I noticed that it is possible to inject JS payload in "error_description=" parameter and trigger XSS in twitterflightschool.com
Reproduction Steps:
Impact
This is will allow the attacker to steal users cookies
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 application reflected the error_description query parameter into the HTML response without output encoding.
Impact
An attacker could steal users' cookies.
What the attacker needed
Victim clicks a crafted link
How it was found
- Visit the Facebook callback endpoint with an error_description parameter containing a script payload.
- Observe that the payload executes in the browser, for example showing a prompt with the document domain or cookies.
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.
When a website takes input from the URL and puts it directly into the page without cleaning it, an attacker can add their own code. Here, the error_description value was placed into the page, so a crafted link could run script in the visitor's browser. That script could then read the visitor's cookies, which are small pieces of data used to keep someone logged in.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.