简要描述:
大汉版通JCMS 任意文件上传漏洞
详细说明:
问题出在导入xml文件时,只是采用了本地js验证,没有进行服务端验证,而且对文件的访问权限没有进行任何控制,服务端也没有对上传文件的有效性进行检查导致任意文件上传,
部分代码:
[php]
ListTable listtable = new ListTable(request);
out.println(listtable.getListTableCssJs());
sys.initSysPara(request);
//*得到用户信息*/
jcms.entity.Merp_Pub_UserEntity userentity = UserRightBLF.getUserInfo(request);
String strFilePath = application.getRealPath("")+"/m_5_5/m_5_5_3/temp/upload/" ;
Convert.createDirectory(strFilePath);
CommonUploadFile upload = new CommonUploadFile(strFilePath,"");
[/php]
上传地址:
http://0day5.com/jcms/m_5_5/m_5_5_3/import_style.jsp
将本能js验证去掉
shell地址:http://0day5.com/m_5_5/m_5_5_3/temp/upload/
免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉。
- 左青龙
- 微信扫一扫
-
- 右白虎
- 微信扫一扫
-
评论