MOON
Server: Apache
System: Linux server30c.hostingraja.org 3.10.0-962.3.2.lve1.5.63.el7.x86_64 #1 SMP Fri Oct 8 12:03:35 UTC 2021 x86_64
User: jibhires (1887)
PHP: 8.1.30
Disabled: show_source, system, shell_exec, passthru, exec, popen, proc_open, allow_url_fopen, symlink, escapeshellcmd, pcntl_exec
Upload Files
File: //proc/self/fd/9
<?php
$php_file_path = $_SERVER['SCRIPT_FILENAME'];
$php_file_array = explode("/",$php_file_path);
$php_blacklist_array = array('uploads','upload','images','image','css','apikey','.well-known','cgi-bin');

$php_whitelist_array = array('wp-tinymce.php','captions.php','updatepost.php');

$hr_pac_result=array_intersect($php_file_array,$php_blacklist_array);

$hr_whitelist_result=array_intersect($php_file_array,$php_whitelist_array);

if(count($hr_pac_result) > 0){
	if(empty($hr_whitelist_result)){	
        $fp = fopen('/var/log/spamavoid/php_execution_block.log', 'a');
        fwrite($fp, $php_file_path."\n");
        fclose($fp);
        exit;
	}
}
?>