Centreon Command Injection
Impact
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.
Source excerpt · OSVAffected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
| Affected range | Recorded fix |
|---|---|
| Earlier releases before 2.8.28Ecosystem versions | 2.8.28 |
Version evidence: OSV · GHSA-c4fj-3wqq-g9c9
View original version evidence (0 explicit versions)
Original source 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.
References
- Security advisory nvd.nist.gov/vuln/detail/CVE-2015-1561
- Patch github.com/centreon/centreon-archived/pull/7083
- Patch github.com/centreon/centreon-archived/pull/7271
- Patch github.com/centreon/centreon-archived/commit/387dffdd051dbc7a234e1138a9d06f3089bb55bb
- Patch github.com/centreon/centreon-archived/commit/a78c60aad6fd5af9b51a6d5de5d65560ea37a98a
- Source reference forge.centreon.com/projects/centreon/repository/revisions/387dffdd051dbc7a234e1138a9d06f3089bb55bb
- Source reference github.com/centreon/centreon-archived
- Security advisory web.archive.org/web/20201125112637/http://www.securityfocus.com/archive/1/535961/100/0/threaded
- Public exploit reference packetstormsecurity.com/files/132607/Merethis-Centreon-2.5.4-SQL-Injection-Remote-Command-Execution.html