Slashdot Mirror


Spoofing Flaw Resurfaces in Mozilla Browsers

GregThePaladin writes "A 7-year-old flaw that could let an attacker place malicious content on trusted Web sites has resurfaced in the most recent Firefox browser, Secunia has warned. The flaw, which also affects some other Mozilla Foundation programs, lies in the way the software handles frames. The applications don't check whether the frames displayed in a single window all originate from the same Web site." Commentary on this at whitedust as well.

53 of 258 comments (clear)

  1. So secure by Anonymous Coward · · Score: 4, Funny

    Oh, damn IE for being so insecure. Wait, this is about an Open Source browser---damn IE for being so insecure!

    1. Re:So secure by ZephyrXero · · Score: 3, Insightful

      " Oh, damn IE for being so insecure. Wait, this is about an Open Source browser---damn IE for being so insecure!"

      There will never be such a thing as a 100% secure browser. It's all about which one is "more" secure... Even with the holes found in Firefox it's still many times safer than IE. Not only that, but these holes are usually patched in a matter of days, while with MS your lucky if it gets fixed in a few months.

      --
      "A truly wise man realizes he knows nothing."
    2. Re:So secure by camcorder · · Score: 2, Insightful

      You can dump FireFox if you want not to use it because of security problems. But what's your chance with IE?

    3. Re:So secure by Anonymous Coward · · Score: 5, Informative

      IE has the same flaw also, so parent should not be moderated as funny, but as informative.

      http://secunia.com/advisories/11966/

    4. Re:So secure by rbochan · · Score: 2, Informative

      Indeed it does. I just found that to be the case on fully updated/patched Win2k and 9x systems when I just tested them.

      --
      ...Rob
      The American Dream isn't an SUV and a house in the suburbs; it's Don't Tread On Me.
    5. Re:So secure by Mant · · Score: 3, Insightful

      IE has this issue, want to bet which browser will fix it first? (hint, Mozilla fixed it before)

    6. Re:So secure by ZephyrXero · · Score: 4, Interesting

      I'm not being irrational. Let me give you an example. I am the sys admin for a small network at a university. I have made all the faculty in my dept. switch over to firefox, and some to thunderbird as well, and I don't have to go around once a week getting rid of viruses, spyware, and adware like I did when they were all using IE. They don't have installation privaleges on their accounts, yet somehow these things kept getting installed till I made them start using Firefox. That's what I call a "more secure" browser...

      --
      "A truly wise man realizes he knows nothing."
  2. Exploits? by /ASCII · · Score: 4, Insightful

    The number of Firefox vulnerabilities that have been exposed is frightening. But I wonder when the first actual exploit will be found...

    --
    Try out fish, the friendly interactive shell.
    1. Re:Exploits? by strider44 · · Score: 2, Informative

      It is very unlikely that this would really be worth exploiting. It relies on the person opening this up in a new window (not a tab), leaving it open then coming back and clicking on another link. The links have to be clicked first one then the other.

      Before anyone could think of a way to exploit this this'd be fixed I think.

    2. Re:Exploits? by /ASCII · · Score: 3, Insightful

      Got any links to sites describing real, live firefox exploits and the problems they've caused?

      --
      Try out fish, the friendly interactive shell.
    3. Re:Exploits? by ZephyrXero · · Score: 4, Insightful

      frightening??? I'm a big fan of open source, and i'm actually pretty amazed the number has been so small. It's just about the first open source program to really become popular and I think Mozilla's doing a damn find job of keeping up with the hax0rz...

      --
      "A truly wise man realizes he knows nothing."
    4. Re:Exploits? by unformed · · Score: 3, Informative

      Did you even read the article?


      NOTE: Exploitation can easily be made "automatic". However, since this example only serves as a test to give users an understanding of how it works, we have chosen not to do so.


      Regardless, I don't consider this to be too big of deal. Th exploit can be used for a phishing attack, when a trusted site is using frames. A nontrusted site then replaces one of the inner pages with a fake lookalike, but the user can't tell, becasuse the address isn't shown in the address bar.

      Banks using frames for the trusted portion of their sites is extremely bad design, and I don't know of any that does that anyways.

    5. Re:Exploits? by rubycodez · · Score: 2, Insightful

      really? I'd say the number is very tiny given the size of the code. On the other hand, given the age and size of a certain other browser, the number of vulnerabilities and the number of known exploits is HUGE, as is the estimated cost of damage done to business.

  3. what about tabs? by farker+haiku · · Score: 5, Interesting

    from TFA:
    For a spoofing attempt to work, a surfer would need to have both the attacker's Web site and a trusted Web site open in different windows.

    So, uh, what about tabs? 'Cause I never have 2 windows open at the same time.

    --
    Your sig(k) has been stolen. There is a puff of smoke!
    1. Re:what about tabs? by Punkrokkr · · Score: 5, Informative

      I tried it in tabs, spoof does not work across tabs; just seperate windows.

      --

      There's no emoticon for what I'm feeling! -- CBG, "The Computer Wore Menace Shoes"
    2. Re:what about tabs? by farker+haiku · · Score: 2, Insightful

      I use the tabbed browsing extension that disables all of that bullcrap. Find it. Love it. /too lazy to google it for you.

      --
      Your sig(k) has been stolen. There is a puff of smoke!
    3. Re:what about tabs? by whoever57 · · Score: 2, Interesting
      I tried it in tabs, spoof does not work across tabs; just seperate windows.

      In Galeon, it does work across tabs.

      --
      The real "Libtards" are the Libertarians!
  4. The exploit by k4_pacific · · Score: 4, Funny

    Type: Spoofing
    Exploit: Local
    Effects: All browsers

    Description:
    A 7 year old vulnerability has been discovered in multiple browsers, allowing malicious people to spoof the content of websites.

    The problem is that the browsers don't check if a piece of black electrical tape is on the screen covering the address bar, which prevents the user from identifying the source of content in the browser window.

    Successful exploitation allows a malicious website to load arbitrary content with its source masked by the black tape. The user cannot know if this is a trusted site.

    Solution:
    Remove the piece of electrical tape from the screen. Windex may be necessary to clean up afterwards.

    --
    Unknown host pong.
    1. Re:The exploit by /ASCII · · Score: 3, Informative

      Avoid using Windex on flat screens. It may damage the anti-glare coating. If possible, use only a damp cloth to wipe away any tape residue.

      --
      Try out fish, the friendly interactive shell.
  5. Good the flaws are being found so quickly but... by It+doesn't+come+easy · · Score: 2, Insightful

    Recycling old bugs...I have to say that the Mozilla code base is losing some credibility with mistakes like this. Seems like a code audit is called for guys...

    --
    The NSA: The only part of the US government that actually listens.
  6. Why - Oh why by Anonymous Coward · · Score: 2, Interesting

    is it impossible to test new releases against old bugs?

    1. Re:Why - Oh why by /ASCII · · Score: 2, Informative

      It is not impossible, Testing new releases against old bugs is called regression testing, and everybody pretends to do it. But the problem is that it is so boring and hard that very few people write working regression tests against the more complex bugs.

      --
      Try out fish, the friendly interactive shell.
  7. Automated Testing by drewfuss · · Score: 4, Interesting

    Does the firefox community have any regression testing? They need fully automated test like the linux kernel has now.

  8. Re:Old news. by MankyD · · Score: 3, Insightful
    Frames suck, and you deserve to cause problems if you use them.
    It's not about bad design inadvertently causing problems - it's about malicious code intentionally causing problems.
    --
    -dave
    http://millionnumbers.com/ - own the number of your dreams
  9. Not all Firefox users will be affected by chesapeake · · Score: 2, Informative

    The Debian package of Firefox 1.0.4, with the extension tabbrowser preferences installed isn't, for example. As a result of this extension, the frame isn't injected into the frameset that is being targetted, and is opened in a new tab instead.

    It is surprising, though, that a security vulnerability like this goes unnoticed for so long. On the other hand, I very much doubt that anybody has actually used this to exploit users.

  10. Ehmm. by Psionicist · · Score: 2, Interesting

    Just one problem - the example "exploit" doesn't work. I press the MSDN link, it opens up in a new tab, press the demonstration link... And nothing happens.

    So what do I do wrong?

  11. Re:Good the flaws are being found so quickly but.. by /ASCII · · Score: 4, Insightful

    Saying the bug resurfaced is not completely true. This bug was removed from the old Netscape rendering engine, and reintroduced when replacing it with the new and fancy Gecko rendering engine. Apache also reintroduced a number of bugs when switching from 1.3 to 2.0, I belive. That is one of the many prices you pay when rewriting old code from scratch.

    --
    Try out fish, the friendly interactive shell.
  12. Bunk commentary on Whitedust by ttfkam · · Score: 4, Interesting
    The exposure of this older bug in new software is perhaps a good jumping off point for an argument about constructing new browser technologies from scratch, rather than simply developing existing (by the laws of probability, flawed) software to incorporate extended functionality; which is by far the industry norm as it stands. Is this a viable alternative?
    Anyone that knows the history of the Mozilla project has to see the idiocy in this statement.

    Or are they supposed to scrap it all and rewrite from scratch every few years? I sure hope not. Anyone else out remember M13, M14, M15, etc.? *shudder*
    --

    - I don't need to go outside, my CRT tan'll do me just fine.
  13. Tabbrowser Preferences by mogrify · · Score: 3, Informative

    It appears that if you have the Tabbrowser Preferences extension installed, then this exploit doesn't work.

    --
    perl -e 'foreach(values %SIG){$_="IGNORE";}while(){}'
  14. Re:Old news. by ZephyrXero · · Score: 4, Insightful

    it's actually nothing to do with malicious code...it's just that someone could make an easy fake site with frames... I'm sure there are some sites that legitimately use this feature with differnt parts of their site hosted on different servers...What's next? Ban sites that use offsite graphics?

    --
    "A truly wise man realizes he knows nothing."
  15. Automated testing? by Gary+W.+Longsine · · Score: 3, Interesting

    Does the Firefox team use any automated testing on the project? Seems like these sort of errors could stay dead, if so.

    Software testing automation tools

    --
    If you mod me down, I shall become more powerful than you could possibly imagine.
    1. Re:Automated testing? by Gary+W.+Longsine · · Score: 3, Interesting
      "What you don't know about testing, would float a battleship."
      That might be true. I'm not sure the density of unthunk thoughts, though. Are they even liquid at room temperature?

      Automated testing cannot prevent defects from recurring in subsequent builds as a pedantic interpretation of my passing observation might imply to a novice. I was sloppy with my terminology, yes.

      However, automated testing can and does allow development teams to identify and correct defects which are accidentally re-introduced before they ship a new version with, say, seven year old security defects.

      In the Java world automated unit tests are quite common, thanks to the ease with which they can be constructed with JUnit, and similarly with Python, Objective C and probably other Object Oriented languages and their respective unit testing frameworks. It seems to be less commonly practiced in the C/C++ world (although other types of automated testing are fairly well established in the commercial software industry and are largely language independent with respect to the product being tested).

      With a feedback loop in the development/testing process one often sees Automated Unit Tests performing double-duty as a subset of what's normally called automated regression testing. Other types of defects might be caught with an external testing harness (e.g. WinRunner or MaxQ) typically employed in support of regression testing.

      Some folks claim that application design can influence the ease and robustness of automated testing, and suggest design patterns to "Pattern your way to automated regression testing."

      Heck, automated regression testing is even practiced by at least some folk in the visual basic world these days. (This commercial site has a nice summary of the practice.)

      The point is, there are many types of automated testing, and many tools and techniques which support the concept. It seems from the perspective of a casually interested outside observer such as myself that some basic automated testing practices could be employed to help the Firefox team in their quest to create a secure, feature rich, standards compliant, and well performing web browser. I think most software developers, testers, and even development team managers would agree.

      You'll be happy to learn that terminology in the testing world isn't as well established as it might seem at first blush. There are literally hundreds of different "types of testing" and you can find dozens of different and even conflicting definitions for many common types if you look a bit. So, if you seek to pick apart this post line by line I've given you enough material to do so. Just Google around a bit until you find a definition that doesn't fit those I've used and go to town.

      Consider the Acid2 test. This is a functional test, perhaps. It might also be a regression test. It worked on the last build, and we didn't try to break it. Does it still work? Hooray! Acid2
      --
      If you mod me down, I shall become more powerful than you could possibly imagine.
  16. Re:Crap. Most recent version of Moz suite is affec by VxJasonxV · · Score: 2, Informative

    Suite will be EOL'ed, but security patches are still being applied.

    IIRC 1.x is feature frozen, but still 'active'.

  17. Disappointed in QA for browsers by null+etc. · · Score: 4, Insightful
    I must say that there should be a clean, concise list of security flaws that should never appear within a web browser, and each browser should be forced to undergo testing against that list before being released.

    To have such fundamental flaws appear, whether by accident or negligence, is unacceptable.

    Furthermore, the browser "industry" and the commercial sector NEED to come up with some guidelines as to how to promote and ensure online security for financial transactions and personal data.

    For example, it's almost impossible for the casual or sophisticated user to easily determine whether a frame that appears within a website actually belongs to that website, or another. For example, if you have an online account with MBNA credit card, and make an online purchase, some vendors will display an MBNA authentication page which asks you to login to your online account to verify the purchase.

    The problem is that this authentication page appears as a frame within the online vendor. How can you tell whether that frame is a legitimate MBNA page, or just a clever phishing attack? The browser gives no indication as to whether the frame belongs to MBNA or the vendor.

    PayPal suffers from the same thing. I hate clicking on the "Make a Donation" button of some sites, and then seeing the PayPal login appear within a frame of the original site. That prevents me from making a donation - with today's complicated scripting invocations and what not, I don't feel trusting enough to type my account info and password into some frame which happens to appear in the middle of some other organization's website.

    I can't BELIEVE that MBNA and PayPal would promote such idiotic practices, much less allow them to happen.

    1. Re:Disappointed in QA for browsers by fbartho · · Score: 3, Insightful

      I think the way that paypal expects sites to use their automated pages is to redirect the whole window, because at the end of the process paypal usually sends you back to a page on the original site, usually a thankyou/confirmation page. When people use the frames, they are probably doing it against paypal's directions, because otherwise, why would paypal redirect back to the original site?...

      --
      Gravity Sucks
    2. Re:Disappointed in QA for browsers by supra · · Score: 2
      To find the origin of a frame in Mozilla or Firefox:
      • Access context menu for the frame (right click inside the frame
      • select "This Frame"
      • select "View Frame Info"
      It gives you all the details.
      --
      On a computer or under a hood.
  18. IE has this vulnerability by interJ · · Score: 5, Informative
    See here.

    The bug in IE was reported almost a year ago, and it is still unpatched.

    The bug was reported in all major browsers (Mozilla and Firefox, Opera, Safari, Konqueror, IE), and was patched in all of them except IE. It has now reappeared in Mozilla.

    1. Re:IE has this vulnerability by Sheepdot · · Score: 2, Informative

      It's not the same kind of thing, though, as this can be done with just one Mozilla/Firefox frame. It is somewhat similar.

    2. Re:IE has this vulnerability by draed · · Score: 2, Informative

      If you read the page on secunia that you linked, you would see that this *has* been patched more than 2 years ago.

      http://www.microsoft.com/technet/security/bulletin /ms98-020.mspx

      Also since IE5, there has been protection against this type of attack.

      1. Click Start, point to Settings, click Control Panel, and then double-click Internet.
      2. Click the Security tab.
      3. Under Select a Web content zone to specify its security settings, click Internet.
      4. Click Custom Level.
      5. Under Navigate sub-frames across different domains, click Disable.
      6. Click OK.

  19. Trusted and untrusted sites? by Gary+W.+Longsine · · Score: 2, Insightful
    From TFA:
    "For a spoofing attempt to work, a surfer would need to have both the attacker's Web site and a trusted Web site open in different windows. A click on a link on the malicious site would then display the attacker's content in a frame on the trusted Web site, Secunia said. The company advised people not to visit trusted and untrusted Web sites at the same time."
    The whole notion of a trusted web site is bogus. Many large and popular web sites are not maintained well enough to prevent them from getting defaced now and then.

    The whole terminology used for web sites belies the myth of a trusted web site.

    Web sites are placed on "sacrificial hosts" in a "DMZ". Web sites are not trusted by the people who build them and never have been. If the owner of a web site doesn't trust it, why should you?

    A victim would never need to visit an "untrusted" web site, because this defect could be coupled with others (exploit chaining). It's even been done before with other defects, notably Download.ject.
    --
    If you mod me down, I shall become more powerful than you could possibly imagine.
  20. Before (and after) you start yelling at Firefox.. by ilyanep · · Score: 2, Insightful

    Now...take how many bugs have been exposed in Firfox and how many have been exploited.

    How many bugs have been exposed in IE and exploited? (Especially because for IE it's almost a 1:1 ratio)

    --
    ~Ilyanep
    To get message, take amount of carrier pigeons at each stage mod 2. Then decode binary.
  21. problem not described quite correctly by cahiha · · Score: 3, Insightful

    The applications don't check whether the frames displayed in a single window all originate from the same Web site.

    And they shouldn't check that because often frames do not originate on the same web site (e.g., Google, Hotmail). The problem is if you try to frame something low security inside something high security; the other direction is OK.

    What they should check (according to Secunia) is something different: when code attempts to put content into a target, the browser should check whether that code actually created that frame and otherwise refuse.

    A simple way of fixing this problem might be to prefix the name of any frame with the host that created it, so that "target=foobar" actually means "target=www.host-of-this-page.com::foobar"; that also helps avoid confusing name conflicts between web sites. But that suffers from the same problem as anything else that relies on host names: you can't tell which ones are supposed to "belong together".

    Alternatively, you might require that if any frame in a window uses https, then all of them must, and they all must use the same certificate.

    The best solution is probably just to abolish frames altogether; they cause many other problems as well.

    A slightly less drastic solution would be to prohibit the display of any https content in a frame.

  22. Re:Old news. by MankyD · · Score: 4, Insightful

    The problem is not offsite graphics. The problem is controlling one webpage with an offsite webpage. This should never ever ever ever be allowed for obvious reasons. From TFA: "As a result, an attacker could insert content into a frame on a trusted Web site." (read that: "a website can modify the contents of a trusted website".)

    There is absolutley no reason anyone should ever use this exploit for legitimate reasons. Yes, I can think of a few times it would be great if one website could help someone fill out another websites forms - but its not neccessary. If someone really wants to do that, they should attain permission and do it via GET or POST vars, or some serverside communication.

    A website should still have control over what page is being shown in its frames, but not over the content of those pages directly.

    --
    -dave
    http://millionnumbers.com/ - own the number of your dreams
  23. you misunderstand the problem by cahiha · · Score: 3, Insightful

    The problem is not that different frames can come from different sites. The problem is that one site can change the existing content of a frame that is already being displayed.

    So, if you do banking in one window and you then open up a malicious site in another, the malicious site can change the content of a frame in your banking window. That's not "faking", it's something worse.

    I can't think of a legitimate use for that "feature" in a real application, and the fact that it didn't use to work suggests that sites aren't relying on it.

  24. Re:Old news. by Heisenbug · · Score: 2, Insightful

    Sorry if I'm misunderstanding you, but I think you have it backward. They're not saying that hack.ru could have a frameset that pointed to a frame with a real ebay page. They're saying that if ebay had a frameset, hack.ru could use javascript to insert itself as one of the frames. That is indeed a security hole -- unless you want to claim that it's one of those extra features that differentiates Firefox from Safari and IE ...

  25. Alas, Frames aren't going anywhere. by PHP+Addict · · Score: 3, Insightful

    "...perhaps Mozilla should just take the lead on this and remove frame support entirely."

    As much as I hate frames (oh GOD do I hate frames!), this would be a step back for FireFox and its proponents. One of the largest arguments for using non-IE browsers is compatibility with standards. Frames are in the HTML 4.01 standard, and therefore, removing support would be incredibly hypocritical.

    --
    Laziness, check. Impatience, check. Hubris, double check!
  26. Open sores is bad by tsa · · Score: 2, Funny

    You see? Another security fault in an open sores program. This is what you get if you don't pay your developers. Opening the source so that everyone can see the flaws is just asking for trouble. I'm going back to IE.

    --

    -- Cheers!

  27. Open frame in new tab by lanroth · · Score: 2, Informative
    The problem is that this authentication page appears as a frame within the online vendor. How can you tell whether that frame is a legitimate MBNA page, or just a clever phishing attack?

    I click RMB->This Frame->Open Frame In New Tab

    As you'd expect this opens the frame in a new tab where you can easily see the URL.

    You can also find information about an embedded frame by clicking RBS->This Frame->Frame Info

  28. Frame Information Box by kassemi · · Score: 2, Interesting

    What about placing a small colored box in the corner of each frame... If a frame's box differs in color from the surrounding frames, this would indicate the frame was on a different domain. That way the developers wouldn't have to worry about breaking the legitimate use of this technique.

    --
    What the hell's a "gewie?"
  29. Re:Old news. by VitaminB52 · · Score: 3, Insightful
    WHO CARES, no one uses frames on their websites anymore, frames are obsolete

    Gimme 1.00 $ for each website using frames, and 'll never have to work again ...

  30. TabBrowser Preferences Prevents This by ChadL · · Score: 2, Interesting

    If you are using the TabBrowser Preference extension for Firefox, the exploit site will just open in a new tab, and the MSDN site will remain unaffected. https://addons.mozilla.org/extensions/moreinfo.php ?id=158&application=firefox

  31. New Frame Exploit Announced by megarich · · Score: 2, Funny

    This just in, putting your picture inside a frame may cause an unfavorable reaction to whoever is looking at it. The results can range from shreeks of horror, to nausea and an look of disdain on the viewers face. The fix is to burn the picture with the frame....

  32. Frames suck... most of the time, but not always. by kiddailey · · Score: 4, Interesting

    "Frames suck, and you deserve to cause problems if you use them."
    No, frames suck most of the time.

    There are many uses for frames that can increase usability or enhance/ease integration with other systems (that you cannot directly modify for example), particularly inline frames -- if you know what you are doing.

    Simply saying frames suck without qualifying further only shows your lack of understanding of appropriate applications of them ;)