vetkit.csharp.open-redirect.tainted-redirect
A redirect target is taken from request input without checking that it is a local URL. An attacker can send users to a phishing site from a link on this domain (open redirect).
Last updated:
Suite: Security
csharp
A redirect target is taken from request input without checking that it is a local URL. An attacker can send users to a phishing site from a link on this domain (open redirect).
Category: SECURITY · Engine rule severity: WARNING
How to fix it
Use LocalRedirect(url) / Results.LocalRedirect(url), or check Url.IsLocalUrl(url) before redirecting; redirect to an allow-list of external hosts only.
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.