CVE-2021-22881
CVSS V2 Medium 5.8
CVSS V3 Medium 6.1
Description
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.
Overview
- CVE ID
- CVE-2021-22881
- Assigner
- support@hackerone.com
- Vulnerability Status
- Analyzed
- Published Version
- 2021-02-11T18:15:17
- Last Modified Date
- 2022-01-04T16:38:12
Weakness Enumerations
CPE Configuration (Product)
CPE | Vulnerable | Operator | Version Start | Version End |
---|---|---|---|---|
cpe:2.3:a:rubyonrails:rails:*:*:*:*:*:*:*:* | 1 | OR | 6.0.0 | 6.0.3.5 |
cpe:2.3:a:rubyonrails:rails:*:*:*:*:*:*:*:* | 1 | OR | 6.1.0 | 6.1.2.1 |
cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:* | 1 | OR |
CVSS Version 2
- Version
- 2.0
- Vector String
- AV:N/AC:M/Au:N/C:P/I:P/A:N
- Access Vector
- NETWORK
- Access Compatibility
- MEDIUM
- Authentication
- NONE
- Confidentiality Impact
- PARTIAL
- Integrity Impact
- PARTIAL
- Availability Impact
- NONE
- Base Score
- 5.8
- Severity
- MEDIUM
- Exploitability Score
- 8.6
- Impact Score
- 4.9
CVSS Version 3
- Version
- 3.1
- Vector String
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Attack Vector
- NETWORK
- Attack Compatibility
- LOW
- Privileges Required
- NONE
- User Interaction
- REQUIRED
- Scope
- CHANGED
- Confidentiality Impact
- LOW
- Availability Impact
- NONE
- Base Score
- 6.1
- Base Severity
- MEDIUM
- Exploitability Score
- 2.8
- Impact Score
- 2.7
References
Reference URL | Reference Tags |
---|---|
https://hackerone.com/reports/1047447 | Exploit Patch Third Party Advisory |
https://discuss.rubyonrails.org/t/cve-2021-22881-possible-open-redirect-in-host-authorization-middleware/77130 | Mitigation Patch Vendor Advisory |
https://benjamin-bouchet.com/cve-2021-22881-faille-de-securite-dans-le-middleware-hostauthorization/ | Patch Third Party Advisory |
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XQ3NS4IBYE2I3MVMGAHFZBZBIZGHXHT3/ | Mailing List Third Party Advisory |
http://www.openwall.com/lists/oss-security/2021/05/05/2 | Mailing List Mitigation Third Party Advisory |
http://www.openwall.com/lists/oss-security/2021/08/20/1 | Mailing List Mitigation Third Party Advisory |
http://www.openwall.com/lists/oss-security/2021/12/14/5 | Exploit Mailing List Patch |
Sources
Source Name | Source URL |
---|---|
NIST | https://nvd.nist.gov/vuln/detail/CVE-2021-22881 |
MITRE | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-22881 |
History
Created | Old Value | New Value | Data Type | Notes |
---|---|---|---|---|
2022-05-10 06:39:11 | Added to TrackCVE | |||
2022-12-05 21:57:14 | cve-assignments@hackerone.com | support@hackerone.com | CVE Assigner | updated |
2022-12-05 21:57:14 | 2021-02-11T18:15Z | 2021-02-11T18:15:17 | CVE Published Date | updated |
2022-12-05 21:57:15 | 2022-01-04T16:38:12 | CVE Modified Date | updated | |
2022-12-05 21:57:15 | Analyzed | Vulnerability Status | updated |