CVE-2021-22881
Actionpack Open Redirect Vulnerability
Record summary
CVE-2021-22881 has a selected CVSS score of 6.1 (medium); EIP currently links 1 Nuclei template.
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.
Exploitation context
Available material
- Nuclei templates
- 1
Affected products and versions
2| Product | Source | Version range | Status |
|---|---|---|---|
https://github.com/rails/rails | CVE List | Fixed in 6.1.2.1, 6.0.3.5 | affected |
actionpackBrowse RubyGems / actionpack | GitHub Advisory | 6.0.0 to < 6.0.3.5 · Fixed in 6.0.3.5 | affected |
| 6.1.0 to < 6.1.2.1 · Fixed in 6.1.2.1 | affected |
Nuclei templates
1ProjectDiscoveryMEDIUMRuby on Rails - Open Redirect via Host Header InjectionCVSS 6.1
Ruby on Rails action pack before 6.1.2.1, 6.0.3.5 contains an open redirect caused by special crafted Host headers in combination with allowed host formats, letting attackers redirect users to malicious websites, exploit requires attacker to control Host headers.
Impact
Attackers can redirect users to malicious sites, potentially leading to phishing or malware distribution.
Remediation
Update to version 6.1.2.1, 6.0.3.5 or later versions.
Source: ProjectDiscovery