2021-12-15 15:13:07 +00:00
id : CVE-2021-44528
info :
name : Open Redirect in Host Authorization Middleware
author : geeknik
2022-01-15 19:05:39 +00:00
severity : medium
2021-12-15 15:13:07 +00:00
description : Specially crafted "X-Forwarded-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.
2023-09-06 12:09:01 +00:00
remediation : |
Apply the latest security patches or updates provided by the vendor to fix the Open Redirect vulnerability in the Host Authorization Middleware.
2021-12-15 15:13:07 +00:00
reference :
- https://seclists.org/oss-sec/2021/q4/att-160/7-0-host-authorzation-open-redirect.patch
2022-01-19 08:03:34 +00:00
- https://nvd.nist.gov/vuln/detail/CVE-2021-44528
2022-05-17 09:18:12 +00:00
- https://github.com/rails/rails/commit/0fccfb9a3097a9c4260c791f1a40b128517e7815
2023-07-15 16:29:17 +00:00
- https://www.debian.org/security/2023/dsa-5372
2022-01-15 19:05:39 +00:00
classification :
cvss-metrics : CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
2022-04-22 10:38:41 +00:00
cvss-score : 6.1
2022-01-15 19:05:39 +00:00
cve-id : CVE-2021-44528
cwe-id : CWE-601
2023-08-31 11:46:18 +00:00
epss-score : 0.00087
2023-10-19 10:38:59 +00:00
epss-percentile : 0.36162
2023-09-06 12:09:01 +00:00
cpe : cpe:2.3:a:rubyonrails:rails:6.0.4.2:*:*:*:*:*:*:*
2023-04-28 08:11:21 +00:00
metadata :
max-request : 1
2023-07-15 16:29:17 +00:00
vendor : rubyonrails
product : rails
tags : seclists,cve,cve2021,redirect
2021-12-15 15:13:07 +00:00
2023-04-27 04:28:59 +00:00
http :
2021-12-15 15:13:07 +00:00
- raw :
- |
GET / HTTP/1.1
Host : {{Hostname}}
2022-06-06 10:40:15 +00:00
X-Forwarded-Host : //interact.sh
2021-12-15 15:13:07 +00:00
matchers-condition : and
matchers :
- type : regex
part : header
regex :
2023-03-01 18:22:21 +00:00
- '(?m)^(?:Location\s*?:\s*?)(?:https?:\/\/|\/\/|\/\\\\|\/\\)(?:[a-zA-Z0-9\-_\.@]*)interact\.sh\/?(\/|[^.].*)?$' # https://regex101.com/r/L403F0/1
2021-12-15 15:13:07 +00:00
- type : status
status :
- 301
- 302
- 307
- 308
2023-10-19 13:13:52 +00:00
# digest: 4a0a00473045022100c8206657b375604d26b23a7f99d91388ebe84507d8d86542a657f584e53ac78e02200750ed40a34af8c7641410906eb4097f7f2d40ef30d02ec35fe35811093d734a:922c64590222798bb761d5b6d8e72950