Property
Languageruby
Severitymedium
CWECWE-601: URL Redirection to Untrusted Site (‘Open Redirect’)
OWASPA01:2021 - Broken Access Control
Confidence LevelMedium
Impact LevelMedium
Likelihood LevelMedium

Description#

The code passes user-controlled input (like params or cookies) directly to the redirect_to method without restricting the redirect to internal paths. This allows attackers to supply a URL that could redirect users to external, potentially malicious websites.

Impact#

If exploited, attackers can craft links that cause your application to redirect users to phishing sites or malicious domains, leading to loss of user trust, possible credential theft, and facilitating social engineering attacks against your users.