Skip to content
XSS Disclosed report Beginner

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.

Sarmad Hassan Follow

Originally disclosed on HackerOne

Informational View original
  • Triaged in 24 hours
  • Fixed in 2 days
  • Paid in 20 days
  • Disclosed after 44 days

The original report as published on HackerOne, by jubabaghdad. 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 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

  1. Visit the Facebook callback endpoint with an error_description parameter containing a script payload.
  2. 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.

More by Sarmad Hassan

View all

1 more disclosed report, best first.

More from X / xAI

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.