1 |
I'm watching at forums.gentoo.org, and see that you are using phpBB 2.0.0, and a few days ago in bugtraq there was an advisory about this forum. |
2 |
|
3 |
Advisory: |
4 |
|
5 |
From: Martijn Boerwinkel <xim@××××××.nl> |
6 |
To: bugtraq@×××××××××××××.com |
7 |
Subject: Cross Site Scripting Vulnerability in phpBB2's [IMG] tag and remote avatar |
8 |
Date: 26 May 2002 17:59:33 +0200 |
9 |
X-Mailer: Ximian Evolution 1.0.5 |
10 |
|
11 |
phpBB2 Cross Site Scripting Vulnerability |
12 |
-------------------------------------------- |
13 |
|
14 |
Affected Program: phpBB2 version 2.0.0 |
15 |
(possibly earlier versions too, but not tested) |
16 |
Vendor: http://www.phpbb.com |
17 |
Vendor Status: informed on 24/04/2002, fixed issued on 20/05/2002 |
18 |
Discovery Date: 24/04/2002 |
19 |
Release Date: 26/05/2002 |
20 |
Vulnerability Class: Cross Site Scripting |
21 |
|
22 |
|
23 |
Severity |
24 |
-------- |
25 |
Malicious users can steal other user's and admin's cookies, allowing |
26 |
them to impersonate other users on the board and access to the |
27 |
administration panel. |
28 |
|
29 |
Problem |
30 |
------- |
31 |
The problem is very similar to SQL injection. |
32 |
phpBB2 uses a user provided string (through the [IMG] tag) |
33 |
in the following HTML tag: |
34 |
|
35 |
<img src="$user_provided" border="0" /> |
36 |
|
37 |
While there is a check to force the string to begin with "http://" it |
38 |
doesn't disallow ". That means a malicious user can escape the src="" in |
39 |
the HTML tag and insert his own html code. |
40 |
This same problem also exists in the remote avatar part of the user |
41 |
profile. |
42 |
|
43 |
|
44 |
Example |
45 |
------- |
46 |
Enter the following anywhere in a message: |
47 |
|
48 |
[img]http://a.a/a"onerror="javascript:alert(document.cookie)[/img] |
49 |
|
50 |
When reading that message it should popup an alert box with your |
51 |
cookies. |
52 |
|
53 |
Solutions |
54 |
--------- |
55 |
* Upgrade to 2.0.1 |
56 |
|
57 |
-- |
58 |
XiM |
59 |
(#icerealm on irc.icerealm.net) |
60 |
|
61 |
----------------------------- |
62 |
|
63 |
Well, if you didn't know, now you know...hehe, sorry about my english :-) |
64 |
|
65 |
best regards. |
66 |
|
67 |
-- |
68 |
When tux flies, Chuck will die... |
69 |
|
70 |
TripleDES <TripleDES@××××××.org> - http://bsdsite.no-ip.org |