CVE-2020-4040:
CSRF issue on preview pages in Bolt CMS
8.6
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.5937%
CWE
Published
6/9/2020
Updated
1/28/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
bolt/bolt | composer | < 3.7.1 | 3.7.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the preview endpoint's lack of CSRF protection. The commit diff shows the critical addition of CSRF token validation
logic in Frontend.php
's preview()
method. Other changes in Config.php
and FilesystemManager.php
relate to file extension restrictions and test fixes, which are unrelated to the CSRF vulnerability. The Frontend::preview()
function was clearly the vulnerable entry point because it handled POST requests for preview generation without initial CSRF checks, as evidenced by the patch adding token validation directly to this method.