CVE-2021-3129 in facade ignition
LogPulse has a published detection rule for this CVE: it raises a notable when someone tries to exploit it.
What the vulnerability is
Ignition before 2.5.2, as used in Laravel and other products, allows unauthenticated remote attackers to execute arbitrary code because of insecure usage of file_get_contents() and file_put_contents(). This is exploitable on sites using debug mode with Laravel before 8.4.2.
Affected software: facade ignition
Scores
- CVSS: 9.8 (critical)
- EPSS: 99.94% chance of exploitation in the next 30 days
- CISA KEV: Known exploited, listed 2023-09-18, used in ransomware
- Published: 2021-01-12
What LogPulse has for it
- Detection rule: Yes, published
- Agent check (vulnerable version): No
- Mitigation: Yes, see below
How to mitigate it
Upgrade Laravel Ignition to 2.5.2 and turn off debug mode (CVE-2021-3129)
Patch or upgrade. Ignition 2.5.2 removes the file write in execute-solution; APP_DEBUG=false in production stops Ignition from answering at all.
Applies to: Laravel apps with facade/ignition before 2.5.2 and debug mode on
- Check facade/ignition in composer.lock.
- Run composer update facade/ignition to 2.5.2 or later (or move to spatie/laravel-ignition).
- Set APP_DEBUG=false in the production .env and clear the config cache.
- Check storage/logs/laravel.log for phar:// or php://filter entries and investigate.
Sources:
Source data: NIST NVD, CISA KEV and FIRST EPSS. LogPulse processes new CVEs every hour.
We build every detection with great care, but no two environments are the same. Log sources, parsing and configuration differ, so test a detection in your own environment before you rely on it.