Firefox jar: Protocol Vulnerability

I just came across pdp's finding jar protocol vulnerability on Mozilla Firefox, I think its a big issue, and the fact that it has been on bugzilla (#369814) for way more than ten fuck*ng days is not a good thing.

According to pdp, this issue makes vulnerable to Cross-site scripting applications that allow users uploading compressed ZIP, and JAR files. After a couple of minutes messing around the poc's, I figured out that sites with open redirect issues are vulnerable too. I've created this poc that attacks Gmail, it's based on my previous post and it will only show your contacts list, it's not being logged server side or anything (as some people thought that my previous poc did. Credit to tx for discovering the open redirect issue used to exploit Google / Firefox):

http://beford.org/stuff/jarjarbinks.htm

Who's fault? Both, Google for having open redirect issues and not fixing them, and Mozilla Corporation for failing to address this problem.

What can I do to protect myself? Giorgio Maone have already added protection against this flaw to NoScript development version.

Update: NoScript released stable version with Jar protection. A new bugzilla (#403331) entry was created to fix the inappropiate redirect on jar protocol, according to the lastest comments and bug keyword, there seems to be a patch and will be availible with Firefox 2.0.0.10.

This entry was posted in English, Security, XSS and tagged , , , , , , . Bookmark the permalink.

21 Responses to Firefox jar: Protocol Vulnerability

  1. Pingback: Severe XSS in Google and Others due to the JAR protocol issues | GNUCITIZEN

  2. pdp says:

    impressive, nice find!

  3. kuza55 says:

    Boom! That’s a bombshell and a half….Nice find.

    Though its probably worth explaining (to people who don’t want to run the PoC) that the actual issue here that makes open redirects such an issue is that the jar: protocol following redirects, but doesn’t actually change the domain.

    So all redirects are vulnerable if you can get them to point to any zip file.

  4. kuza55 says:

    I just checked and redirects which use the Refresh header rather than the Location header seem to be immune.

  5. Pingback: Firefox Security Threat - Google is vulnerable | dailyApps

  6. Nicolas says:

    s/languaje/language/ on jarjarbinks.htm.

  7. beford says:

    Nicolas: Thanks, fixed.

  8. Pingback: hackademix.net » A Jar of Misleading Advices

  9. Pingback: Luka w Firefoksie obejmuje u?ytkowników Gmail - IT Blog

  10. Pingback: Security Tips » Jarring Firefox Exploit Endangers Google Accounts

  11. Luca says:

    i could not manipulate cookies.
    it only affects csrf ?

  12. Pingback: Luka w Firefoksie obejmuje u?ytkowników Gmail | thecamels.org

  13. Pingback: ICMPECHO » Blog Archive » Firefox JAR: vulnerability - quick summary

  14. Pingback: XAM » Blog Archive » Luka w Firefoksie obejmuje u?ytkowników Gmail

  15. beford says:

    Luca: You should be able to read cookies, I didn’t try too hard but my first test with Gmail was a simple alert(document.cookies) and It worked.

  16. Pingback: Ryan Naraine’s Zero Day mobile edition

  17. Pingback: Firefox aç???ndan Gmail k?r?labilir | www.dahii.com

  18. Pingback:   Firefox aç???ndan Gmail k?r?labilir — Bili?imin do?ru adresi…

  19. Pingback: Firefox JAR Vulnerability Continues — Link to Gmail POC « lucky13

  20. Pingback: BlogZilla » Falla "JAR:" per Firefox, XSS per Gmail

  21. Pingback: beford.org » Firefox 2.0.0.10 released

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>