Cacti link Local File Inclusion Remote Code Execution Vulnerability
The link endpoint in Cacti fails to validate data from the database before using it in a PHP include, allowing an authenticated attacker to include a local file. This could lead to remote code execution when combined with other vulnerabilities.
This vulnerability allows remote attackers to execute arbitrary code on affected installations of Cacti. Authentication is required to exploit this vulnerability.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely, the application takes a value from the database and passes it directly to a PHP include statement without validating that it is a safe file path.
Impact
An authenticated attacker could execute arbitrary code on the server, but only if they can also exploit another vulnerability.
What the attacker needed
Authentication required; another vulnerability to achieve RCE
The fix
The vulnerability was fixed by the vendor in an update.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Cacti is a tool for monitoring network devices. A PHP include function is used to load code from another file, and if the file path comes from user input without checks, an attacker can make the server load a file of their choosing. Here, an attacker who can log in might be able to load a malicious file and run their own code on the server.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.