Vulnerabilities · 2021 · Rubyonrails
CVE-2021-22881
Rubyonrails Rails vulnerability
The Host Authorization middleware in Action Pack before 6.1.2.1, 6.0.3.5 suffers from an 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. Impacted applications will have allowed hosts with a leading dot. When an allowed host contains a leading dot, a specially crafted `Host` header can be used to redirect to a malicious website.
Affected products
Rails, Fedora. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Rubyonrails Rails runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- discuss.rubyonrails.org/t/cve-2021-22881-possible-open-redirect-in-host-authorization-midd · Mitigation
- www.openwall.com/lists/oss-security/2021/12/14/5 · Exploit
- benjamin-bouchet.com/cve-2021-22881-faille-de-securite-dans-le-middleware-hostauthorizatio · Patch
- hackerone.com/reports/1047447 · Exploit
- www.openwall.com/lists/oss-security/2021/05/05/2 · Mitigation
- www.openwall.com/lists/oss-security/2021/08/20/1 · Mitigation
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/X
- nvd.nist.gov/vuln/detail/CVE-2021-22881
- cve.org/CVERecord?id=CVE-2021-22881
More vulnerabilities in Rubyonrails products
CVE-2024-53989CVE-2024-53988CVE-2024-53987CVE-2024-53986CVE-2024-53985CVE-2024-32464CVE-2024-28103CVE-2024-26144All 134
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.