原始 OSV JSON{
"id": "GHSA-rc4q-9m69-gqp8",
"aliases": [
"CVE-2021-29624"
],
"details": "### Impact\n\nUsers that used fastify-csrf with the \"double submit\" mechanism using cookies with an application deployed across multiple subdomains, e.g. \"heroku\"-style platform as a service. \n\n### Patches\n\nVersion 3.1.0 of the fastify-csrf fixes it. \nSee https://github.com/fastify/fastify-csrf/pull/51 and https://github.com/fastify/csrf/pull/2.\n\nThe 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.\n\n### Workarounds\n\nNone available.\n\n### References\n\n1. https://cheatsheetseries.owasp.org/cheatsheets/Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.html\n2. https://owasp.org/www-pdf-archive/David_Johansson-Double_Defeat_of_Double-Submit_Cookie.pdf\n\n### Credits\n\nThis vulnerability was found by Xhelal Likaj <[email protected] >.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [fastify-csrf](https://github.com/fastify/fastify-csrf)\n* Email us at [[email protected] ](mailto:[email protected] )\n",
"summary": "Lack of protection against cookie tossing attacks in fastify-csrf",
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "3.1.0"
}
]
}
],
"package": {
"name": "fastify-csrf",
"ecosystem": "npm"
}
}
],
"modified": "2021-05-17T20:29:48Z",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N"
}
],
"published": "2021-05-17T20:53:30Z",
"references": [
{
"url": "https://github.com/fastify/fastify-csrf/security/advisories/GHSA-rc4q-9m69-gqp8",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2021-29624",
"type": "ADVISORY"
},
{
"url": "https://github.com/fastify/csrf/pull/2",
"type": "WEB"
},
{
"url": "https://github.com/fastify/fastify-csrf/pull/51",
"type": "WEB"
},
{
"url": "https://cheatsheetseries.owasp.org/cheatsheets/Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.html",
"type": "WEB"
},
{
"url": "https://github.com/fastify/fastify-csrf/releases/tag/v3.1.0",
"type": "WEB"
},
{
"url": "https://owasp.org/www-pdf-archive/David_Johansson-Double_Defeat_of_Double-Submit_Cookie.pdf",
"type": "WEB"
}
],
"schema_version": "1.4.0",
"database_specific": {
"cwe_ids": [
"CWE-352",
"CWE-565"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": "2021-05-19T22:15:00Z",
"github_reviewed_at": "2021-05-17T20:29:48Z"
}
}