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

What LogPulse has for it

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

  1. Check the version under Console > About in Cacti.
  2. Back up the Cacti database and install directory.
  3. Upgrade to 1.2.8 or the latest 1.2.x release (package manager or the release tarball) and run the upgrade wizard.
  4. Review which accounts can reach graphs.php and remove unused ones.
  5. 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.

Start free with LogPulse