Slashdot Mirror


Busting, and Fixing, Frame Busting

An anonymous reader writes "A study presented last week at the IEEE Web Security and Privacy workshop shows that frame busting code used at popular websites is easily circumvented. Frame busting is a widely used technique to prevent clickjacking attacks. The researchers propose better frame busting code and suggest that websites migrate to this new code."

13 of 111 comments (clear)

  1. Better Yet by Monkeedude1212 · · Score: 5, Insightful

    Remove Frames altogether. I honestly can't think of a time where a frame has made anything on the web easier save for Kingdom of Loathing.

    Even the Google Image searches - its annoying that I have to click on the image and then click on another one to get linked to the full size image. Why not just make the image go straight to the image link, and put a URL under the image that goes to the page its hosted on. No more frames, and less hassle.

    Frames constantly break websites, cause vulnerabilities, and have been a nuisance since the 90's.

    Anybody here have anything to say in the defense of frames?

    1. Re:Better Yet by Yvan256 · · Score: 5, Funny

      Anybody here have anything to say in the defense of frames?

      They're great for holding paintings?

    2. Re:Better Yet by emurphy42 · · Score: 3, Insightful

      The issue here is someone else putting a frame around your page, e.g. to track traffic, or to add a toolbar at the top (e.g. "share this page with your contacts at Facebook/Digg/whatever"), or to clickjack (read that FA for an explanation), or probably other things.

    3. Re:Better Yet by morgan_greywolf · · Score: 2, Insightful

      Right. Frames are annoying, so we say 'hasta la vista' to them. DIVs are equally annoying, buh-bye. JavaScript, Flash, animated GIFs, all annoying, gone. Java applets -- damned annoying. Hey, by the time we're done, we'll all be running lynx!

    4. Re:Better Yet by Anonymous Coward · · Score: 2, Insightful

      I had it going for a solid 9 months, before some jerk opened my web site from a frame, executed some bad code and crashed my server. Fix it all up but for whatever reason he'd keep attacking it. Having school to deal with, I didn't put forth the effort to fight back or put security around it, so I stopped hosting it.

      The fault is not the frame. The fault is our by allowing some arbitrary code to crash your server. You was 14 at the time and making mistakes is normal. But the fault is not on the HTML spec, but solely on your bad coding.

    5. Re:Better Yet by The+MAZZTer · · Score: 2, Insightful

      Google Images uses frames in a useful fashion, imo.

    6. Re:Better Yet by riegel · · Score: 2, Insightful

      Can you say that a bit slower I am missing how/what happened that someone could execute code on your server using frames.

      --
      http://p8ste.com - Web based Clipboard
  2. Their new code is so secure ... by Anonymous Coward · · Score: 2, Funny

    ... it doesn't even display their website without Javascript.

    Just a blank page. Top-notch software engineering work :D

  3. ERROR: HOTLINKING FORBIDDEN by tepples · · Score: 2, Informative

    Why not just make the image go straight to the image link, and put a URL under the image that goes to the page its hosted on. No more frames, and less hassle.

    ERROR: HOTLINKING FORBIDDEN is why. At least loading the original page gives the browser a chance to load and cache the image on the page so that the first hit to the server has an acceptable Referer.

  4. Same Origin Policy by tepples · · Score: 4, Informative

    Agreed, frames are the scourge of the web, obliterate them from the universe immediately.

    Whereas a DIV that floats annoyingly around your page with content loaded from an external source is perfectly okay, because it's ... ? In the HTML spec ?

    Unlike frames, the XMLHttpRequest to get the content into the DIV is restricted by the Same Origin Policy.

    1. Re:Same Origin Policy by eison · · Score: 2, Informative

      Nope. Jquery isn't magic, it still follows the same rules under the hood, it is still using xmlhttprequest. The exception to the same origin policy for javascript code is you can load .js files from wherever, so the way around it is jsonp. See for example http://ecmanaut.blogspot.com/2006/01/jsonp-why-how.html

      --
      is competition good, or is duplication of effort bad?
  5. Re:Hmm ... by natehoy · · Score: 3, Informative

    ... hosted on a site that requires you allow Javascript just to read a static-looking page that only provides a summary and a hyperlink to another major malware vector - a PDF file.

    They sure appear to use a lot of unnecessary and insecure crap to serve up an article about how everyone else's web designs suck.

    --
    "This post contains words, known to the State of California to cause thought. Wash brain thoroughly after reading."
  6. "Better" code fails if javascript is disabled by ChaosDiscord · · Score: 2, Insightful

    The "better" code fails if javascript is disabled. It fails "safe," if "safe" is defined as "completely uselessly." The entire page is hidden with CSS until some javascript runs that reveals it. Using NoScript, possibly to defend against these very attacks? Congrats, the page silently disappears!

    The proposed fix is terrible. Regrettably, we're going to need browser makers to extend their browsers to really fix the problem.