CVE-2021-3728: firefly-iii is vulnerable to Cross-Site Request Forgery (CSRF)
6.5
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.30404%
CWE
Published
8/25/2021
Updated
7/6/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:N/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
grumpydictator/firefly-iii | composer | < 5.6.0 | 5.6.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from two key points: 1) The JavaScript function deleteBudgetLimit()
originally triggered destructive actions via GET requests without CSRF tokens, as evidenced by the patch adding e.preventDefault()
and proper POST handling. 2) The route definition in web.php
initially allowed GET requests for deletion, which the patch changed to POST. CSRF vulnerabilities typically occur when state-changing endpoints don't enforce proper HTTP methods and CSRF protections.