vetkit.csharp.ssrf.tainted-url
An outbound HTTP request is sent to a URL built from request input. An attacker can make the server call internal services or cloud metadata endpoints (server-side request forgery).
Last updated:
Suite: Security
csharp
An outbound HTTP request is sent to a URL built from request input. An attacker can make the server call internal services or cloud metadata endpoints (server-side request forgery).
Category: SECURITY · Engine rule severity: WARNING
How to fix it
Keep the scheme and host fixed (configure HttpClient.BaseAddress and pass only a relative, validated path), or validate the destination against an allow-list of hosts and reject private, loopback and link-local addresses.
References
Source: packages/engine/rules/sast/csharp.yml.
Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.