Welcome to our

Cyber Security News Aggregator

.

Cyber Tzar

provide a

cyber security risk management

platform; including automated penetration tests and risk assesments culminating in a "cyber risk score" out of 1,000, just like a credit score.

4HTTP2ROOT Cacti Guest Zero-Day: Root Cause and Detection

published on 2026-11-29 07:18:05 UTC by Mayuresh
Content:

4HTTP2ROOT or 4HTTP2SHELL lets an anonymous attacker run shell commands on a Cacti server in four HTTP requests, but only when the Cacti guest user is turned on. There is no CVE, no advisory and no packaged release yet. Cacti committed a fix to the 1.2.x and develop branches on 28 November 2026. On 26 November 2026 a researcher who writes as ek0ms savi0r published a four-request chain against Cacti Core 1.2.31 with a working proof of concept. I read the write-up, then read the Cacti source at the 1.2.31 tag and the fix commits that landed about a day later. This post is what the code says, what the fix closes, what it leaves open, and how to find out if someone already used it on your server.

4HTTP2ROOT Cacti Guest Zero-Day

What is 4HTTP2ROOT?

It is a stored, second-order SQL injection that ends in command execution. A guest saves text where Cacti expects a page size. A later page builds a SQL LIMIT clause from that saved text, and the database runs a second statement that rewrites a poller command. A realtime graph request then runs that command through popen().

4HTTP2ROOT: Attack Path

4HTTP2ROOT: Root cause

The researcher describes four stacked failures. All four hold in release/1.2.31. I found a fifth that explains why an attacker with a guest account can reach the realtime poller at all.

  1. Guest pages skip the realm check. In include/auth.php, a page that sets $guest_account = true returns before the realm permission lookup. auth_profile.php, graph_view.php and graph_realtime.php all set it. The default guest account only holds the graph view realm, but that does not matter on these pages. graph_realtime.php in 1.2.31 has no realm or graph check of its own.
  2. Any value goes into a numeric setting. auth_profile.php?action=update_data checks that the setting name exists in $settings_user and then stores the value with a prepared REPLACE. The storage is safe. Nothing checks that preview_graphs_per_page is a number.
  3. The stored default skips request validation. html_graph_validate_preview_request_vars() declares graphs with FILTER_VALIDATE_INT and a default of read_user_setting('preview_graphs_per_page', 20). When the request carries no graphs parameter, validate_store_request_vars() copies the default in without filtering it.
  4. The value is concatenated into SQL. graph_view.php builds $limit from graphs and page, and get_allowed_graphs() appends LIMIT $sql_limit. The researcher reports that PDO ran the stacked UPDATE. I did not test that part.
  5. A database row becomes a shell command. cmd_realtime.php passes poller_item.arg1 to exec_poll(), which calls popen(). cmd.php does the same for every script data source on every polling cycle.

I reproduced one link in PHP 8.3: multiplying the poisoned value raises A non-numeric value encountered and produces a LIMIT string that starts 0,1;UPDATE. Cacti’s error handler logs that warning to cacti.log, so this is the cheapest detection you have. The line numbers in the write-up (graph_view.php:657, lib/auth.php:1574-1578) match the unreleased 1.2.x branch, which reports version 1.2.32. In the 1.2.31 tag the same code sits at line 487 and line 1478. My reading is that the lab ran the development branch. The code pattern is identical in the 1.2.31 tag, so I still treat 1.2.31 as affected, but nobody has published a test on the packaged 1.2.31 release.

Which Cacti versions are affected?

I checked every release/1.2.x tag from 1.2.10 to 1.2.31. All 22 carry the same three pieces: the unvalidated update_data write, the setting-backed default, and the concatenated preview LIMIT. That is a code match, not a lab test, and older releases have other guest holes on top.

BuildVersionStatusWatch out
Upstream release1.2.31 (15 June 2026)Affected, guest on1.2.31 was the fix for June’s guest pre-auth SQL injections. Upgrading for those did not cover this.
Upstream 1.2.x branch1.2.32-dev before 49fd19bAffected (researcher lab)The 6 November POST and CSRF backport does not help. The guest owns a valid token.
Upstream 1.2.x branch49fd19b and laterFixed in sourceNo tarball. Eight files change; test before deploying.
Upstream develope23470d81 and laterFixed in sourceSame fix, develop line.
Older upstream1.2.10 to 1.2.30Same codeAlso open to the June 2026 advisories.
Debianbullseye 1.2.16, bookworm 1.2.24, trixie 1.2.30, forky and sid 1.2.31Same code, no distro fixNo CVE, so no tracker entry will appear yet.
Fedora EPELEPEL 8 and 9: 1.2.30Same code, no distro fixAlso older than the June fixes.
UbuntuFocal 1.2.10; newer series not checkedSame code where 1.2.xI did not confirm the current series.

