Skip to content
XSS Disclosed report Beginner

Reflected XSS on ███████

A page that handles redirects reflected a URL parameter into the HTML without escaping it, so a crafted link ran script in the victim's browser. An attacker could use this to run JavaScript as the victim, which the author says could lead to cookie theft and account takeover.

nagli Follow

Originally disclosed on HackerOne

  • Triaged in under an hour
  • Fixed in 3 days
  • Disclosed after 3 days

Summary: Reflected Cross site Scripting (XSS) on████leaving.html?url=%22%3E%3Cscript%3Ealert(document.domain)%3C/script%3E

Steps To Reproduce:

  1. Navigate to███leaving.html?url=
  2. Enter a crafted XSS payload like "><script>alert("xss by nagli")</script>
  3. Alert will pop :-)

█████████

How can the system be exploited with this bug? The attacker can execute JS code, which could lead to stealing cookies and full account takeover.

Recommendations for fix Content based escaping on the users input, in this case on the redirect parameter.

Best Regards, nagli

Impact

Attacker can execute JS code on the Victim Behalf.

The original report as published on HackerOne, by nagli. 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 redirect parameter was written into the page without output encoding, so HTML and script characters were treated as markup.

Impact

The attacker can run JavaScript in the victim's browser, which the author claims could lead to stealing cookies and full account takeover.

What the attacker needed

Victim clicks a crafted link

How it was found

  1. Open the leaving page with an empty url parameter.
  2. Put a crafted script payload into the url parameter.
  3. Load the resulting link and the script runs, showing an alert.

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 site puts something you typed straight into the page without cleaning it, you can sneak in code that the browser then runs. Here the site took a value from the address bar and placed it into the page as if it were part of the site's own code. Because the browser trusts the site, that code runs with the victim's logged-in session.

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 nagli

View all

33 more disclosed reports, best first.

More from U.S. Dept Of Defense

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.