GHSA-49WP-QQ6X-G2RF
Vulnerability from github – Published: 2021-01-20 21:30 – Updated: 2022-06-29 21:54
VLAI?
Summary
Cross-site Request Forgery in fastify-csrf
Details
The package fastify-csrf before 3.0.0 has a set of issues that affect its ability to do CSRF protection.
1. The generated cookie used insecure defaults, and did not have the httpOnly flag on: cookieOpts: { path: '/', sameSite: true }
2. The CSRF token was available in the GET query parameter
Severity ?
8.8 (High)
{
"affected": [
{
"package": {
"ecosystem": "npm",
"name": "fastify-csrf"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "3.0.0"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2020-28482"
],
"database_specific": {
"cwe_ids": [
"CWE-352"
],
"github_reviewed": true,
"github_reviewed_at": "2021-01-20T19:49:01Z",
"nvd_published_at": "2021-01-19T15:15:00Z",
"severity": "HIGH"
},
"details": "The package fastify-csrf before 3.0.0 has a set of issues that affect its ability to do CSRF protection.\n1. The generated cookie used insecure defaults, and did not have the httpOnly flag on: `cookieOpts: { path: \u0027/\u0027, sameSite: true }`\n2. The CSRF token was available in the GET query parameter",
"id": "GHSA-49wp-qq6x-g2rf",
"modified": "2022-06-29T21:54:32Z",
"published": "2021-01-20T21:30:34Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2020-28482"
},
{
"type": "WEB",
"url": "https://github.com/fastify/fastify-csrf/pull/26"
},
{
"type": "WEB",
"url": "https://github.com/fastify/fastify-csrf/commit/3c9de36e9e73ce0eda9207f84f2ac0243e1f5253"
},
{
"type": "PACKAGE",
"url": "https://github.com/fastify/fastify-csrf"
},
{
"type": "WEB",
"url": "https://snyk.io/vuln/SNYK-JS-FASTIFYCSRF-1062044"
},
{
"type": "WEB",
"url": "https://www.npmjs.com/package/fastify-csrf"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
],
"summary": "Cross-site Request Forgery in fastify-csrf"
}
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…