CVE-2018-7251 in anchorcms anchor
LogPulse has a published detection rule for this CVE: it raises a notable when someone tries to exploit it.
What the vulnerability is
An issue was discovered in config/error.php in Anchor 0.12.3. The error log is exposed at an errors.log URI, and contains MySQL credentials if a MySQL error (such as "Too many connections") has occurred.
Affected software: anchorcms anchor
Scores
- CVSS: 9.8 (critical)
- EPSS: 71.83% chance of exploitation in the next 30 days
- CISA KEV: Not listed
- Published: 2018-02-19
What LogPulse has for it
- Detection rule: Yes, published
- Agent check (vulnerable version): No
- Mitigation: Yes, see below
How to mitigate it
Upgrade Anchor CMS to 0.12.7 or later and remove errors.log
Patch or upgrade. Anchor CMS 0.12.7 no longer writes a web-readable errors.log, which could hold MySQL credentials (CVE-2018-7251).
Applies to: Anchor CMS 0.12.3 up to 0.12.6.
- Check the Anchor version in the admin footer.
- Back up the site and database.
- Upgrade to Anchor 0.12.7 or a later release.
- Delete any errors.log in the web root and deny *.log files in the web server configuration.
- Change the MySQL password if errors.log was readable.
- Rerun the vulnerability scan and confirm CVE-2018-7251 is no longer reported.
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.