Skip to content
CSRF Disclosed report

Java-based CSRF vulnerability in addons.mozilla.org

Neal Poole Follow

Originally disclosed on Mozilla

  • Fixed in 57 days
  • Paid in 2.9 years
  • Disclosed after 57 days
Text
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
Build Identifier: 

I'm reporting this under the terms of the Web Application Security Bug Bounty program (http://www.mozilla.org/security/bug-bounty-faq-webapp.html).

addons.mozilla.org is vulnerable to a malicious attacker uploading a .jar file containing Java code. Due to Java's same-origin policy, Java code hosted on a domain can make requests back to that same domain (using that domain's cookies) regardless of where the actual <applet> HTML is.

An attacker simply has to bundle a valid install.rdf with a malicious Java class inside of a .jar file. The Addons site will accept the upload (with a warning about the .class file) and serve the JAR directly from https://addons.mozilla.org

A proof of concept that returns the currently logged in user's CSRF token can be found at http://nealpoole.com/d4db563417b2664443dd16afffb05199.html

Reproducible: Always

Steps to Reproduce:
1. Create malicious .jar file (evil .class file, good install.rdf)
2. Upload as Firefox extension
3. Get URL, create page on arbitrary third party domain containing <applet> tag
4. Get logged in addons.mozilla.org users to visit your page
5. Make arbitrary requests on their behalf

The original report as published on Mozilla's Bugzilla, by Neal Poole. 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 Developer Pages. Mozilla made it public on 10 February 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 Neal Poole

View all

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