Lucene search

K
veracodeVeracode Vulnerability DatabaseVERACODE:40317
HistoryApr 27, 2023 - 1:44 p.m.

Cross-site Request Forgery (CSRF)

2023-04-2713:44:03
Veracode Vulnerability Database
sca.analysiscenter.veracode.com
9
csrf
fastify passport
session object
authentication
same-site attackers
csrf protection

EPSS

0.001

Percentile

30.5%

@fastify/passport is vulnerable to Cross-site Request Forgery (CSRF). When a user logs in, the library doesn’t remove the session object, keeping the _csrf property in tact across unauthenticated and authorized sessions. CSRF tokens created prior to authentication are therefore still valid. Thus, network and same-site attackers can acquire a CSRF token for their pre-session, fixate that pre-session in the victim’s browser via cookie throwing, and then carry out a CSRF attack once the victim authenticates. Note that the vulnerability is only applicable if @fastify/csrf-protection is used for CSRF protection.

EPSS

0.001

Percentile

30.5%

Related for VERACODE:40317