Medium severityJavaOther Security ChecksMEDIUM confidence
Open Redirect Tainted Input
Untrusted request input controls a redirect target (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
resp.sendRedirect(req.getParameter("url"));Passes - the safe pattern
resp.sendRedirect("/home");Why it matters & how to fix it
Untrusted request input controls a redirect target (CWE-601). An attacker can send victims to a malicious site via a link on your trusted domain. Do not redirect to a raw user-supplied URL; use a server-side allow-list of permitted destinations or restrict redirects to relative paths under your own application.
References
Rule ID integsec-java-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