Paid Advertising
web application security lab

Login State Detection in Firefox

Jeremiah has been on a roll lately. Not just releasing some of the old stuff but he’s actually be coming up with some very cutting edge new stuff too. Most recently he’s found that you can detect if someone is logged in or not by trapping JavaScript errors created by including the HTML page as script. Crazy!

Click here for the PoC (you must be using Firefox and have JavaScript enabled). He demonstrates the vulnerability in Yahoo Mail, Gmail, Hotmail, Google, MySpace, Blogger, Flickr, My MSN, and SearchAppSecurity Techtarget. This allows him to perform a similar function to the CSS History hack, except this time, SafeHistory isn’t going to help you since it’s JavaScript only.

We talked about this at some length and we believe that it would be pretty easy to build custom scripts for almost any website. So much for the same origin policy. The really scary implications are that the way this is built it’s not just a binary operation. It could easily be expanded to detect multiple states of a web-page. You would have to know what it would look like in those various states, but it’s definitely possible. Great job, Jeremiah!

9 Responses to “Login State Detection in Firefox”

  1. Jungsonn Says:

    Brilliant, really who thinks of this? :)

  2. zeno Says:

    “He demonstrates the vulnerability in Yahoo Mail, Gmail, Hotmail, Google, MySpace, Blogger, Flickr, My MSN, and SearchAppSecurity Techtarget.”

    I wouldn’t say these websites are ‘vuln’ per say perhaps work on your wording a bit? :)

    - zeno
    http://www.cgisecurity.com

  3. RSnake Says:

    The wording is odd, yes… what I was saying is he demonstrates the vuln using those sites. But yes, it’s not a vulnerability in their sites, per se.

  4. WhiteAcid Says:

    The GMail one failed for me, but the myspace one worked (those are the only ones I could test).

  5. maluc Says:

    the yahoo one failed for me but probably becuz it’s the Beta .. which i dont use

    it’s just a PoC one though.. can probably make it more robust before actual use. (and port to IE, which should be possible).

    very handy..

  6. Mephisto Says:

    The GMail failed, but both My MSN and Hotmail worked. The next question is, is it possible to ride/hijack the sessions of these accounts that returned as being “Logged In”??

  7. Hep_yalan_dolan Says:

    Yahoo was the only one worked for me,but at least NoScript add-on decreases my attack surface.
    And yeah, i agree with Mephisto,let’s advance to the next “ride/hijack” step.

  8. Além da linha inimiga » Blog Archive » Detectando o teu login com Firefox Says:

    […] Lido em Kriptópolis Fonte original: Login State Detection in Firefox […]

  9. maluc Says:

    well the ride/hijack is a separate attack in itself.. which will need either a CSRF or XSS vulnerability. Or using mhtml if you port this to IE. Unless Jeremiah also pulls a global CSRF out of his (White)Hat that works for FF too..

Respond here or Discuss On the Forums