Open Redirect

Affecting actionpack gem, versions >=6.0.0, <6.0.3.5 || >=6.1.0.rc1, <6.1.2.1

Report new vulnerabilities
Do your applications use this vulnerable package? Test your applications

Overview

Affected versions of this package are vulnerable to Open Redirect. Specially crafted Host headers in combination with certain allowed host formats can cause the Host Authorization middleware in ActionPack to redirect users to a malicious website. When an allowed host contains a leading dot, a specially crafted Host header can be used to redirect to a malicious website.

Remediation

Upgrade actionpack to version 6.0.3.5, 6.1.2.1 or higher.

References

CVSS Score

5.4
medium severity
  • Attack Vector
    Network
  • Attack Complexity
    Low
  • Privileges Required
    None
  • User Interaction
    Required
  • Scope
    Unchanged
  • Confidentiality
    Low
  • Integrity
    Low
  • Availability
    None
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
Credit
Tyler Kennedy (TkTech)
CVE
CVE-2021-22881
CWE
CWE-601
Snyk ID
SNYK-RUBY-ACTIONPACK-1080916
Disclosed
11 Feb, 2021
Published
02 Mar, 2021