PT-2023-21673 · Rails+3 · Rails+3
Josephsurin
+1
·
Published
2023-06-29
·
Updated
2026-02-01
·
CVE-2023-28362
CVSS v3.1
4.0
Medium
| Vector | AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
Name of the Vulnerable Software and Affected Versions
Rails versions prior to 7.0.5.1
Rails versions prior to 6.1.7.4
Description
The
redirect to method in Rails allows provided values to contain characters which are not legal in an HTTP header value. This results in the potential for downstream services which enforce RFC compliance on HTTP response headers to remove the assigned Location header. This issue introduces the potential for a Cross-site-scripting (XSS) payload to be delivered on the now static redirection page, requiring user interaction and a Rails app configured to allow redirects to external hosts.Recommendations
For Rails versions prior to 7.0.5.1, update to version 7.0.5.1 to resolve the issue.
For Rails versions prior to 6.1.7.4, update to version 6.1.7.4 to resolve the issue.
As a temporary workaround, avoid providing user-supplied URLs with arbitrary schemes to the
redirect to method.Exploit
Fix
Improper Encoding or Escaping of Output
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Alt Linux
Debian
Rails
Suse