RCE5SNAGIOSDIR
drwxr-xr-x. 3 root root 18 Apr 7 2020 /usr/share/nagios
drwxrwxr-x. 15 root root 4096 Aug 27 2020 /usr/share/nagios/html
PHPHANDLER
Allow php to handle Multiviews
AddType text/html .php
Add index.php to the list of files that will be served as directory
DirectoryIndex index.php
mod_php options
<IfModule mod_php7.c>
# Cause the PHP interpreter to handle files with a .php extension.
<FilesMatch .php$>
SetHandler application/x-httpd-php
# Uncomment the following lines to allow PHP to pretty-print .phps
#<FilesMatch .phps$>
# SetHandler application/x-httpd-php-source
php_value session.save_handler "files"
php_value session.save_path "/var/lib/php/session"
php_value soap.wsdl_cache_dir "/var/lib/php/wsdlcache"
#php_value opcache.file_cache "/var/lib/php/opcache"
Allow php to handle Multiviews
AddType text/html .php
Add index.php to the list of files that will be served as directory
DirectoryIndex index.php
CACHESVC
total 752
drwxrwxrwx. 2 cachet cachet 100 Jul 27 2021 .
drwxrwxrwx. 4 cachet cachet 68 Feb 11 2022 ..
-rwxrwxrwx. 1 cachet cachet 14 Jul 27 2021 .gitignore
-rwxrwxrwx. 1 cachet cachet 592778 Jul 27 2021 compiled.php
-rwxrwxrwx. 1 cachet cachet 21802 Jul 27 2021 config.php
-rwxrwxrwx. 1 root root 134579 Jul 27 2021 routes.php
-rwxrwxrwx. 1 cachet cachet 11736 Jul 27 2021 services.php
ENDCHECK
RCE5E