GSD-2021-44528
Vulnerability from gsd - Updated: 2021-12-14 00:00Details
There is a possible open redirect vulnerability in the Host Authorization
middleware in Action Pack.
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.
Impacted applications will have allowed hosts with a leading dot. For example,
configuration files that look like this:
```
config.hosts << '.EXAMPLE.com'
```
When an allowed host contains a leading dot, a specially crafted Host header
can be used to redirect to a malicious website.
This vulnerability is similar to CVE-2021-22881 and CVE-2021-22942.
Releases
--------
The fixed releases are available at the normal locations.
Patches
-------
To aid users who aren't able to upgrade immediately we have provided patches for
the two supported release series. They are in git-am format and consist of a
single changeset.
* 6-0-host-authorzation-open-redirect.patch - Patch for 6.0 series
* 6-1-host-authorzation-open-redirect.patch - Patch for 6.1 series
* 7-0-host-authorzation-open-redirect.patch - Patch for 7.0 series
Please note that only the 6.1.Z, 6.0.Z, and 5.2.Z series are supported at
present. Users of earlier unsupported releases are advised to upgrade as soon
as possible as we cannot guarantee the continued availability of security
fixes for unsupported releases.
Aliases
Aliases
{
"GSD": {
"alias": "CVE-2021-44528",
"description": "A open redirect vulnerability exists in Action Pack \u003e= 6.0.0 that could allow an attacker to craft a \"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.",
"id": "GSD-2021-44528",
"references": [
"https://www.suse.com/security/cve/CVE-2021-44528.html",
"https://www.debian.org/security/2023/dsa-5372"
]
},
"gsd": {
"metadata": {
"exploitCode": "unknown",
"remediation": "unknown",
"reportConfidence": "confirmed",
"type": "vulnerability"
},
"osvSchema": {
"affected": [
{
"package": {
"ecosystem": "RubyGems",
"name": "actionpack",
"purl": "pkg:gem/actionpack"
}
}
],
"aliases": [
"CVE-2021-44528",
"GHSA-qphc-hf5q-v8fc"
],
"details": "There is a possible open redirect vulnerability in the Host Authorization\nmiddleware in Action Pack.\n\nSpecially crafted \"X-Forwarded-Host\" headers in combination with certain\n\"allowed host\" formats can cause the Host Authorization middleware in Action\nPack to redirect users to a malicious website.\n\nImpacted applications will have allowed hosts with a leading dot. For example,\nconfiguration files that look like this:\n\n```\nconfig.hosts \u003c\u003c \u0027.EXAMPLE.com\u0027\n```\n\nWhen an allowed host contains a leading dot, a specially crafted Host header\ncan be used to redirect to a malicious website.\n\nThis vulnerability is similar to CVE-2021-22881 and CVE-2021-22942.\n\nReleases\n--------\nThe fixed releases are available at the normal locations.\n\nPatches\n-------\nTo aid users who aren\u0027t able to upgrade immediately we have provided patches for\nthe two supported release series. They are in git-am format and consist of a\nsingle changeset.\n\n* 6-0-host-authorzation-open-redirect.patch - Patch for 6.0 series\n* 6-1-host-authorzation-open-redirect.patch - Patch for 6.1 series\n* 7-0-host-authorzation-open-redirect.patch - Patch for 7.0 series\n\nPlease note that only the 6.1.Z, 6.0.Z, and 5.2.Z series are supported at\npresent. Users of earlier unsupported releases are advised to upgrade as soon\nas possible as we cannot guarantee the continued availability of security\nfixes for unsupported releases.",
"id": "GSD-2021-44528",
"modified": "2021-12-14T00:00:00.000Z",
"published": "2021-12-14T00:00:00.000Z",
"references": [
{
"type": "WEB",
"url": "https://groups.google.com/g/ruby-security-ann/c/vG9gz3nk1pM/m/7-NU4MNrDAAJ"
},
{
"type": "WEB",
"url": "https://github.com/rails/rails/commit/aecba3c301b80e9d5a63c30ea1b287bceaf2c107"
},
{
"type": "WEB",
"url": "https://github.com/rails/rails/blob/v6.1.4.2/actionpack/CHANGELOG.md#rails-6142-december-14-2021"
}
],
"related": [
"CVE-2021-22881",
"CVE-2021-22942"
],
"schema_version": "1.4.0",
"severity": [
{
"score": 6.1,
"type": "CVSS_V3"
}
],
"summary": "Possible Open Redirect in Host Authorization Middleware"
}
},
"namespaces": {
"cve.org": {
"CVE_data_meta": {
"ASSIGNER": "support@hackerone.com",
"ID": "CVE-2021-44528",
"STATE": "PUBLIC"
},
"affects": {
"vendor": {
"vendor_data": [
{
"product": {
"product_data": [
{
"product_name": "https://github.com/rails/rails",
"version": {
"version_data": [
{
"version_value": "6.1.4.2, 6.0.4.2, 7.0.0.rc2"
}
]
}
}
]
},
"vendor_name": "n/a"
}
]
}
},
"data_format": "MITRE",
"data_type": "CVE",
"data_version": "4.0",
"description": {
"description_data": [
{
"lang": "eng",
"value": "A open redirect vulnerability exists in Action Pack \u003e= 6.0.0 that could allow an attacker to craft a \"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."
}
]
},
"problemtype": {
"problemtype_data": [
{
"description": [
{
"lang": "eng",
"value": "Open Redirect (CWE-601)"
}
]
}
]
},
"references": {
"reference_data": [
{
"name": "https://github.com/rails/rails/commit/0fccfb9a3097a9c4260c791f1a40b128517e7815",
"refsource": "MISC",
"url": "https://github.com/rails/rails/commit/0fccfb9a3097a9c4260c791f1a40b128517e7815"
},
{
"name": "DSA-5372",
"refsource": "DEBIAN",
"url": "https://www.debian.org/security/2023/dsa-5372"
},
{
"name": "https://security.netapp.com/advisory/ntap-20240208-0003/",
"refsource": "CONFIRM",
"url": "https://security.netapp.com/advisory/ntap-20240208-0003/"
}
]
}
},
"github.com/rubysec/ruby-advisory-db": {
"cve": "2021-44528",
"cvss_v3": 6.1,
"date": "2021-12-14",
"description": "There is a possible open redirect vulnerability in the Host Authorization\nmiddleware in Action Pack.\n\nSpecially crafted \"X-Forwarded-Host\" headers in combination with certain\n\"allowed host\" formats can cause the Host Authorization middleware in Action\nPack to redirect users to a malicious website.\n\nImpacted applications will have allowed hosts with a leading dot. For example,\nconfiguration files that look like this:\n\n```\nconfig.hosts \u003c\u003c \u0027.EXAMPLE.com\u0027\n```\n\nWhen an allowed host contains a leading dot, a specially crafted Host header\ncan be used to redirect to a malicious website.\n\nThis vulnerability is similar to CVE-2021-22881 and CVE-2021-22942.\n\nReleases\n--------\nThe fixed releases are available at the normal locations.\n\nPatches\n-------\nTo aid users who aren\u0027t able to upgrade immediately we have provided patches for\nthe two supported release series. They are in git-am format and consist of a\nsingle changeset.\n\n* 6-0-host-authorzation-open-redirect.patch - Patch for 6.0 series\n* 6-1-host-authorzation-open-redirect.patch - Patch for 6.1 series\n* 7-0-host-authorzation-open-redirect.patch - Patch for 7.0 series\n\nPlease note that only the 6.1.Z, 6.0.Z, and 5.2.Z series are supported at\npresent. Users of earlier unsupported releases are advised to upgrade as soon\nas possible as we cannot guarantee the continued availability of security\nfixes for unsupported releases.",
"framework": "rails",
"gem": "actionpack",
"ghsa": "qphc-hf5q-v8fc",
"patched_versions": [
"~\u003e 6.0.4, \u003e= 6.0.4.2",
"~\u003e 6.1.4, \u003e= 6.1.4.2",
"\u003e= 7.0.0.rc2"
],
"related": {
"cve": [
"2021-22881",
"2021-22942"
],
"url": [
"https://github.com/rails/rails/commit/aecba3c301b80e9d5a63c30ea1b287bceaf2c107",
"https://github.com/rails/rails/blob/v6.1.4.2/actionpack/CHANGELOG.md#rails-6142-december-14-2021"
]
},
"title": "Possible Open Redirect in Host Authorization Middleware",
"unaffected_versions": [
"\u003c 6.0.0"
],
"url": "https://groups.google.com/g/ruby-security-ann/c/vG9gz3nk1pM/m/7-NU4MNrDAAJ"
},
"gitlab.com": {
"advisories": [
{
"affected_range": "\u003e=6.0.0 \u003c=6.0.4.1||\u003e=6.1.0 \u003c=6.1.4.1",
"affected_versions": "All versions starting from 6.0.0 up to 6.0.4.1, all versions starting from 6.1.0 up to 6.1.4.1",
"cvss_v2": "AV:N/AC:M/Au:N/C:P/I:P/A:N",
"cvss_v3": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
"cwe_ids": [
"CWE-1035",
"CWE-601",
"CWE-937"
],
"date": "2022-01-18",
"description": "A open redirect vulnerability exists in Action Pack \u003e= 6.0.0 that could allow an attacker to craft a \"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.",
"fixed_versions": [
"6.0.4.2",
"6.1.4.2"
],
"identifier": "CVE-2021-44528",
"identifiers": [
"GHSA-qphc-hf5q-v8fc",
"CVE-2021-44528"
],
"not_impacted": "All versions before 6.0.0, all versions after 6.0.4.1 before 6.1.0, all versions after 6.1.4.1",
"package_slug": "gem/actionpack",
"pubdate": "2021-12-14",
"solution": "Upgrade to versions 6.0.4.2, 6.1.4.2 or above.",
"title": "URL Redirection to Untrusted Site (\u0027Open Redirect\u0027)",
"urls": [
"https://nvd.nist.gov/vuln/detail/CVE-2021-44528",
"https://groups.google.com/g/ruby-security-ann/c/vG9gz3nk1pM/m/7-NU4MNrDAAJ?utm_medium=email\u0026utm_source=footer",
"https://github.com/rails/rails/commit/aecba3c301b80e9d5a63c30ea1b287bceaf2c107",
"https://github.com/rails/rails/blob/v6.1.4.2/actionpack/CHANGELOG.md#rails-6142-december-14-2021",
"https://github.com/rails/rails/commit/0fccfb9a3097a9c4260c791f1a40b128517e7815",
"https://github.com/advisories/GHSA-qphc-hf5q-v8fc"
],
"uuid": "799ddab5-0a6c-44dc-a600-d20ae99d5c22"
},
{
"affected_range": "\u003e=6.0.4.2 \u003c=6.1.4.2||=7.0.0",
"affected_versions": "All versions starting from 6.0.4.2 up to 6.1.4.2, version 7.0.0",
"cvss_v2": "AV:N/AC:M/Au:N/C:P/I:P/A:N",
"cvss_v3": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
"cwe_ids": [
"CWE-1035",
"CWE-601",
"CWE-937"
],
"date": "2023-03-14",
"description": "A open redirect vulnerability exists in Action Pack that could allow an attacker to craft a `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.",
"fixed_versions": [
"6.1.4.3",
"7.0.1"
],
"identifier": "CVE-2021-44528",
"identifiers": [
"CVE-2021-44528"
],
"not_impacted": "All versions before 6.0.4.2, all versions after 6.1.4.2 before 7.0.0, all versions after 7.0.0",
"package_slug": "gem/rails",
"pubdate": "2022-01-10",
"solution": "Upgrade to versions 6.1.4.3, 7.0.1 or above.",
"title": "URL Redirection to Untrusted Site (\u0027Open Redirect\u0027)",
"urls": [
"https://nvd.nist.gov/vuln/detail/CVE-2021-44528",
"https://github.com/rails/rails/commit/0fccfb9a3097a9c4260c791f1a40b128517e7815"
],
"uuid": "f88317f1-8de1-40c5-8fcd-8418670cd4c8"
}
]
},
"nvd.nist.gov": {
"cve": {
"configurations": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:rubyonrails:rails:6.0.4.2:*:*:*:*:*:*:*",
"matchCriteriaId": "37A3CBC3-83F7-4D43-B1FA-D2694B5AF8BE",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:rubyonrails:rails:6.1.4.2:*:*:*:*:*:*:*",
"matchCriteriaId": "4F480555-28ED-4393-BB7D-1380E34B2670",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:rubyonrails:rails:7.0.0:rc2:*:*:*:*:*:*",
"matchCriteriaId": "4A5138B9-07DF-4705-A271-E2E1444BAC61",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "A open redirect vulnerability exists in Action Pack \u003e= 6.0.0 that could allow an attacker to craft a \"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."
},
{
"lang": "es",
"value": "Se presenta una vulnerabilidad de redirecci\u00f3n abierta en Action Pack versiones posteriores a 6.0.0 incluy\u00e9ndola, que podr\u00eda permitir a un atacante dise\u00f1ar un encabezado \"X-Forwarded-Host\" en combinaci\u00f3n con determinados formatos de \"allowed host\" puede causar que el middleware Host Authorization en Action Pack redirija a usuarios a un sitio web malicioso"
}
],
"id": "CVE-2021-44528",
"lastModified": "2024-02-08T10:15:08.973",
"metrics": {
"cvssMetricV2": [
{
"acInsufInfo": false,
"baseSeverity": "MEDIUM",
"cvssData": {
"accessComplexity": "MEDIUM",
"accessVector": "NETWORK",
"authentication": "NONE",
"availabilityImpact": "NONE",
"baseScore": 5.8,
"confidentialityImpact": "PARTIAL",
"integrityImpact": "PARTIAL",
"vectorString": "AV:N/AC:M/Au:N/C:P/I:P/A:N",
"version": "2.0"
},
"exploitabilityScore": 8.6,
"impactScore": 4.9,
"obtainAllPrivilege": false,
"obtainOtherPrivilege": false,
"obtainUserPrivilege": false,
"source": "nvd@nist.gov",
"type": "Primary",
"userInteractionRequired": true
}
],
"cvssMetricV31": [
{
"cvssData": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "NONE",
"baseScore": 6.1,
"baseSeverity": "MEDIUM",
"confidentialityImpact": "LOW",
"integrityImpact": "LOW",
"privilegesRequired": "NONE",
"scope": "CHANGED",
"userInteraction": "REQUIRED",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
"version": "3.1"
},
"exploitabilityScore": 2.8,
"impactScore": 2.7,
"source": "nvd@nist.gov",
"type": "Primary"
}
]
},
"published": "2022-01-10T14:10:26.117",
"references": [
{
"source": "support@hackerone.com",
"tags": [
"Patch",
"Third Party Advisory"
],
"url": "https://github.com/rails/rails/commit/0fccfb9a3097a9c4260c791f1a40b128517e7815"
},
{
"source": "support@hackerone.com",
"url": "https://security.netapp.com/advisory/ntap-20240208-0003/"
},
{
"source": "support@hackerone.com",
"url": "https://www.debian.org/security/2023/dsa-5372"
}
],
"sourceIdentifier": "support@hackerone.com",
"vulnStatus": "Modified",
"weaknesses": [
{
"description": [
{
"lang": "en",
"value": "CWE-601"
}
],
"source": "nvd@nist.gov",
"type": "Primary"
},
{
"description": [
{
"lang": "en",
"value": "CWE-601"
}
],
"source": "support@hackerone.com",
"type": "Secondary"
}
]
}
}
}
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…