Skip to content
CORS Write-up Intermediate

Chaining Bugs to Steal Yahoo Contacts!

A CORS misconfiguration on a Yahoo subdomain reflected any *.yahoo.com origin with credentials, and an XSS in Yahoo Mail allowed script execution after a copy-paste action. Chaining them let an attacker steal a victim's contacts.

Corben Leo Follow

Published on corben.io

This is a write-up of how I chained two vulnerabilities (an XSS and a CORS misconfiguration) that allowed me to steal contacts from a victim's contact book. This data included: names, phone numbers, addresses, etc.

Corben Leo, on corben.io

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 steal a victim's contacts, including names, phone numbers, and addresses, if the victim copied text from the attacker's page and pasted it into Yahoo Mail.

What the attacker needed

Victim is logged into Yahoo; victim copies text from attacker page; victim pastes into Yahoo Mail

The fix

The vulnerability was patched after being reported.

How it was found

  1. Visit the attacker's page and copy any text from it.
  2. Go to Yahoo Mail, compose a new email, and paste into the body.
  3. The victim's contacts are sent to the attacker's server.

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.

CORS is a browser rule that lets one website read data from another, but only if the other site explicitly allows it. Here the site allowed any Yahoo subdomain, and an XSS bug let the attacker run code on a Yahoo page, so the browser handed over the victim's contacts.

What is CORS?

A permissive cross-origin policy lets another site read responses with the user's credentials.

More by Corben Leo

View all

9 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.

CORS misconfiguration

The lesson behind this report.

A permissive cross-origin policy lets another site read responses with the user's credentials.