Skip to content

GHSA-c4fj-3wqq-g9c9 CVE-2015-1561

Centreon Command Injection

High Packagist
Severity
8.5 / 10
High · CVSS 3.1
Exploit chance (EPSS)
8.27%
Chance of exploitation in the next 30 days. Higher than 94.91% of scored vulnerabilities.
Known exploited
No
Not in CISA's catalog
Weakness
CWE-77 Improper Neutralization of Special Elements used in a Command ('Command Injection')
Fix
2.8.28
Upgrade centreon/centreon to this version or later

Description

The escape_command function in include/Administration/corePerformance/getStats.php in Centreon (formerly Merethis Centreon) 2.5.4 and earlier (offending file deleted in Centreon 19.10.0) uses an incorrect regular expression, which allows remote authenticated users to execute arbitrary commands via shell metacharacters in the ns_id parameter.

Affected versions

Packagist

PackageVulnerableFixed in
centreon/centreon
< 2.8.28
2.8.28

How to fix

Move to the fixed version or later with your package manager, update the lockfile, and run your tests. If the package only arrives through another dependency, upgrade that dependency first. If none of its releases pulls a fixed version yet, force the version with your package manager's override.

centreon/centreon Packagist → 2.8.28

composer
composer require centreon/centreon:^2.8.28

Severity breakdown

CVSS 3.1 8.5

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H

Attack vector
Network
Attack complexity
High
Privileges required
Low
User interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

Weakness

CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')

The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.

How to prevent it
  • Architecture and Design: If at all possible, use library calls rather than external processes to recreate the desired functionality.
  • Implementation: If possible, ensure that all external commands called from the program are statically created.
  • Implementation: Assume all input is malicious. Use an "accept known good" input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does. When performing input validation, consider all potentially relevant properties, including length, type of input, the full range of acceptable values, missing or extra inputs, syntax, consistency across related fields, and conformance to business rules. As an example of business rule logic, "boat" may be syntactically valid because it only contains alphanumeric characters, but it is not valid if the input is only expected to contain colors such as "red" or "blue." Do not rely exclusively on looking for malicious or malformed inputs. This is likely to miss at least one undesirable input, especially if the code's environment changes. This can give attackers enough room to bypass the intended validation. However, denylists can be useful for detecting potential attacks or determining which inputs are so malformed that they should be rejected outright.
  • Operation: Run time: Run time policy enforcement may be used in an allowlist fashion to prevent use of any non-sanctioned commands.
  • System Configuration: Assign permissions that prevent the user from accessing/opening privileged files.

References

Timeline

  1. Published
  2. Last updated by the source
  3. Latest EPSS score
AdvisorySeverityWhy it's related
GHSA-626r-cj47-p49g
Centreon insertGraphTemplate SQL Injection Remote Code Execution Vulnerability
High Also affects centreon/centreon
GHSA-2j4g-v4fv-rhwg
Centreon updateContactHostCommands SQL Injection Remote Code Execution Vulnerability
High Also affects centreon/centreon
GHSA-j8hg-v5qv-9m28
Centreon updateContactServiceCommands SQL Injection Remote Code Execution Vulnerability
High Also affects centreon/centreon
GHSA-j4pc-vqvc-4p9x
Centreon updateLCARelation SQL Injection Remote Code Execution Vulnerability
High Also affects centreon/centreon
GHSA-qjvm-p5vg-437c
Centreon updateGroups SQL Injection Remote Code Execution Vulnerability
High Also affects centreon/centreon
GHSA-22v7-v3mj-pm8r
Centreon updateDirectory SQL Injection Remote Code Execution Vulnerability
High Also affects centreon/centreon
GHSA-j5wx-jvw3-j363
Centreon vulnerable to SQL Injection
Critical Also affects centreon/centreon
GHSA-rv5q-72p2-2q24
Centreon contains cross-site scripting vulnerability via esc_name parameter
Medium Also affects centreon/centreon
Is this in your code?

MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.

Check your repos with MergeHarbor