Skip to content
SQL injection Advisory Intermediate CVE-2024-5723

Centreon updateServiceHost SQL Injection Remote Code Execution Vulnerability

The updateServiceHost function in Centreon fails to validate user-supplied input before using it in SQL queries, allowing an authenticated attacker to inject SQL and execute arbitrary code as the apache user.

cchav3z Follow

Originally disclosed on Zero Day Initiative

High 8.8 View original

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

cchav3z, 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 updateServiceHost function concatenates user input directly into SQL queries without parameterisation or validation.

Impact

An authenticated attacker could execute arbitrary code on the server as the apache user.

What the attacker needed

Authentication required

The fix

It was fixed in centreon-web versions 22.04.24, 22.10.22, 23.04.18, 23.10.12 and 24.04.0.

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.

This is a SQL injection bug in a monitoring tool called Centreon. An attacker who is already logged in can send specially crafted input that gets mixed into a database query, letting them run their own commands on the server. The flaw is in a function that updates service hosts.

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 cchav3z

View all

2 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.