Path: blob/master/documentation/modules/exploit/linux/http/centreon_useralias_exec.md
28523 views
Vulnerable Application
Archived Copy: github
Creating A Testing Environment
Creating a testing environment for this application contained many steps, so I figured I would document the process here.
Create a fresh install of Ubuntu 16.04. I used a LAMP install. My user was
centreonInstall php5.6 askubuntu
Enable php5.6 in Apache with
a2enmod, disable php7.0 witha2dismod
Restart apache with
sudo apache2ctl restartInstall Nagios Plugins starting at step 6. The plugins link is broken, utilize nagios-plugins-2.1.1.tar.gz instead
5.1 If during make, you get an sslv3 method not found error (https://support.nagios.com/forum/viewtopic.php?f=35&t=36601&p=168235&hilit=SSLv3#p168235)
Install Centreon clib
Install Centreon Broker
Install Centreon Engine
Now install Centreon Web but only the command line portion.
Fix apache config
Configure via website. Browse to /centreon
Verification Steps
Install the application
Start msfconsole
Do:
use exploit/linux/http/centreon_useralias_execDo:
set payloadDo:
set rhostDo:
checkDo:
runYou should get a shell.
Scenarios
Just a standard run.