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.

Description source: CVE List

Exploitation context

Available material

Nuclei templates
1

Affected products and versions

2
ProductSourceVersion rangeStatus

https://github.com/rails/rails

CVE ListFixed in 6.1.2.1, 6.0.3.5affected
GitHub Advisory6.0.0 to < 6.0.3.5 · Fixed in 6.0.3.5affected
6.1.0 to < 6.1.2.1 · Fixed in 6.1.2.1affected

Nuclei templates

1
ProjectDiscoveryMEDIUMRuby 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.

WeaknessesCWE-601
Authorstheamanrawat
Template tagscvecve2021rubyrailshost-headerredirectvuln
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Source: ProjectDiscovery

References

Showing 12 of 15