Skip to content
XSS Write-up Beginner

Stored XSS in yahoo and subdomains

A stored cross-site scripting vulnerability existed in the comment feature on Yahoo and its subdomains, allowing an attacker to inject malicious scripts that would execute in other users' browsers. The attacker could run arbitrary JavaScript in the context of the victim's session.

Hakim Bencella Follow

Published on medium.com

Bounty$1,500 View original

#### Hakim Bencella

Hakim Bencella, 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 execute arbitrary JavaScript in the context of Yahoo's domain, potentially affecting any user who views the comment.

What the attacker needed

Ability to post a comment on Yahoo

The fix

The vulnerability was fixed according to the timeline.

How it was found

  1. Go to the Yahoo website.
  2. Post a comment containing a script payload.
  3. The script executes when the comment is viewed.

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.

Stored cross-site scripting (XSS) is when a website saves user input, like a comment, without properly cleaning it, and later shows it to other users. If the input contains code (JavaScript), the browser runs it as if it came from the website, letting the attacker do things like steal cookies or act as the user.

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 Microsoft

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.