Skip to content
CSRF Disclosed report

XSS in developer.mozilla.org (that allows CSRF-token bypass in addons.mozilla.org)

James Kettle Follow

Originally disclosed on Mozilla

  • Fixed in 4 hours
  • Paid in 2.6 years
  • Disclosed after 4 hours
Text
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20110103 Fedora/3.6.13-1.fc14 Firefox/3.6.13
Build Identifier: 

As the PoC demonstrates, developer.mozilla.org is vulnerable to XSS. Since it has the same parent domain as addons.mozilla.org it can set arbitrary cookies for AMO. The PoC, after the popup, overrides the AMO 'csrftoken' cookie. If you then try to edit your user details on AMO you will see the csrftoken has changed to 'cow'; a value chosen by the attacker.

Note that this does not directly expose AMO to CSRF, since (as far as I can see) the Referer checking defence on AMO can't be bypassed.

Reproducible: Always

Steps to Reproduce:
Click the URL.
Browse to https://addons.mozilla.org/en-US/firefox/users/edit and note that the csrftoken has changed to cow.



This could be tricky to patch, as there are probably plenty more XSS vulnerabilities in developer.mozilla.org. All I can think of is storing CSRF tokens server-side on AMO or redirecting developer.mozilla.org to a different domain name.

-Sorry I choose the wrong product/component category. Couldn't see one for developer.mozilla.org
-I figure this isn't bounty worthy, since it's only half a bypass.

The original report as published on Mozilla's Bugzilla, by Jаmes Kettle. Images and videos are our own copies; raw HTML is shown as text. View it on Mozilla's Bugzilla.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

What is known

A CSRF bug in Wiki pages. Mozilla made it public on 10 April 2011.

About CSRF

Another site makes a signed-in user's browser perform an action they did not intend.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

What is CSRF?

Another site makes a signed-in user's browser perform an action they did not intend.

More by James Kettle

View all

14 more disclosed reports, best first.

More from Mozilla

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site request forgery (CSRF)

The lesson behind this report.

Another site makes a signed-in user's browser perform an action they did not intend.