Rapid7 Vulnerability & Exploit Database

Centreon SQL and Command Injection

Back to Search

Centreon SQL and Command Injection

Disclosed
10/15/2014
Created
05/30/2018

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.

Author(s)

  • MaZ
  • juan vazquez <juan.vazquez@metasploit.com>

Platform

Unix

Architectures

cmd

Development

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use exploit/linux/http/centreon_sqli_exec
msf exploit(centreon_sqli_exec) > show targets
    ...targets...
msf exploit(centreon_sqli_exec) > set TARGET < target-id >
msf exploit(centreon_sqli_exec) > show options
    ...show and set options...
msf exploit(centreon_sqli_exec) > exploit

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;