Description (CNA)
V through 0.5.2, fixed in commit 85859f0, contains a server-side request forgery (SSRF) bypass vulnerability that allows attackers to circumvent host-based allowlists by exploiting a parser differential between net.urllib and net.http. Attackers can craft a URL containing a backslash in the authority section such that net.urllib.parse() extracts the trusted host for allowlist validation while net.http.get() normalizes the backslash and connects to the internal host, enabling access to internal network services that the allowlist was intended to block.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| vlang / v | affected 0 through 0.5.2; unaffected 85859f0f3498d4091b38009c45ed390a97eeedc2 |
CWE
CWE-436
References
- https://github.com/vlang/v/issues/27945
- https://github.com/vlang/v/pull/27947
- https://github.com/vlang/v/commit/85859f0f3498d4091b38009c45ed390a97eeedc2
- https://www.vulncheck.com/advisories/v-ssrf-bypass-via-parser-differential-in-net-urllib-and-net-http
ADP enrichment
No English description supplied.
No references supplied.