Cacti Remote Code Execution Vulnerability (4http2shell) Advisory

Overview

Recently, NSFOCUS CERT monitored the public disclosure of a remote code execution vulnerability in Cacti (4http2shell), also referred to as “4HTTP2ROOT”. Because Cacti fails to properly validate the user configuration parameter preview_graphs_per_page and allows default database configuration values to be concatenated directly into an SQL LIMIT clause, when the Guest account is enabled, an unauthenticated attacker can leverage stacked queries to modify poller_item.arg1 into a malicious command and trigger poller execution via the guest-accessible real-time graph interface, thereby executing arbitrary code with the privileges of the Cacti process. With a CVSS score of 9.8 and both vulnerability details and Proof-of-Concept (PoC) exploits publicly available, affected users are urged to take protective measures as soon as possible.

Cacti is a network traffic monitoring and graphing analysis tool built on PHP, MySQL, SNMP, and RRDTool. It provides data storage, graphical visualization, threshold alerting, and centralized monitoring, and is widely deployed across enterprise network and infrastructure monitoring environments.

Reference Link: https://watchtowr.com/intelligence/4http2root-cacti-zero-day-faq/

Scope of Impact

Affected Version

  • Cacti = 1.2.31 (verified affected version)

Note: This vulnerability affects Cacti instances where the Guest account is enabled and the web interface is accessible.

Detection

Manual Detection

Users can determine whether their Cacti instance falls within the affected scope by checking the Cacti version and Guest account settings:

1. Check the Cacti version: Log in to the Cacti web console and navigate to “Utilities > System Utilities” to view the Cacti Version, or check the version number displayed at the bottom of the page.

2. Check the anonymous Guest access configuration: Navigate to “Settings > Authentication > Special Users” and inspect the “Guest User” setting. If it is set to “No User”, anonymous guest access is disabled. If a specific user is assigned, check “User Management” to verify whether that user’s “Enabled” status is active.

If the current Cacti version falls within the affected range and the Guest account is enabled, a security risk may exist.

Mitigation

Official Upgrade

No official patch or updated release has been issued by the vendor yet. Affected users are advised to closely monitor official security updates and upgrade promptly once available. Download link: https://www.cacti.net/download_cacti.php

Temporary Measures

Without impacting normal business operations, users can apply the following temporary mitigation measures:

1. Disable the Cacti Guest account and restrict network access to the Cacti web interface.

2. Audit poller configurations for any anomalous commands, and monitor logs for alerts indicating non-numeric values in graph display settings.

Statement

This advisory is only used to describe a potential risk. NSFOCUS does not provide any commitment or promise on this advisory. NSFOCUS and the author will not bear any liability for any direct and/or indirect consequences and losses caused by transmitting and/or using this advisory. NSFOCUS reserves all the rights to modify and interpret this advisory. Please include this statement paragraph when reproducing or transferring this advisory. Do not modify this advisory, add/delete any information to/from it, or use this advisory for commercial purposes without permission from NSFOCUS.

About NSFOCUS

NSFOCUS, a pioneering leader in cybersecurity, is dedicated to safeguarding telecommunications, Internet service providers, hosting providers, and enterprises from sophisticated cyberattacks.

Founded in 2000, NSFOCUS operates globally with over 3000 employees at two headquarters in Beijing, China, and Santa Clara, CA, USA, and over 50 offices worldwide. It has a proven track record of protecting over 25% of the Fortune Global 500 companies, including four of the five largest banks and six of the world’s top ten telecommunications companies.

Leveraging technical prowess and innovation, NSFOCUS delivers a comprehensive suite of security solutions, including the Intelligent Security Operations Platform (ISOP) for modern SOC, DDoS Protection, Continuous Threat Exposure Management (CTEM) Service and Web Application and API Protection (WAAP). All the solutions and services are augmented by the Security Large Language Model (SecLLM), ML, patented algorithms and other cutting-edge research achievements developed by NSFOCUS.

Deixe um comentário

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *