Skip to content
Path traversal Advisory Advanced CVE-2023-39365

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.

Anonymous Follow

Originally disclosed on Zero Day Initiative

Medium 6.6 View original

This vulnerability allows remote attackers to execute arbitrary code on affected installations of Cacti. Authentication is required to exploit this vulnerability.

Anonymous, on the Zero Day Initiative

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.

More by Anonymous

View all

2,270 more disclosed reports, best first.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.