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.
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.
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
- Open the author page on the main Yahoo domain.
- Put text into the author part of the URL and observe it reflected on the page.
- 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.