What the fix closes and what it leaves

Commit 49fd19b (pull request 9014, merged 28 November 2026) and its develop twin e23470d81 return 403 to guest writes on the profile and realtime endpoints, validate every numeric user setting against its schema, clamp graphs and page to integers before the LIMIT is built, and add is_graph_allowed() before realtime runs the poller. Neither commit mentions 4HTTP2ROOT, a GHSA or a CVE.

Two things stay as they were. get_allowed_graphs() still concatenates whatever LIMIT it is given, and exec_poll() still hands poller_item.arg1 to a shell. The fix breaks this chain at the input. Any other SQL injection that can write poller_item still ends in a shell, and Cacti published several SQL injection advisories this year.

4HTTP2Root Attack Reachability

I reproduced one link in PHP 8.3: multiplying the poisoned value raises A non-numeric value encountered and produces a LIMIT string that starts 0,1;UPDATE. Cacti’s error handler logs that warning to cacti.log, so this is the cheapest detection you have. The line numbers in the write-up (graph_view.php:657, lib/auth.php:1574-1578) match the unreleased 1.2.x branch, which reports version 1.2.32. In the 1.2.31 tag the same code sits at line 487 and line 1478. My reading is that the lab ran the development branch. The code pattern is identical in the 1.2.31 tag, so I still treat 1.2.31 as affected, but nobody has published a test on the packaged 1.2.31 release.

Which Cacti versions are affected?

I checked every release/1.2.x tag from 1.2.10 to 1.2.31. All 22 carry the same three pieces: the unvalidated update_data write, the setting-backed default, and the concatenated preview LIMIT. That is a code match, not a lab test, and older releases have other guest holes on top.

BuildVersionStatusWatch out
Upstream release1.2.31 (15 June 2026)Affected, guest on1.2.31 was the fix for June’s guest pre-auth SQL injections. Upgrading for those did not cover this.
Upstream 1.2.x branch1.2.32-dev before 49fd19bAffected (researcher lab)The 6 November POST and CSRF backport does not help. The guest owns a valid token.
Upstream 1.2.x branch49fd19b and laterFixed in sourceNo tarball. Eight files change; test before deploying.
Upstream develope23470d81 and laterFixed in sourceSame fix, develop line.
Older upstream1.2.10 to 1.2.30Same codeAlso open to the June 2026 advisories.
Debianbullseye 1.2.16, bookworm 1.2.24, trixie 1.2.30, forky and sid 1.2.31Same code, no distro fixNo CVE, so no tracker entry will appear yet.
Fedora EPELEPEL 8 and 9: 1.2.30Same code, no distro fixAlso older than the June fixes.
UbuntuFocal 1.2.10; newer series not checkedSame code where 1.2.xI did not confirm the current series.

What the fix closes and what it leaves

Commit 49fd19b (pull request 9014, merged 28 November 2026) and its develop twin e23470d81 return 403 to guest writes on the profile and realtime endpoints, validate every numeric user setting against its schema, clamp graphs and page to integers before the LIMIT is built, and add is_graph_allowed() before realtime runs the poller. Neither commit mentions 4HTTP2ROOT, a GHSA or a CVE.

Two things stay as they were. get_allowed_graphs() still concatenates whatever LIMIT it is given, and exec_poll() still hands poller_item.arg1 to a shell. The fix breaks this chain at the input. Any other SQL injection that can write poller_item still ends in a shell, and Cacti published several SQL injection advisories this year.

Reachability gates in Cacti 1.2.31

  • Open in 1.2.31: 6G3 to G8 green: Closed by the fix = 4 | G3, G4, G5, G7 dark: Unchanged by the fix = 2 | G6 LIMIT concatenation, G8 popen grey: Your own controls = 2 | G1 network, G2 guest user

Eight gates from the network to popen()

Source: my reading of release/1.2.31 and commit 49fd19b

How hard is it to exploit 4HTTP2ROOT?

