But Most of All, Samy is my Hero.
A stored cross-site scripting (XSS) vulnerability in MySpace allowed a self-replicating JavaScript payload to spread across over a million profiles in 24 hours. An attacker could have used the same technique to steal login cookies, install keyloggers, or execute code on visitors' computers.
medium.com
Published on medium.com
The four words were used on more than 1 million MySpace profiles in 2005 — in a single day.
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
The same method could have stolen login cookies, giving full account access to a million users, or planted keyloggers, and with a browser vulnerability could even execute code on the computer.
What the attacker needed
Victim visits a profile page; site stores user content without sanitisation
The fix
The text recommends validating inputs, encoding outputs, and using a Content Security Policy.
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.
This is about a type of bug called stored cross-site scripting (XSS). When a website saves user-supplied content without cleaning it, an attacker can hide a small script in that content. Later, when other people view the page, their browsers run the script because they trust the site, which can let the attacker do things like steal their login cookies.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.