hoch8.8
CVE-2020-28482
Cross-site Request Forgery in fastify-csrf
Auswirkung
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
Ein Angreifer kann die Lücke über das Netzwerk ausnutzen, ohne Anmeldung, allerdings muss ein Nutzer etwas tun, etwa eine Datei oder einen Link öffnen. Bei Erfolg: hohes Risiko, dass Daten ausgelesen werden, hohes Risiko, dass Daten oder Systeme verändert werden, hohes Risiko für Ausfälle.
Betroffene Pakete
| Ökosystem | Paket | Betroffen | Behoben in |
|---|---|---|---|
| npm | fastify-csrf | < 3.0.0 | 3.0.0 |
Betroffene Produkte · Fastify
| Produkt | Betroffene Versionen |
|---|---|
| Fastify-csrf | vor 3.0.0 |
Schwachstellenklasse
Referenzen
- NVD-Eintrag
- CVE.org-Eintrag
- GitHub-Advisory
- https://github.com/fastify/fastify-csrf/pull/26
- https://snyk.io/vuln/SNYK-JS-FASTIFYCSRF-1062044
- https://github.com/advisories/GHSA-49wp-qq6x-g2rf
- https://nvd.nist.gov/vuln/detail/CVE-2020-28482
- https://github.com/fastify/fastify-csrf/commit/3c9de36e9e73ce0eda9207f84f2ac0243e1f5253
- https://www.npmjs.com/package/fastify-csrf