gsd-2021-29624
Vulnerability from gsd
Modified
2023-12-13 01:23
Details
fastify-csrf is an open-source plugin helps developers protect their Fastify server against CSRF attacks. Versions of fastify-csrf prior to 3.1.0 have a "double submit" mechanism using cookies with an application deployed across multiple subdomains, e.g. "heroku"-style platform as a service. Version 3.1.0 of the fastify-csrf fixes it. the vulnerability. The user of the module would need to supply a `userInfo` when generating the CSRF token to fully implement the protection on their end. This is needed only for applications hosted on different subdomains.
Aliases
Aliases
{ "GSD": { "alias": "CVE-2021-29624", "description": "fastify-csrf is an open-source plugin helps developers protect their Fastify server against CSRF attacks. Versions of fastify-csrf prior to 3.1.0 have a \"double submit\" mechanism using cookies with an application deployed across multiple subdomains, e.g. \"heroku\"-style platform as a service. Version 3.1.0 of the fastify-csrf fixes it. the vulnerability. The user of the module would need to supply a `userInfo` when generating the CSRF token to fully implement the protection on their end. This is needed only for applications hosted on different subdomains.", "id": "GSD-2021-29624" }, "gsd": { "metadata": { "exploitCode": "unknown", "remediation": "unknown", "reportConfidence": "confirmed", "type": "vulnerability" }, "osvSchema": { "aliases": [ "CVE-2021-29624" ], "details": "fastify-csrf is an open-source plugin helps developers protect their Fastify server against CSRF attacks. Versions of fastify-csrf prior to 3.1.0 have a \"double submit\" mechanism using cookies with an application deployed across multiple subdomains, e.g. \"heroku\"-style platform as a service. Version 3.1.0 of the fastify-csrf fixes it. the vulnerability. The user of the module would need to supply a `userInfo` when generating the CSRF token to fully implement the protection on their end. This is needed only for applications hosted on different subdomains.", "id": "GSD-2021-29624", "modified": "2023-12-13T01:23:36.736901Z", "schema_version": "1.4.0" } }, "namespaces": { "cve.org": { "CVE_data_meta": { "ASSIGNER": "security-advisories@github.com", "ID": "CVE-2021-29624", "STATE": "PUBLIC", "TITLE": "Lack of protection against cookie tossing attacks in fastify-csrf" }, "affects": { "vendor": { "vendor_data": [ { "product": { "product_data": [ { "product_name": "fastify-csrf", "version": { "version_data": [ { "version_value": "\u003c 3.1.0" } ] } } ] }, "vendor_name": "fastify" } ] } }, "data_format": "MITRE", "data_type": "CVE", "data_version": "4.0", "description": { "description_data": [ { "lang": "eng", "value": "fastify-csrf is an open-source plugin helps developers protect their Fastify server against CSRF attacks. Versions of fastify-csrf prior to 3.1.0 have a \"double submit\" mechanism using cookies with an application deployed across multiple subdomains, e.g. \"heroku\"-style platform as a service. Version 3.1.0 of the fastify-csrf fixes it. the vulnerability. The user of the module would need to supply a `userInfo` when generating the CSRF token to fully implement the protection on their end. This is needed only for applications hosted on different subdomains." } ] }, "impact": { "cvss": { "attackComplexity": "LOW", "attackVector": "NETWORK", "availabilityImpact": "NONE", "baseScore": 6.5, "baseSeverity": "MEDIUM", "confidentialityImpact": "NONE", "integrityImpact": "HIGH", "privilegesRequired": "NONE", "scope": "UNCHANGED", "userInteraction": "REQUIRED", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N", "version": "3.1" } }, "problemtype": { "problemtype_data": [ { "description": [ { "lang": "eng", "value": "CWE-565: Reliance on Cookies without Validation and Integrity Checking" } ] } ] }, "references": { "reference_data": [ { "name": "https://github.com/fastify/fastify-csrf/security/advisories/GHSA-rc4q-9m69-gqp8", "refsource": "CONFIRM", "url": "https://github.com/fastify/fastify-csrf/security/advisories/GHSA-rc4q-9m69-gqp8" }, { "name": "https://github.com/fastify/csrf/pull/2", "refsource": "MISC", "url": "https://github.com/fastify/csrf/pull/2" }, { "name": "https://github.com/fastify/fastify-csrf/pull/51", "refsource": "MISC", "url": "https://github.com/fastify/fastify-csrf/pull/51" }, { "name": "https://cheatsheetseries.owasp.org/cheatsheets/Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.html", "refsource": "MISC", "url": "https://cheatsheetseries.owasp.org/cheatsheets/Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.html" }, { "name": "https://github.com/fastify/fastify-csrf/releases/tag/v3.1.0", "refsource": "MISC", "url": "https://github.com/fastify/fastify-csrf/releases/tag/v3.1.0" }, { "name": "https://owasp.org/www-pdf-archive/David_Johansson-Double_Defeat_of_Double-Submit_Cookie.pdf", "refsource": "MISC", "url": "https://owasp.org/www-pdf-archive/David_Johansson-Double_Defeat_of_Double-Submit_Cookie.pdf" } ] }, "source": { "advisory": "GHSA-rc4q-9m69-gqp8", "discovery": "UNKNOWN" } }, "gitlab.com": { "advisories": [ { "affected_range": "\u003c4.0.0", "affected_versions": "All versions before 4.0.0", "cvss_v2": "AV:N/AC:M/Au:N/C:N/I:P/A:N", "cvss_v3": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N", "cwe_ids": [ "CWE-1035", "CWE-352", "CWE-565", "CWE-937" ], "date": "2021-05-28", "description": "fastify-csrf is an open-source plugin helps developers protect their Fastify server against CSRF attacks. Versions of fastify-csrf have a \"double submit\" mechanism using cookies with an application deployed across multiple subdomains, e.g. \"heroku\"-style platform as a service. of the fastify-csrf fixes it. the vulnerability. The user of the module would need to supply a `userInfo` when generating the CSRF token to fully implement the protection on their end. This is needed only for applications hosted on different subdomains.", "fixed_versions": [ "4.0.0" ], "identifier": "CVE-2021-29624", "identifiers": [ "GHSA-rc4q-9m69-gqp8", "CVE-2021-29624" ], "not_impacted": "All versions starting from 4.0.0", "package_slug": "npm/@fastify/csrf", "pubdate": "2021-05-17", "solution": "Upgrade to version 4.0.0 or above.", "title": "Reliance on Cookies without Validation and Integrity Checking", "urls": [ "https://github.com/fastify/fastify-csrf/security/advisories/GHSA-rc4q-9m69-gqp8", "https://github.com/fastify/csrf/pull/2", "https://github.com/fastify/fastify-csrf/pull/51", "https://cheatsheetseries.owasp.org/cheatsheets/Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.html", "https://owasp.org/www-pdf-archive/David_Johansson-Double_Defeat_of_Double-Submit_Cookie.pdf", "https://nvd.nist.gov/vuln/detail/CVE-2021-29624", "https://github.com/fastify/fastify-csrf/releases/tag/v3.1.0", "https://github.com/advisories/GHSA-rc4q-9m69-gqp8" ], "uuid": "fa01c2e9-9dcf-4366-a2d2-fe8a6ce87c84" }, { "affected_range": "\u003c3.1.0", "affected_versions": "All versions before 3.1.0", "cvss_v2": "AV:N/AC:M/Au:N/C:N/I:P/A:N", "cvss_v3": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N", "cwe_ids": [ "CWE-1035", "CWE-352", "CWE-937" ], "date": "2022-10-25", "description": "fastify-csrf is an open-source plugin helps developers protect their Fastify server against CSRF attacks.", "fixed_versions": [ "3.1.0" ], "identifier": "CVE-2021-29624", "identifiers": [ "CVE-2021-29624", "GHSA-rc4q-9m69-gqp8" ], "not_impacted": "All versions starting from 3.1.0", "package_slug": "npm/fastify-csrf", "pubdate": "2021-05-19", "solution": "Upgrade to version 3.1.0 or above.", "title": "Reliance on Cookies without Validation and Integrity Checking", "urls": [ "https://nvd.nist.gov/vuln/detail/CVE-2021-29624" ], "uuid": "0528dc9d-91ed-4933-abbb-ace14ff02d83" } ] }, "nvd.nist.gov": { "configurations": { "CVE_data_version": "4.0", "nodes": [ { "children": [], "cpe_match": [ { "cpe23Uri": "cpe:2.3:a:fastify:fastify-csrf:*:*:*:*:*:node.js:*:*", "cpe_name": [], "versionEndExcluding": "3.1.0", "vulnerable": true } ], "operator": "OR" } ] }, "cve": { "CVE_data_meta": { "ASSIGNER": "security-advisories@github.com", "ID": "CVE-2021-29624" }, "data_format": "MITRE", "data_type": "CVE", "data_version": "4.0", "description": { "description_data": [ { "lang": "en", "value": "fastify-csrf is an open-source plugin helps developers protect their Fastify server against CSRF attacks. Versions of fastify-csrf prior to 3.1.0 have a \"double submit\" mechanism using cookies with an application deployed across multiple subdomains, e.g. \"heroku\"-style platform as a service. Version 3.1.0 of the fastify-csrf fixes it. the vulnerability. The user of the module would need to supply a `userInfo` when generating the CSRF token to fully implement the protection on their end. This is needed only for applications hosted on different subdomains." } ] }, "problemtype": { "problemtype_data": [ { "description": [ { "lang": "en", "value": "CWE-352" } ] } ] }, "references": { "reference_data": [ { "name": "https://github.com/fastify/fastify-csrf/releases/tag/v3.1.0", "refsource": "MISC", "tags": [ "Third Party Advisory" ], "url": "https://github.com/fastify/fastify-csrf/releases/tag/v3.1.0" }, { "name": "https://owasp.org/www-pdf-archive/David_Johansson-Double_Defeat_of_Double-Submit_Cookie.pdf", "refsource": "MISC", "tags": [ "Third Party Advisory" ], "url": "https://owasp.org/www-pdf-archive/David_Johansson-Double_Defeat_of_Double-Submit_Cookie.pdf" }, { "name": "https://github.com/fastify/csrf/pull/2", "refsource": "MISC", "tags": [ "Patch", "Third Party Advisory" ], "url": "https://github.com/fastify/csrf/pull/2" }, { "name": "https://github.com/fastify/fastify-csrf/security/advisories/GHSA-rc4q-9m69-gqp8", "refsource": "CONFIRM", "tags": [ "Patch", "Third Party Advisory" ], "url": "https://github.com/fastify/fastify-csrf/security/advisories/GHSA-rc4q-9m69-gqp8" }, { "name": "https://cheatsheetseries.owasp.org/cheatsheets/Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.html", "refsource": "MISC", "tags": [ "Third Party Advisory" ], "url": "https://cheatsheetseries.owasp.org/cheatsheets/Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.html" }, { "name": "https://github.com/fastify/fastify-csrf/pull/51", "refsource": "MISC", "tags": [ "Patch", "Third Party Advisory" ], "url": "https://github.com/fastify/fastify-csrf/pull/51" } ] } }, "impact": { "baseMetricV2": { "acInsufInfo": false, "cvssV2": { "accessComplexity": "MEDIUM", "accessVector": "NETWORK", "authentication": "NONE", "availabilityImpact": "NONE", "baseScore": 4.3, "confidentialityImpact": "NONE", "integrityImpact": "PARTIAL", "vectorString": "AV:N/AC:M/Au:N/C:N/I:P/A:N", "version": "2.0" }, "exploitabilityScore": 8.6, "impactScore": 2.9, "obtainAllPrivilege": false, "obtainOtherPrivilege": false, "obtainUserPrivilege": false, "severity": "MEDIUM", "userInteractionRequired": true }, "baseMetricV3": { "cvssV3": { "attackComplexity": "LOW", "attackVector": "NETWORK", "availabilityImpact": "NONE", "baseScore": 6.5, "baseSeverity": "MEDIUM", "confidentialityImpact": "NONE", "integrityImpact": "HIGH", "privilegesRequired": "NONE", "scope": "UNCHANGED", "userInteraction": "REQUIRED", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N", "version": "3.1" }, "exploitabilityScore": 2.8, "impactScore": 3.6 } }, "lastModifiedDate": "2022-10-25T20:56Z", "publishedDate": "2021-05-19T22:15Z" } } }
Loading…
Loading…
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.
Loading…
Loading…