Medium severityRubyOther Security ChecksMEDIUM confidence
Open Redirect Tainted Input
A request-controlled value is passed to redirect_to, allowing an open redirect to an attacker-chosen 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
redirect_to(params[:return_to])Passes - the safe pattern
redirect_to(dashboard_path)Why it matters & how to fix it
A request-controlled value is passed to redirect_to, allowing an open redirect to an attacker-chosen site (CWE-601). Redirect only to vetted internal paths; pass allow_other_host:false (Rails default) and validate any external target against an allow-list.
References
Rule ID integsec-ruby-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