Vulnerability Information
Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.
Vulnerability Title
N/A
Vulnerability Description
Terrascan v1.18.3 and prior are vulnerable to Server-Side Request Forgery (SSRF) via the remote_url parameter in the remote directory scan endpoint (POST /v1/{iac}/{iacVersion}/{cloud}/remote/dir/scan) when running in server mode. An unauthenticated remote attacker can supply an attacker-controlled HTTP URL as remote_url with remote_type set to "http". The URL is passed directly to hashicorp/go-getter (v1.7.5) without validation. Go-getter's HttpGetter supports the X-Terraform-Get response header, allowing the attacker's server to redirect the download to a file:// URL, enabling local file read. Additionally, HttpGetter has Netrc set to true, causing it to read ~/.netrc and send stored credentials to attacker-controlled hostnames. This affects deployments running terrascan in server mode (terrascan server), which binds to 0.0.0.0 with no authentication. Note: Terrascan was archived in August 2023 and no patch will be released.
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Vulnerability Type
服务端请求伪造(SSRF)
Vulnerability Title
terrascan 安全漏洞
Vulnerability Description
terrascan是Tenable开源的一个基础设施代码静态安全分析工具。 terrascan 1.18.3及之前版本存在安全漏洞,该漏洞源于远程目录扫描端点中的remote_url参数存在服务端请求伪造漏洞,当在服务器模式下运行时,未经身份验证的远程攻击者可提供攻击者控制的HTTP URL作为remote_url,该URL未经验证直接传递给hashicorp/go-getter,攻击者可通过X-Terraform-Get响应头重定向下载至file:// URL,从而实现本地文件读取,同时Netrc设置为
CVSS Information
N/A
Vulnerability Type
N/A