Clearance Gem Open Redirect Vulnerability
High severity
GitHub Reviewed
Published
Sep 13, 2021
to the GitHub Advisory Database
•
Updated Aug 25, 2023
Description
Reviewed
Sep 13, 2021
Published to the GitHub Advisory Database
Sep 13, 2021
Last updated
Aug 25, 2023
This affects the package clearance before 2.5.0. The vulnerability can be possible when users are able to set the value of
session[:return_to]
. If the value used for return_to contains multiple leading slashes (/////example.com
) the user ends up being redirected to the external domain that comes after the slashes (http://example.com
).References