漏洞信息
尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。
Vulnerability Title
SiYuan before v3.7.2 Path Traversal via /export/temp/
Vulnerability Description
SiYuan before v3.7.2 contains a path traversal vulnerability in the /export/temp/ short-circuit branch of the serveExport handler (kernel/server/serve.go). Unlike the main export branch, this branch joins the raw, percent-decoded request path with util.TempDir and serves the file without the IsSubPath or IsSensitivePath checks added in the earlier export-disclosure hardening (GHSA-6865-qjcf-286f). An authenticated attacker can send percent-encoded traversal sequences (e.g. /export/temp/%2e%2e/.../etc/passwd, where %2e%2e is decoded to '..') to read arbitrary files outside TempDir, including /etc/passwd, SSH keys (~/.ssh/*), and SiYuan workspace *.db and *.log files, bypassing the sensitive-file protection.
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Vulnerability Type
对路径名的限制不恰当(路径遍历)
Vulnerability Title
siyuan-note siyuan 路径遍历漏洞
Vulnerability Description
SiYuan是SiYuan团队的一款文档管理与企业应用软件。 siyuan-note siyuan 3.7.2之前版本存在路径遍历漏洞,该漏洞源于/export/temp/短路径分支中路径遍历问题,未经百分比解码的原始请求路径与util.TempDir连接,且未添加IsSubPath或IsSensitivePath检查,可能导致认证攻击者发送百分比编码的遍历序列读取TempDir外任意文件,包括/etc/passwd、SSH密钥和工作空间*.db和*.log文件,绕过敏感文件保护。
CVSS Information
N/A
Vulnerability Type
N/A