漏洞信息
尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。
Vulnerability Title
Hugo security.http.urls deny rules bypassed by alternate IPv4 encodings
Vulnerability Description
Hugo is a static site generator. From v0.162.0 through v0.163.0, the default security.http.urls policy denies requests to loopback, internal, and cloud-metadata IPv4 literals, but the deny rule only matched dotted-decimal notation, so alternate IPv4 encodings of the same addresses, including integer, hex, or octal, passed the policy. When a template passes an untrusted or data-derived URL to resources.GetRemote and the host platform uses the cgo system resolver, these encodings resolve to the blocked address, allowing build-time server-side requests to loopback and internal services, including the cloud-metadata endpoint in hosted or CI builds; the same check is reused on redirects, so the gap also applies to each redirect hop. This issue is fixed in v0.163.1.
CVSS Information
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N
Vulnerability Type
服务端请求伪造(SSRF)
Vulnerability Title
GoHugo Hugo 服务端请求伪造漏洞
Vulnerability Description
gohugo hugo是gohugo团队开源的一个生成静态网站的框架。 GoHugo Hugo v0.162.0版本至v0.163.0版本存在服务端请求伪造漏洞,该漏洞源于默认的security.http.urls策略对IPv4地址的编码方式检查不完善,导致整数、十六进制或八进制等替代编码方式绕过规则,当模板传递不可信或数据派生的URL给resources.GetRemote且主机平台使用cgo系统解析器时,可对回环地址和内部服务(包括托管或CI构建中的云元数据端点)发起构建时服务端请求。
CVSS Information
N/A
Vulnerability Type
N/A