4HTTP2ROOT

  • Four plain HTTP requests, no credentials, no race, no memory layout high: Public write-up names every endpoint and parameter mid: Needs a poller_item row with local_data_id the attacker can target (row 1 in the researcher's lab) low: Guest User is No User by default, so most installs are not reachable outcome: Shell as the web or poller account. Access to config.php and every stored SNMP and device credential.

Easy where guest is on

Mass exploitation is possible, but only on a minority of installs

Exploit difficulty, my assessment

4HTTP2ROOT Timeline

The write-up went public on 26 November with no vendor notice reported. watchTowr’s FAQ followed at 20:09 UTC. Cacti committed fixes at 01:24 and 01:28 UTC on 28 November, between 29 and 49 hours later, depending on the hour of publication, which nobody has stated. CISA KEV release 2026.11.27 does not list it, and nobody has reported exploitation.

4HTTP2Root CVE Timeline
4HTTP2Root CVE Timeline

The write-up went public on 26 November with no vendor notice reported. watchTowr’s FAQ followed at 20:09 UTC. Cacti committed fixes at 01:24 and 01:28 UTC on 28 November, between 29 and 49 hours later, depending on the hour of publication, which nobody has stated. CISA KEV release 2026.11.27 does not list it, and nobody has reported exploitation.

What should Cacti owners do first?

  1. Set Guest User to No User (impact: medium). Console > Configuration > Settings > Authentication. Wall displays lose anonymous access; give them a named read-only account.
  2. Restrict the web interface (impact: medium). VPN or an IP allowlist in front of Cacti. This also covers the next SQL injection.
  3. Patch (impact: medium to high). Apply 49fd19b to a 1.2.31 source install after testing, or wait for 1.2.32. Distro users have no package yet, so steps 2 and 3 are the control.
  4. After patching (impact: medium). Rebuild the poller cache, clear sessions, and confirm a guest gets 403 on update_data.
  5. If you find a poisoned row (impact: high). Isolate the host. Rotate SNMP communities, device and SSH credentials, the database password and mail relay credentials. Look for pivots from the Cacti host into management networks.

Detecting 4HTTP2ROOT Exploitation Attempts

The full Sigma, Zeek and ModSecurity bodies are in my Sigma repository.

  • cacti.log: A non-numeric value encountered in graph_view.php on PHP 8, or A non well formed numeric value encountered on PHP 7. High fidelity.
  • Database: any numeric setting in settings_user that is not an integer, and any script poller_item whose arg1 points outside the scripts directory or carries shell syntax. poller_item.last_updated moves on update, which helps date the write.
  • Process: /bin/sh started by php poller_realtime.php or cmd.php without /scripts/ in the command line.
  • Filesystem: a new .php file under the Cacti webroot written by the web server or poller account, not by a package manager. This catches the web-shell variant, which no database query will show after the attacker restores the poller row. An auditd watch on the webroot and a Sigma file-creation rule are in the repository.
  • Web and Zeek: a client that hits auth_profile.php with action=update_data and then graph_realtime.php?action=init without ever posting to auth_login.php. Hunting only: the Cacti front end puts action=update_data in the URL for normal profile edits too.
  • ModSecurity: deny update_data when the setting is one of the 23 numeric names from the fix and the value is not an integer.

FAQ

Is my Cacti server vulnerable to 4HTTP2ROOT?

Only if Guest User is set to a real account and someone untrusted can reach the web interface. The code pattern exists in every 1.2.x release from 1.2.10 to 1.2.31.

Is there a patch for 4HTTP2ROOT?

There is a source fix, commit 49fd19b on the 1.2.x branch and e23470d81 on develop, both from 28 November 2026. There is no packaged release yet.

Does 4HTTP2ROOT give root?

It gives whatever account runs the Cacti web server and poller. That is root only if you run them as root.

Does updating to Cacti 1.2.31 protect me?

No. 1.2.31 is the version the researcher targeted. It fixed the June 2026 guest SQL injections, not this one.

Article: 4HTTP2ROOT Cacti Guest Zero-Day: Root Cause and Detection - published about 10 hours ago.

https://pentestit.com/4http2root-cacti-guest-zero-day/   
Published: 2026 11 29 07:18:05
Received: 2026 11 29 08:06:33
Feed: PenTestIT
Source: PenTestIT
Category: News
Topic: Security Tooling
Views: 0

Custom HTML Block

Click to Open Code Editor