CVE-2021-22881
MEDIUM6.1EPSS 15.5%Actionpack Open Redirect Vulnerability
發布日:2021/3/2修改日:2026/4/28
描述
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.
受影響套件(2)
- Debian/railsfrom 0, < 2:6.0.3.5+dfsg-1
- RubyGems/actionpack>= 6.0.0, < 6.0.3.5
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
參考連結(15)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2021-22881
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2021-22881
- WEBhttps://benjamin-bouchet.com/cve-2021-22881-faille-de-securite-dans-le-middleware-hostauthorization
- WEBhttps://discuss.rubyonrails.org/t/cve-2021-22881-possible-open-redirect-in-host-authorization-middleware/77130
- WEBhttps://github.com/rails/rails
- WEBhttps://github.com/rails/rails/blob/v6.1.2.1/actionpack/CHANGELOG.md
- WEBhttps://github.com/rails/rails/commit/b5de7b3a4787d8a55aaad39f477c16e3af65e444
- WEBhttps://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2021-22881.yml
- WEBhttps://groups.google.com/g/rubyonrails-security/c/zN_3qA26l6E
- WEBhttps://hackerone.com/reports/1047447
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/XQ3NS4IBYE2I3MVMGAHFZBZBIZGHXHT3
- WEBhttps://rubygems.org/gems/actionpack
- WEBhttp://www.openwall.com/lists/oss-security/2021/05/05/2
- WEBhttp://www.openwall.com/lists/oss-security/2021/08/20/1
- WEBhttp://www.openwall.com/lists/oss-security/2021/12/14/5