Skip to content
XSS Write-up Beginner

Reflected XSS in Yahoo

A reflected cross-site scripting flaw existed in the film path of Yahoo's main and Canadian sites, allowing an attacker to run script in a victim's browser. The author demonstrated this with a crafted URL that triggered an alert showing the domain.

Shahzada AL Shahriar Khan Follow

Published on medium.com

Bounty$700 View original

Shahzada Al Shahriar KhanThursday, August 31, 2017 Bug Bounty Cross-Site Scripting Ethical Hacking Hackerone Reflected XSS in Yahoo XSS In Yahoo

Shahzada AL Shahriar Khan, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the application reflected part of the URL path into the HTML response without proper encoding or sanitisation.

Impact

An attacker could execute arbitrary JavaScript in a victim's browser in the context of Yahoo's domain, potentially leading to session theft or other client-side attacks.

What the attacker needed

Victim clicks a crafted link

The fix

The report was resolved after triage, though the exact fix is not described.

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 write-up has not been written yet. The Original tab links to the source.

Cross-site scripting (XSS) is when a website puts user-supplied text into a page without making it safe, so an attacker can make the site run their own code. Here, the film part of the web address was reflected back into the page, letting a crafted link pop up a JavaScript alert. This could be used to steal cookies or perform actions as the victim.

What is XSS?

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

More from Yahoo! / Verizon Media

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.