Java-based CSRF vulnerability in addons.mozilla.org
Originally disclosed on Mozilla
- Fixed in 57 days
- Paid in 2.9 years
- Disclosed after 57 days
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
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.