||Home : Advisories : Ultimate Bulletin Board|
||Ultimate Bulletin Board
||21st February 2001
If a user has info stored in a cookie, replies to a message and is using IE 4.0+ there is a way for a hacker to trap his IP / user name / password / other cookie information and send them to an external source using your UBB code with HTML *off*. There is a way to do this by simply viewing a message as well, although it's obvious something is going on as it involves a redirection. Here's how it works :
write a line like this :
Your cookies can hold both the username and password but is only accessable on
http://sitename/cgi-bin/ path. Script running on anything in cgi-path
(replies) can access it. So
[IMG]test"onerror="alert(document.cookie);[/IMG] will pop up an alert box
with the cookie info on a "reply" page as it's displayed in the thread review
at the bottom.
You can reassign the src of your image (this.src) with document.cookie tacked on
to point to an external page. The weird thing about imgs and http requests
in general is that your destination does not have to be an image. So will actually try to access index.html.
Hence, you can add actual passable information to an external cgi or whatever. On the external page all you need to do is either watch the logs or have the page itself
log any URL variables along with IPs coming in from the request.
The final line should read something like :
(Pasting this line [no spaces/crlf] in an mesage means that any user replying to anything in that thread will cause their cookie to be sent to an external source)
Jaspin Interactive www.jaspin.com