Description
The actionpack ruby gem before 6.1.3.2 suffers from a possible open redirect vulnerability. Specially crafted Host headers in combination with certain "allowed host" formats can cause the Host Authorization middleware in Action Pack to redirect users to a malicious website. This is similar to CVE-2021-22881. Strings in config.hosts that do not have a leading dot are converted to regular expressions without proper escaping. This causes, for example, `config.hosts << "sub.example.com"` to permit a request with a Host header value of `sub-example.com`.
Remediation
References
Related Vulnerabilities
e107 Other Vulnerability (CVE-2005-3594)
WordPress Plugin EZPZ One Click Backup Remote Code Execution (12.03.10)
phpMyAdmin Permissions, Privileges, and Access Controls Vulnerability (CVE-2016-9849)
Oracle Database Server CVE-2008-2613 Vulnerability (CVE-2008-2613)
b2evolution Exposure of Sensitive Information to an Unauthorized Actor Vulnerability (CVE-2011-3709)