CVE-2021-3921: firefly-iii is vulnerable to Cross-Site Request Forgery (CSRF)
5.4
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.31446%
CWE
Published
11/15/2021
Updated
2/1/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
grumpydictator/firefly-iii | composer | < 5.6.3 | 5.6.3 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The core vulnerability stemmed from the logout endpoint accepting any HTTP
method (via Route::any
). CSRF protections typically require state-changing operations to use protected methods like POST
. The patch changed this to Route::post
, enforcing method specificity. While template files were modified to add CSRF tokens and POST
forms, the root vulnerability was in the route definition's HTTP
method handling.