High severityC#Other Security ChecksHIGH confidence
Open Redirect Tainted Input
Untrusted request input flows into a redirect target, allowing an open redirect that sends users to an attacker-controlled site (CWE-601).
Standards mapping
- OWASP Top 10
- A01:2021 - Broken Access Control
- OWASP ASVS
- V5.1.5 (L1)
Vulnerable vs. safe
Flagged by this check
return Redirect(url);Passes - the safe pattern
return LocalRedirect(url);Why it matters & how to fix it
Untrusted request input flows into a redirect target, allowing an open redirect that sends users to an attacker-controlled site (CWE-601). Do not redirect to a raw user-supplied URL: use LocalRedirect, validate against an allow-list of destinations, or call Url.IsLocalUrl before redirecting.
References
Rule ID integsec.csharp.misc.open-redirect-taint - engine: Opengrep - license: MIT - Copyright (c) IntegSec Inc.
TurboPentest runs this check automatically
Connect a GitHub repo and this check runs on every white-box pentest - AI-validated and reported with proof, from $99 per target.
Start a pentestRelated checks
- JavaScript / TypeScript - Other Security ChecksChild Process Shell True
- JavaScript / TypeScript - Other Security ChecksOpen Redirect Tainted Input
- Python - Other Security ChecksDjango Mark Safe
- Python - Other Security ChecksFlask Debug Enabled
- Python - Other Security ChecksFlask Render Template String
- Python - Other Security ChecksInsecure Tempfile Mktemp