漏洞信息
尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。
Vulnerability Title
Hugo before v0.165.0 Symlink Confinement Bypass via resources.Get
Vulnerability Description
Hugo is a static site generator. In versions after v0.123.0 and before v0.165.0, symlinks in parent directories were not dropped during direct resource lookups, allowing path confinement to be bypassed. An attacker who can place — or who convinces a site author to place — a symlink inside a mounted directory (for example, in a locally vendored theme under themes/) can cause functions that perform direct lookups, such as resources.Get and os.ReadFile, to follow that symlink and read files outside the intended project boundaries, disclosing their contents in the built site. Themes mounted as Go modules fetched from GitHub have symlinks stripped on download and are not affected, and multi-directory walks (e.g. content/asset walking) are not affected. This issue is an incomplete-fix follow-up to GHSA-c3wq-j5vh-68rc and GHSA-fw87-fv5r-9fpw; it is fixed in v0.165.0.
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N
Vulnerability Type
在文件访问前对链接解析不恰当(链接跟随)
Vulnerability Title
Gohugoio Hugo 后置链接漏洞
Vulnerability Description
Gohugoio Hugo是Gohugoio团队开源的一款静态网站生成器。 Gohugoio Hugo存在后置链接漏洞,该漏洞源于直接资源查找时未丢弃父目录中的符号链接,导致路径限制可被绕过;攻击者可在挂载目录(例如themes/下的本地主题)中放置符号链接,使resources.Get和os.ReadFile等函数跟随符号链接读取预期项目边界之外的文件,从而在构建站点中泄露文件内容。
CVSS Information
N/A
Vulnerability Type
N/A