CriticalSecurityWeek

Cacti’s Guest-to-Shell Bug Is Now Under Attack, and Patched

Previdian logged 1,841 exploit attempts from 111 IPs against the Cacti 4HTTP2SHELL bug from Nov. 27. Cacti has patched it and says any Normal User account can exploit it, not just guest.

The Cacti bug that turns a guest login into a shell is now under attack, and there’s finally a fix. SecurityWeek reports that exploitation started the day after the proof of concept went public. Honeypot firm Previdian counted 1,841 attempts from 111 source IPs between Nov. 27 and Nov. 30. Cacti’s maintainers shipped a patch on Nov. 29. They also confirmed something worse than the original write-up said: any ordinary logged-in user can exploit the bug, not just a guest.

For defenders

Affected: Cacti up to and including 1.2.31, per the vendor’s advisory GHSA-5×85-g4vc-gq53. The flaw is a stored (second-order) SQL injection in a per-user display setting. Cacti rates it CVSS 8.8 because it needs a “Normal User” login, which is enough to take over the database and then run commands through admin features. Previdian rates the public guest-access chain 9.8, since that version needs no account at all. No CVE yet.

Status: exploitation attempts CONFIRMED in the wild (Previdian, watchTowr). Previdian’s first hits, at about 08:48 UTC on Nov. 27, were time-based SQL injection probes. Later requests tried to change Cacti’s configuration to get command execution. Previdian says it has not confirmed a successful shell on a production server. Public proof of concept: yes. Not in CISA KEV.

Fix: Cacti published a maintenance patch for 1.2.31 and the 1.2.x and develop branches. The fix is meant to land in 1.2.32, but Previdian says that release wasn’t on the official releases page as of Dec. 1. Apply the patch now rather than waiting for it. T1190 (Exploit Public-Facing Application), T1059.004 (Command and Scripting Interpreter: Unix Shell).

What changed since our first story: turning off the guest account is no longer enough on its own, because any Normal User account can reach the bug. Our Nov. 27 write-up explains how the four-request chain works and carries four Hunt Leads (log warnings, the guest-session request sequence, poller-table tampering, and shells spawned by the web worker). All four still apply.

Also do: keep Cacti on a management network or behind a VPN, limit who can edit profile settings until you’re patched, and check stored user preferences and poller settings for changes you didn’t make. If you find signs of compromise, rotate the SNMP strings and device passwords Cacti stores.

What it means for you

Cacti is the graphing tool many IT teams use to watch their network gear. If you don’t run it, there’s nothing to do. If your IT team or provider does, this has moved from “lock it down and wait” to “patch it today”. Attackers are already scanning for it, and a compromised Cacti server holds the passwords to the routers and switches it watches.

Do this now

  1. Apply the Cacti maintenance patch from the vendor advisory (back up the app and database first).
  2. Set the guest user to “No User” under Console > Configuration > Settings > Authentication.
  3. Restrict the Cacti web interface to admin networks or VPN users.
  4. Run the checks in our earlier Hunt Leads against logs going back to Nov. 26.

More from the Roundup