Persistent XSS in Mozilla Add-Ons Site
The Name field of a user-created collection on Mozilla's add-ons site was reflected unencoded inside an HTML title tag, so a crafted name broke out of the tag and ran script for anyone viewing the collection. An attacker could use the stored script to serve malware, run malicious campaigns or drive-by downloads.
Published on respectxss.blogspot.com
2 CHE FACEVA SESSO CON UN BAMBINO DI 11 ANNI A RAVENNA. COME AVRETE NOTATO NEL VIDEO, LA PEDOFILA TANTO QUANTO, ANSELMA DELL'OLIO, DAVA DEL GENIO AL SUO COMPARE PEDERASTA GIUSEPPE LAZZARI.
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 collection Name was inserted into an HTML title tag without encoding, allowing the tag to be closed early and script injected.
Impact
The stored script ran for anyone viewing the collection and could be used to serve malware, run malicious campaigns or trigger drive-by downloads; the issue was later fixed.
What the attacker needed
A free account; victim opens the collection link
The fix
The stored XSS was fixed after the bug was filed.
How it was found
- Create a collection and put special characters in the Name field to see how they are handled.
- View the collection page and observe the name reflected inside an HTML tag without encoding.
- Craft a name that closes the title tag early and adds a script handler.
- Save the collection and open its public URL to confirm the script runs.
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.
A collection is a public list of add-ons that any logged-in user can create and share by link. The site put the collection's name into the page without cleaning it, so a name containing HTML code could add its own script to the page. Because the name is saved and shown to every visitor, the script ran for anyone who opened the collection link.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.