Medium severityJavaScript / TypeScriptOther Security ChecksHIGH confidence
Open Redirect Tainted Input
Untrusted request data controls a redirect target, enabling an open redirect used for phishing.
Standards mapping
- OWASP Top 10
- A01:2021 - Broken Access Control
- OWASP ASVS
- V5.1.5 (L1)
Vulnerable vs. safe
Flagged by this check
res.redirect(req.query.url);Passes - the safe pattern
res.redirect("/dashboard");Why it matters & how to fix it
Untrusted request data controls a redirect target, enabling an open redirect used for phishing. Redirect only to a fixed allowlist of relative paths or validated absolute URLs.
References
Rule ID integsec-js-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
- 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
- Python - Other Security ChecksJinja2 Autoescape Off