Cyber Security News

Cacti Cross-Site-Scripting Vulnerability Let Attacker Poison Database

A Stored Cross-Site Scripting (Stored XSS) vulnerability was recently discovered in Cacti that allows an authenticated user to poison the data stored in Cacti’s database.

Moreover, administrative accounts can view this poisoned data, and JS code executes on the victim’s browser when viewed.

Cacti is a web-based open-source network monitoring, fault, and configuration management tool that acts as an RRDtool (round-robin database tool). It allows users to poll services at specified intervals and provide a resulting graph.

Cacti Cross-Site-Scripting Vulnerability

Cacti has a PHP file under the name “report_admin.php,” which displays reporting information about graphs, devices, data sources, etc. This page can be viewed only by administrative accounts with additional privileges.

This page can be supplied with a malicious device name related to the graph on the report, which can result in stored XSS.

Users who have General Administration>Sites/Devices/Data permissions can configure a device name in Cacti.

The configuration occurs through the http://<HOST>/cacti/host.php and is rendered at http://<HOST>/cacti/reports_admin.php.

Hence, a threat actor can supply the malicious device name at the host.php, and the malicious payload will be executed at the reports_admin.php.

This malicious payload execution was due to the concatenation of the $title variable with a non-escaped $description variable on the call-pipeline code, resulting in a malicious JS code affecting the victim browser’s DOM. This leads to the stored XSS attack.

Administrative accounts view the reports_admin.php page with a GET request where the malicious JS code gets executed. 

The HTTP response for this request consists of the malicious payload as an HTML tag.

Impact

If threat actors are successful in exploiting this vulnerability, they can perform.

  • Account TakeOver (ATO)
  • Perform malicious actions as the victim user
  • Redirecting the user to a malicious website
  • Retrieve sensitive information by disguising it as the Cacti webpage
  • Browser-based exploitation and attacks
  • Make a botnet and conduct a DDoS attack.

A complete report about this Stored XSS vulnerability has been published on GitHub, providing additional information about the methods of execution and impacts.

Organizations using Cacti are recommended to make the data as a text element in the rendered HTML so that the malicious code block does not get executed in the final HTML output.

Keep informed about the latest Cyber Security News by following us on Google News, Linkedin, Twitter, and Facebook.

Eswar

Eswar is a Cyber security reporter with a passion for creating captivating and informative content. With years of experience under his belt in Cyber Security, he is reporting data breach, Privacy and APT Threats.

Recent Posts

NSA, CISA and NIST Release New Security Guidelines to Detect and Shut Down Rogue AI Agents

NSA, CISA, and NIST have released joint security guidelines to help organizations detect, contain, and…

2 hours ago

Hackers Exploit SiteGuard WAF Vulnerability That Could Give Them Full Control of Servers

Hackers are exploiting a command injection flaw in SiteGuard Server Edition, a web application firewall…

2 hours ago

Hackers Registered New Teams-Based Domains and Used a Login Page to Steal Your Logins

A newly registered domain copies Microsoft Teams’ login page and interface, raising concerns about a…

3 hours ago

16-Year-Old Broadcom Wi-Fi Flaw Lets Attackers Hack Routers Without Knowing Passwords

A 16-year-old flaw in Broadcom’s Wi-Fi software can let attackers within wireless range take control…

3 hours ago

Google Unveils New Android AI Protections to Block Scam Calls, Phishing Links and OTP Theft

Google has announced a new set of Android security protections designed to stop mobile scams…

8 hours ago

Hackers Exploiting Plex Vulnerabilities in the Wild to Deploy Cryptominer Malware

Hackers are exploiting flaws in Plex Media Server to install cryptocurrency mining malware, with a…

10 hours ago