Skip to content
XSS Write-up Beginner

How I found reflected XSS on Yahoo subdomain

A reflected cross-site scripting flaw existed in the search results page of a Yahoo subdomain, where user input in the URL fragment was reflected without proper sanitisation. An attacker could craft a link that executes arbitrary JavaScript in a victim's browser.

Syntax Error Follow

Published on medium.com

When 2017 started,I had a bounty goal of finding a bug in Yahoo but I never actually got time to look into their program. One day I planned to go for it.So here is the writeup on how I found Reflective XSS on a yahoo subdomain.

Syntax Error, 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 search results page reflected the keywords parameter from the URL fragment into the HTML without encoding or filtering dangerous characters.

Impact

An attacker could execute arbitrary JavaScript in a victim's browser by tricking them into clicking a crafted link, though the report does not detail specific consequences beyond script execution.

What the attacker needed

Victim clicks a crafted link

The fix

The issue was fixed the next day after reporting, but the fix was incomplete as a bypass was later found.

How it was found

  1. Find subdomains of the target using a subdomain enumeration tool.
  2. Visit the search page on the identified subdomain.
  3. Enter a test payload in the search bar to see which characters are filtered.
  4. Observe that the payload executes as script in the browser.

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 takes input from a user and puts it into a page without cleaning it, so an attacker can make the site run their own JavaScript. Here, the search term in the web address was echoed back into the page, letting a crafted link run code in the visitor'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 Syntax Error

View all

1 more disclosed report, 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.