CVE-2019-17357 in cacti
LogPulse has a published detection rule for this CVE: it raises a notable when someone tries to exploit it.
What the vulnerability is
Cacti through 1.2.7 is affected by a graphs.php?template_id= SQL injection vulnerability affecting how template identifiers are handled when a string and id composite value are used to identify the template type and id. An authenticated attacker can exploit this to extract data from the database, or an unauthenticated remote attacker could exploit this via Cross-Site Request Forgery.
Affected software: cacti
Scores
- CVSS: 6.5 (medium)
- EPSS: 34.24% chance of exploitation in the next 30 days
- CISA KEV: Not listed
- Published: 2020-01-21
What LogPulse has for it
- Detection rule: Yes, published
- Agent check (vulnerable version): No
- Mitigation: Yes, see below
How to mitigate it
Upgrade Cacti to 1.2.8 or later
Patch or upgrade. Cacti before 1.2.8 passes the template_id parameter of graphs.php unsanitised into SQL, so a logged-in user can inject SQL. Cacti 1.2.8 sanitises the value.
Applies to: Cacti before 1.2.8
- Check the version under Console > About in Cacti.
- Back up the Cacti database and install directory.
- Upgrade to 1.2.8 or the latest 1.2.x release (package manager or the release tarball) and run the upgrade wizard.
- Review which accounts can reach graphs.php and remove unused ones.
- Rerun the vulnerability scan to confirm CVE-2019-17357 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.