Opera: What's Next (GM#005-OP)

From: GreyMagic Software (security@GREYMAGIC.COM)
Date: 02/04/03

  • Next message: GreyMagic Software: "Sniffing Opera's Tracks (GM#006-OP)"
    Date:         Tue, 4 Feb 2003 11:12:40 "GMT"
    From: GreyMagic Software <security@GREYMAGIC.COM>
    To: NTBUGTRAQ@LISTSERV.NTBUGTRAQ.COM
    
    

    GreyMagic Security Advisory GM#005-OP
    =====================================

    By GreyMagic Software, Israel.
    04 Feb 2003.

    Available in HTML format at http://security.greymagic.com/adv/gm005-op/.

    Topic: Opera: What's Next.

    Discovery date: 28 Jan 2003.

    Affected applications:
    ======================

    Opera 7 (final).

    Introduction:
    =============

    Opera recently released a new version of its browser.

    Like any other browser, Opera supports the "history" object, which makes it
    possible to navigate through the browser history by exposing the "back",
    "forward", and "go" methods.

    Discussion:
    ===========

    Opera exposed a little more than a few methods on the history object. It
    also exposes two properties, "next" and "previous". Unlike the methods
    mentioned above, these properties contain actual URLs.

    This means that when a user navigates to a website, the owner can easily
    check and log where the user had last been, and even where he went right
    afterwards (in case the user goes back in history), regardless of whether
    that previous URL referred to the owner's web site or not.

    Notice that "history.previous" is not the same as the "HTTP_REFERER" header.
    It will return the last URL even if it was not the direct referrer to the
    current URL, which makes Opera's "Enable referrer logging" configuration
    option completely pointless.

    That's a serious breach of privacy, which Opera seemed to have implemented
    intentionally.

    Exploit:
    ========

    The following code demonstrates how to retrieve these properties:

    alert("Last URL: "+history.previous+".\nNext URL: "+history.next+".");

    Demonstration:
    ==============

    A proof-of-concept demonstration of this issue is available at
    http://security.greymagic.com/adv/gm005-op/.

    Solution:
    =========

    Hopefully, Opera will reconsider these properties and remove them from the
    history object. Until then you may prefer to disable Javascript by going to:
    File -> Preferences -> Multimedia, and uncheck the "Enable JavaScript" item.

    Tested on:
    ==========

    Opera 7 NT4.
    Opera 7 Win98.
    Opera 7 Win2000.
    Opera 7 WinXP.

    Disclaimer:
    ===========

    The information in this advisory and any of its demonstrations is provided
    "as is" without warranty of any kind.

    GreyMagic Software is not liable for any direct or indirect damages caused
    as a result of using the information or demonstrations provided in any part
    of this advisory.

    Feedback:
    =========

    Please mail any questions or comments to security@greymagic.com.

    - Copyright © 2003 GreyMagic Software.

    oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
    Delivery co-sponsored by TruSecure Corporation
    oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
    TICSA - Anniversary Special - Limited Time

    Become TICSA certified for just $221.25 US when you register before 3/31/03
    with PROMO "TS0103" at www.2test.com. NO membership fees, certification
    good for 2 years. Price for international delivery just $296.25 US, with
    this offer. Offer cannot be combined with any other special and expires
    3/31/03. Visit www.trusecure.com/ticsa for full details.

    oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo



    Relevant Pages

    • Re: What is a generally approved file cleaner for xp?
      ... > and history, but it also allows you to view the index.dat files on your ... > Files and Cookies, MRU-Blaster enhances the protection of your privacy! ... >>> Temporary Internet Files {Including the contents of the Content.IE5 ... >>> Opera Cookies ...
      (microsoft.public.windowsxp.general)
    • [NT] Operas "Whats Next" Method Reveals Sensitive Information
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Opera recently released a new version of its browser. ... Like any other browser, Opera supports the "history" object, which makes ... * Opera version 7.01 under the Windows operating system ...
      (Securiteam)
    • Re: Satyagraha
      ... "Satyagraha" is one prompted by an honest desire to know if there might be any feeling amongst Eastern opera auditors that Ghandi, his spirit and the nationalistic base of his spiritual thought - with which the opera is at least tangentially concerned - has been accurately rendered. ... Whether or not Ghandi's early-life struggle in South Africa has been "accurately rendered" would be difficult enough to unravel if you were writing a history. ...
      (rec.music.classical.recordings)
    • Re: SCWC 60 results
      ... Guron, King Gama's Son ... Princess Ida, King Gama's Daughter ... everything in this style is an opera. ... Only a whole lot of Music History classes and reading. ...
      (rec.puzzles.crosswords)
    • Opera: Whats Next (GM#005-OP)
      ... Opera recently released a new version of its browser. ... Like any other browser, Opera supports the "history" object, which makes it ... Opera exposed a little more than a few methods on the history object. ... It will return the last URL even if it was not the direct referrer to the ...
      (Bugtraq)