Re: New URL spoofing bug in Microsoft Internet Explorer

From: Marjolein Katsma (hl4s6u0p1y001_at_SNEAKEMAIL.COM)
Date: 10/30/04

  • Next message: Russ Thomas: "Re: New URL spoofing bug in Microsoft Internet Explorer"
    Date:         Sat, 30 Oct 2004 09:31:31 +0200
    To: NTBUGTRAQ@LISTSERV.NTBUGTRAQ.COM
    
    

    At 22:19 2004-10-29, you wrote:
    >In isolation, the google href may appear to be the most well-formed, but
    >since HTML shouldn't be treated as isolated data islands, but instead as a
    >sequence from beginning to end, the fact that XP SP2 renders
    >www.google.com as the link is just wrong (even if it does mean the
    >spoofing attempt fails.)

    Excuse me, but I beg to differ.

    The HTML standards have some rules and guidelines for how to render valid
    code - they do NOT have guidelines for how to render invalid code. And the
    example code given clearly is invalid. But there is no "right" or "wrong"
    with what a browser does with that.

    When a browser (any user agent) encounters invalid code, it can do anything
    it "thinks" is appropriate with it (one reason why so many browsers are so
    bloated: they do a lot of guesswork). There are no rules.

    There are, in fact two errors with the code:
    - an anchor cannot contain a block (and a table is a block)
    - anchors cannot be nested

    What "should" a browser do with these?
    - If one takes the first rule, then it seems "natural" for a browser that
    does even a little bit of validation in its attempts to guess to discard
    the first opening a tag upon encountering the opening table tag going on a
    general rule of thumb that an opening block-level tag ends whatever connot
    contain a block. (This is why a new opening p tag starts a new paragraph
    even if it isn't preceded by a closing p tag.)
    - If one takes the second rule - what to do? what to do? Since anchors
    cannot be nested, discarding the first opening anchor tag OR ignoring the
    second opening tag would seem equally sensible.

    The vulnerability, as explained, is a special case of user agents doing
    guesswork on invalid code (trying to be helpful, but you can't always guess
    an author's intentions). It would probably help if browsers had a
    (user-selectable) mode to discard all invalid code and simply give an error
    message or at least a warning.

    Put differently: the case outlined is certainly a vulnerability; but I
    would not classify it as a *bug* since there is no expected, or defined,
    behavior for what a browser should do with invalid code. All you can say is
    that the behavior as described is "undesirable" - but that is not the same
    as a bug.

    --
    Marjolein Katsma
    Travel Blog: http://iamback.com/blog/
    Spam Reporting Addresses: http://banspam............../report3.html
    --
    NTBugtraq Editor's Note:
    Want to reply to the person who sent this message? This list is configured such that just hitting reply is going to result in the message coming to the list, not to the individual who sent the message. This was done to help reduce the number of Out of Office messages posters received. So if you want to send a reply just to the poster, you'll have to copy their email address out of the message and place it in your TO: field.
    --
    

  • Next message: Russ Thomas: "Re: New URL spoofing bug in Microsoft Internet Explorer"

    Relevant Pages

    • Re: OT: HTML (WAS: MF having issues?)
      ... Right, the example above, with the tag, comes from web developers inapporpriately depending on undocumented features. ... But let's say I don't actually read the standards, but just try out the tag to see what it does, and I notice that on my particular browser, the tag displays the text in italics. ... So now my HTML page may be broken, for example, if it contained text like this: ...
      (comp.lang.cobol)
    • Re: OT: HTML (WAS: MF having issues?)
      ... But let's say I don't actually read the standards, but just try out the tag to see what it does, and I notice that on my particular browser, the tag displays the text in italics. ... So now my HTML page may be broken, for example, if it contained text like this: ... The idea is that browsers who do not recognize the <applet> tag will simply ignore that tag, and display the text without any special formatting. ...
      (comp.lang.cobol)
    • Re: java detection test on a webpage with applet
      ... the applet cannot be displayed in this browser. ... My understanding of HTML ... is that if the browser doesn't recognize a tag, it simply ignores it, so ...
      (comp.lang.java.help)
    • Re: Can you render and image in ASP.NET?
      ... the client (browser). ... the image bytes back to the browser, you will need an tag in the page ... HTML whose source is the ASPX page that constructs the image. ... > Is there any possibility to render images for the web in asp.net? ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: absolute positioning differences
      ... you don't really understand how positioning methods are ... may well be due to incorrect assumptions on your part, invalid code, ... HTML and CSS to eliminate syntax errors as a cause of rendering issues. ... And use HTML 4.01 Strict for best browser compatibility. ...
      (comp.infosystems.www.authoring.stylesheets)