[JSP] jcms任意文件上传漏洞

  • 内容
  • 评论
  • 相关

简要描述:
大汉通版jcms 任意文件上传漏洞
详细说明:
问题出在导入xml文件时,只是采用了本地js验证,没有进行服务端验证,而且对文件的访问权限没有进行任何控制,服务端也没有对上传文件的有效性进行检查导致任意文件上传,

部分代码:

1
2
3
4
5
6
7
8
9
10
11
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,"");

上传地址:

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/