Cacti 4HTTP2SHELL Zero-Day Exploited After Public PoC

Attackers began targeting a newly disclosed Cacti vulnerability within a day of the public release of a working exploit, researchers at Previdian and watchTowr reported. Tracked as 4HTTP2SHELL and previously called 4HTTP2ROOT, the exploit can provide unauthenticated command execution on Cacti servers that have the Guest account enabled. The first in-the-wild exploitation attempts were observed on November 27, according to SecurityWeek. [31]

The attack chain targets Cacti Core 1.2.31 and uses four HTTP requests. An unauthenticated visitor abuses weak validation in guest-user graph display settings to store SQL statements in the application database. The attacker then alters a real-time poller command and invokes Cacti’s graphing functionality, causing the server to execute an operating-system command through the poller. The researcher’s public proof of concept describes the path from a fresh HTTP session to command execution without a password or API key. [30]

The practical impact depends on the privileges of the account running Cacti’s web application and poller; the exploit does not inherently grant root access. Cacti’s official security advisory describes the underlying unvalidated profile-setting issue as affecting versions up to and including 1.2.31, while independent researchers have confirmed the publicly demonstrated chain against 1.2.31 with guest access configured. No CVE identifier, NVD record or CVSS v3 or v4 score had been assigned for 4HTTP2SHELL as of November 30. [15]

Cacti maintainers moved quickly after disclosure. The project merged security fixes into the 1.2.31 maintenance branch and the 1.2.x and development branches. The changes prevent shared guest sessions from saving profile and graph preferences, enforce permission checks and validate numeric graph settings; the official advisory says the fixes will be included in Cacti 1.2.32. [16][17]

Administrators should update to the fixed code as soon as it is available and disable the Guest User setting immediately if an update cannot be deployed. Cacti’s advisory specifically recommends setting Guest User to No User, then reviewing the settings_user table for unexpected nonnumeric values in preferences including preview_graphs_per_page, treeview_graphs_per_page, realtime_interval, min_tree_width, max_tree_width and page_refresh. Defenders should also examine web-server, Cacti and poller logs for unusual guest requests, modified poller commands and newly created web shells. [15]

References

  1. Authenticated SQL injection (stacked queries) via unvalidated profile setting reaching the graph preview LIMIT clause — any “Normal User” can become administrator
  2. fix(security): protect profile changes and graph pagination on 1.2.31 by somethingwithproof · Pull Request #9013 · Cacti/cacti
  3. fix(security): [1.2.x] harden user settings validation, Guest writes, and realtime graph access by somethingwithproof · Pull Request #9014 · Cacti/cacti
  4. Sad Girls 0day Club
  5. GitHub – ekomsSavior/Sad-Girls-0day-Club: farming zero days from my depression bubble. Coping till the next shell.

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply