Vulnerabilities > CVE-2014-3829 - Code Injection vulnerability in Merethis Centreon and Centreon Enterprise Server
Attack vector
NETWORK Attack complexity
LOW Privileges required
NONE Confidentiality impact
COMPLETE Integrity impact
COMPLETE Availability impact
COMPLETE Summary
displayServiceStatus.php in Centreon 2.5.1 and Centreon Enterprise Server 2.2 (fixed in Centreon web 2.5.3) allows remote attackers to execute arbitrary commands via shell metacharacters in the (1) session_id or (2) template_id parameter, related to the command_line variable.
Vulnerable Configurations
Part | Description | Count |
---|---|---|
Application | 2 |
Common Weakness Enumeration (CWE)
Common Attack Pattern Enumeration and Classification (CAPEC)
- Leverage Executable Code in Non-Executable Files An attack of this type exploits a system's trust in configuration and resource files, when the executable loads the resource (such as an image file or configuration file) the attacker has modified the file to either execute malicious code directly or manipulate the target process (e.g. application server) to execute based on the malicious configuration parameters. Since systems are increasingly interrelated mashing up resources from local and remote sources the possibility of this attack occurring is high. The attack can be directed at a client system, such as causing buffer overrun through loading seemingly benign image files, as in Microsoft Security Bulletin MS04-028 where specially crafted JPEG files could cause a buffer overrun once loaded into the browser. Another example targets clients reading pdf files. In this case the attacker simply appends javascript to the end of a legitimate url for a pdf (http://www.gnucitizen.org/blog/danger-danger-danger/) http://path/to/pdf/file.pdf#whatever_name_you_want=javascript:your_code_here The client assumes that they are reading a pdf, but the attacker has modified the resource and loaded executable javascript into the client's browser process. The attack can also target server processes. The attacker edits the resource or configuration file, for example a web.xml file used to configure security permissions for a J2EE app server, adding role name "public" grants all users with the public role the ability to use the administration functionality. The server trusts its configuration file to be correct, but when they are manipulated, the attacker gains full control.
- Manipulating User-Controlled Variables This attack targets user controlled variables (DEBUG=1, PHP Globals, and So Forth). An attacker can override environment variables leveraging user-supplied, untrusted query variables directly used on the application server without any data sanitization. In extreme cases, the attacker can change variables controlling the business logic of the application. For instance, in languages like PHP, a number of poorly set default configurations may allow the user to override variables.
Exploit-Db
id | EDB-ID:41676 |
last seen | 2018-11-30 |
modified | 2014-10-15 |
published | 2014-10-15 |
reporter | Exploit-DB |
source | https://www.exploit-db.com/download/41676 |
title | Centreon < 2.5.1 / Centreon Enterprise Server < 2.2 - SQL Injection / Command Injection (Metasploit) |
Metasploit
description | This module exploits several vulnerabilities on Centreon 2.5.1 and prior and Centreon Enterprise Server 2.2 and prior. Due to a combination of SQL injection and command injection in the displayServiceStatus.php component, it is possible to execute arbitrary commands as long as there is a valid session registered in the centreon.session table. In order to have a valid session, all it takes is a successful login from anybody. The exploit itself does not require any authentication. This module has been tested successfully on Centreon Enterprise Server 2.2. |
id | MSF:EXPLOIT/LINUX/HTTP/CENTREON_SQLI_EXEC |
last seen | 2020-06-05 |
modified | 2018-09-15 |
published | 2014-10-07 |
references | |
reporter | Rapid7 |
source | https://github.com/rapid7/metasploit-framework/blob/master//modules/exploits/linux/http/centreon_sqli_exec.rb |
title | Centreon SQL and Command Injection |
Nessus
NASL family | CGI abuses |
NASL id | CENTREON_253.NASL |
description | According to its version number, the Centreon application hosted on the remote web server is affected by multiple vulnerabilities : - Multiple unauthenticated SQL injection vulnerabilities. (CVE-2014-3828) - A remote, unauthenticated command injection vulnerability in the |
last seen | 2020-06-01 |
modified | 2020-06-02 |
plugin id | 80224 |
published | 2014-12-23 |
reporter | This script is Copyright (C) 2014-2019 and is owned by Tenable, Inc. or an Affiliate thereof. |
source | https://www.tenable.com/plugins/nessus/80224 |
title | Centreon < 2.5.3 Multiple Vulnerabilities |
code |
|
Packetstorm
data source https://packetstormsecurity.com/files/download/128740/centreon-sqlexec.txt id PACKETSTORM:128740 last seen 2016-12-05 published 2014-10-18 reporter MaZ source https://packetstormsecurity.com/files/128740/Centreon-SQL-Injection-Command-Injection.html title Centreon SQL Injection / Command Injection data source https://packetstormsecurity.com/files/download/128825/centreon_sqli_exec.rb.txt id PACKETSTORM:128825 last seen 2016-12-05 published 2014-10-23 reporter juan vazquez source https://packetstormsecurity.com/files/128825/Centreon-SQL-Command-Injection.html title Centreon SQL / Command Injection
References
- http://seclists.org/fulldisclosure/2014/Oct/78
- http://www.kb.cert.org/vuls/id/298796
- https://documentation.centreon.com/docs/centreon/en/latest/release_notes/centreon-2.5/centreon-2.5.3.html
- https://github.com/centreon/centreon/commit/cc2109804dd69057cb209037113796ec5ffdce90#diff-e328097503b14fbb117e0db798aefcde