漏洞信息
尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。
Vulnerability Title
SiYuan before v3.8.2 TLS Private Key Disclosure via getFile
Vulnerability Description
SiYuan versions <= 3.8.1 (fixed in v3.8.2) contain an incomplete blocklist in the IsForbiddenAbsPath() function (kernel/util/path_guard.go), which only blocks conf/conf.json by exact match and does not restrict the TLS private key (conf/key.pem) or CA private key (conf/ca.key) stored in the same conf/ directory. Because the getFile handler skips the blocklist for RoleAdministrator and all authenticated users receive RoleAdministrator in v3.8.1, any user (or any client on a default no-auth-code instance) can retrieve these private keys via POST /api/file/getFile. On deployments with TLS enabled, this allows decryption of captured HTTPS traffic (key.pem) and forging of certificates trusted by clients that imported SiYuan's CA (ca.key).
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Vulnerability Type
对外部实体的文件或目录可访问
Vulnerability Title
SiYuan 权限许可和访问控制问题漏洞
Vulnerability Description
SiYuan是SiYuan团队开源的一个以隐私为先的个人知识管理系统。 SiYuan 3.8.1及之前版本存在权限许可和访问控制问题漏洞,该漏洞源于IsForbiddenAbsPath()函数中的不完整黑名单,仅通过精确匹配阻止conf/conf.json,而未限制conf目录下存储的TLS私钥(conf/key.pem)和CA私钥(conf/ca.key),可能导致任意用户通过POST /api/file/getFile检索这些私钥,进而解密捕获的HTTPS流量或伪造客户端信任的证书。
CVSS Information
N/A
Vulnerability Type
N/A