Open Redirect Affecting actionpack Open this link in a new tab package, versions >=6.0.0, <6.0.4.2 >=6.1.0, <6.1.4.2


0.0
medium
  • Attack Complexity

    Low

  • User Interaction

    Required

  • Scope

    Changed

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • snyk-id

    SNYK-RUBY-ACTIONPACK-2320175

  • published

    15 Dec 2021

  • disclosed

    14 Dec 2021

  • credit

    Unknown

How to fix?

Upgrade actionpack to version 6.0.4.2, 6.1.4.2 or higher.

Overview

Affected versions of this package are vulnerable to Open Redirect through the X-Forwarded-Host header. If the value of the header is prefixed with a invalid domain character (for example a /), it is always accepted as the actual host of that request. Since this host is used for all url helpers, an attacker could change generated links and redirects.