Vulnerability Details : CVE-2021-22881
Potential exploit
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.
Vulnerability category: Open redirect
Products affected by CVE-2021-22881
- cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*
- cpe:2.3:a:rubyonrails:rails:*:*:*:*:*:*:*:*
- cpe:2.3:a:rubyonrails:rails:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2021-22881
6.85%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 91 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2021-22881
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
5.8
|
MEDIUM | AV:N/AC:M/Au:N/C:P/I:P/A:N |
8.6
|
4.9
|
NIST | |
6.1
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
2.8
|
2.7
|
NIST |
CWE ids for CVE-2021-22881
-
The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect.Assigned by:
- nvd@nist.gov (Primary)
- support@hackerone.com (Secondary)
References for CVE-2021-22881
-
http://www.openwall.com/lists/oss-security/2021/08/20/1
oss-security - [CVE-2021-22942] Possible Open Redirect in Host Authorization MiddlewareMailing List;Mitigation;Third Party Advisory
-
https://discuss.rubyonrails.org/t/cve-2021-22881-possible-open-redirect-in-host-authorization-middleware/77130
[CVE-2021-22881] Possible Open Redirect in Host Authorization Middleware - Security Announcements - Ruby on Rails DiscussionsMitigation;Patch;Vendor Advisory
-
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XQ3NS4IBYE2I3MVMGAHFZBZBIZGHXHT3/
[SECURITY] Fedora 33 Update: rubygem-actionpack-6.0.3.4-2.fc33 - package-announce - Fedora Mailing-ListsMailing List;Third Party Advisory
-
https://hackerone.com/reports/1047447
#1047447 HostAuthorization middleware does not suitably sanitize the Host / X-Forwarded-For header allowing redirection.Exploit;Patch;Third Party Advisory
-
https://benjamin-bouchet.com/cve-2021-22881-faille-de-securite-dans-le-middleware-hostauthorization/
[CVE-2021-22881] Faille de sécurité dans le middleware HostAuthorization – Benjamin BouchetPatch;Third Party Advisory
-
http://www.openwall.com/lists/oss-security/2021/05/05/2
oss-security - [CVE-2021-22903] Possible Open Redirect Vulnerability in Action PackMailing List;Mitigation;Third Party Advisory
-
http://www.openwall.com/lists/oss-security/2021/12/14/5
oss-security - [CVE-2021-44528] Possible Open Redirect in Host Authorization MiddlewareExploit;Mailing List;Patch
Jump to