CONNECT WITH US
Cyber Security

Cyber Security

Unpatched Cacti Zero-Day Enables RCE in Just Four HTTP Requests via Guest Access

The Hacker News logo

Published on

Add as a preferred source on Google
Unpatched Cacti Zero-Day Enables RCE in Just Four HTTP Requests via Guest Access

Details have emerged about a new zero-day vulnerability in Cacti, an open-source network monitoring tool, that could be exploited to achieve remote code execution.

The proof-of-concept (PoC) exploit, which has yet to be assigned a CVE identifier, has been tracked as 4HTTP2SHELL and 4HTTP2ROOT.

"I found a path from a fresh, unauthenticated HTTP session to command execution as the Cacti server user in four requests," a security researcher who goes by the online alias "ek0ms savi0r" said. "No login. No valid API key. No phishing. Just four HTTP requests against the default guest surface."

The shortcoming affects Cacti Core 1.2.31, the latest version, on an isolated host when the guest account is enabled.

At a high level, the vulnerability allows an attacker to abuse the guest access to write an unvalidated value (i.e., non-numeric text) into a setting called "preview_graphs_per_page" via "auth_profile.php?action=update_data." The configuration parameter controls how many graphs are displayed per page when viewing graphs in Preview Mode.

The crafted value takes the form of arbitrary SQL strings that can be turned into a second-order SQL injection by taking advantage of the fact that Cacti does not validate that the user-provided input is actually an integer value. This, in turn, opens the door for arbitrary SQL query execution when the graph preview page ("graph_view.php") is loaded with default filters.

The SQL query demonstrated by "ek0ms savi0r" is an UPDATE statement to modify a record in Cacti's poller table . php") is invoked from the same guest session, which causes the modified row from the poller table to be read and passed as input to PHP's popen() function without any allowlist or sanitization checks.


Source link

Disclaimer

We strive to uphold the highest ethical standards in all of our reporting and coverage. We TheMorningPulse.fyi want to be transparent with our readers about any potential conflicts of interest that may arise in our work. It's possible that some of the investors we feature may have connections to other businesses, including competitors or companies we write about. However, we want to assure our readers that this will not have any impact on the integrity or impartiality of our reporting. We are committed to delivering accurate, unbiased news and information to our audience, and we will continue to uphold our ethics and principles in all of our work. Thank you for your trust and support.