Skip to content
XSS Write-up Beginner

Reflected XSS on ww.yahoo.com

A Yahoo page reflected user-supplied text from the URL path back into the HTML without proper encoding, so a crafted link could run script in the visitor's browser. An attacker could use such a link to execute JavaScript in the context of the Yahoo domain.

Samuel Follow

Published on medium.com

Hello guys, my name is Samuel I’m a bug hunter from Chile, it’s my first post about bug bounty programs. Today, I want to share with you a XSS which I found in main domain of Yahoo.

Samuel, 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

Impact

An attacker could run script in a victim's browser under the Yahoo domain via a crafted link, though the report gives no further detail on what that script could achieve.

What the attacker needed

Victim clicks a crafted link

The fix

The report does not describe the fix, but the reflected value should be HTML-encoded or otherwise sanitised before being placed in the page.

How it was found

  1. Open the author page on the main Yahoo domain.
  2. Put text into the author part of the URL and observe it reflected on the page.
  3. Add a payload that closes the existing script tag and opens a new one, and see the script run.

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.

When a website takes something you typed or put in a link and shows it back on the page, it must treat it as plain text. Here it did not, so a link could carry hidden code that the browser runs as if Yahoo itself wrote it. That lets an attacker act as the site in the victim's browser.

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 Samuel

View all

4 more disclosed reports, best first.

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.