Cacti SQL Injection Vulnerability Exploited in the Wild via 4HTTP2SHELL Exploit

Hackers began exploiting a high-severity SQL injection flaw in Cacti one day after proof-of-concept code was published. The vulnerability in Cacti Core version 1.2.31 allows an authenticated user with Normal User permissions to gain administrator rights and execute arbitrary OS commands. The issue carries a CVSS score of 8.8 and has no CVE identifier assigned yet. Cacti maintainers released patches for the 1.2.31, 1.2.x, and develop branches that will ship in version 1.2.32. The exploit, originally named 4HTTP2ROOT and later 4HTTP2SHELL, chains the flaw with guest access to enable unauthenticated remote command execution through four standard HTTP requests. First in-the-wild attacks were observed on November 27, with nearly 1,800 attempts recorded by researchers at Previdian and WatchTowr.

SecurityWeekTranslated from English

Read at source

Hackers started exploiting a high-severity Cacti vulnerability one day after proof-of-concept (PoC) exploit code was published online. An open source network monitoring and graphing tool built on RRDtool, Cacti allows enterprises to collect and track data from network devices such as routers, servers, switches, and more.

Cacti Core version 1.2.31 was found vulnerable to a high-severity SQL injection bug that could allow an authenticated attacker with ‘Normal User’ permissions to gain administrator rights and arbitrary OS command execution. The flaw has a CVSS score of 8.8, but no CVE identifier yet.

“Any authenticated user holding the default ‘Normal User’ permissions obtains read/write access to the entire Cacti database as the application DB user. This yields administrator takeover and, through intended administrative features, remote command execution on the Cacti server,” Cacti said.

On Saturday, Cacti’s maintainers announced that patches have been released for the 1.2.31, 1.2.x, and ‘develop’ branches and will be included in version 1.2.32. They credited DevOps engineer Amdadul Bari for privately reporting the security defect on November 19.

On November 26, two days before Cacti’s advisory, another researcher published PoC exploit code chaining the vulnerability with ‘guest’ access and real-time graph handling. Cacti has had the guest account disabled by default since version 0.8.7.

The exploit, initially called 4HTTP2ROOT and then renamed to 4HTTP2SHELL, allows an unauthenticated attacker to execute OS commands on the Cacti server. The exploit does not require an account or a valid session, turning the security hole into an unauthenticated attack. 4HTTP2SHELL has been tested on Cacti Core version 1.2.31 with the guest account enabled and involves four HTTP requests that turn the SQL injection into a shell.

“The four-request path is also quiet. A guest session is normal. A profile update is normal. A preview request is normal. A real-time graph request is normal. There is no upload, no exploit payload in a URL that looks like a shell, and no authentication event,” the researcher says.

“The attacker starts as an anonymous guest, writes an unvalidated value into a per-user display setting, and that value is later inserted into a database query that the server treats as more than one command. One of those extra commands changes a poller setting to a shell command, which a separate guest-reachable page then executes,” preemptive cybersecurity firm WatchTowr explains.

The first in-the-wild exploitation attempts targeting 4HTTP2SHELL occurred on November 27, Previdian and WatchTowr warn. Previdian observed nearly 1,800 attempts. Organizations are advised to disable the guest account in their Cacti deployments, ensure the platform is only accessible from trusted networks, review unexpected changes to user settings, and enforce least privilege policies.

Meridian digestThe week's most consequential security stories, distilled into one briefing.See the digest

More in Vulns & Exploits

Docker Sandboxes Flaw Allows Malicious Kits to Exfiltrate AI API Keys Without User Prompts
OFFIS DCMTK Toolkit Hit by Critical Missing Authorization and Partial String Comparison Flaws
CISA Warns of Critical Vulnerabilities in Nextgen Healthcare Mirth Connect Allowing Arbitrary Script Execution and Man-in-the-Middle Attacks