Skip to content
SQL injection Advisory Intermediate CVE-2023-39365

Cacti graph_view SQL Injection Authentication Bypass Vulnerability

The graph_view endpoint in Cacti fails to properly validate user-supplied input before using it in SQL queries, allowing an authenticated attacker to bypass authentication or escalate privileges. The attacker could combine this with other vulnerabilities to execute arbitrary code as the service account.

Anonymous Follow

Originally disclosed on Zero Day Initiative

High 8.8 View original

This vulnerability allows remote attackers to bypass authentication or escalate privileges on affected installations of Cacti. Authentication is required to exploit this vulnerability when the product is in its default configuration.

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 constructs SQL queries using user-supplied input without proper sanitisation or parameterisation.

Impact

An authenticated attacker could bypass authentication or escalate privileges, and by chaining with other vulnerabilities, could execute arbitrary code as the service account.

What the attacker needed

Authentication (default configuration)

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 part of it called graph_view takes input from a user and puts it directly into a database command without checking it first. This lets someone who is already logged in trick the database into running unintended commands, which can give them higher access or even let them run their own code on the server.

What is SQL injection?

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.

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.

SQL injection

The lesson behind this report.

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.