theme-compat/404.php
-
Today I stumbled across a wp.php file in my wordpress root which redirected me to a french site.
Another file userr.php (the double-r at the end are intentional) was also found in the wordpress root folder.A scan with wordfence identified the userr.php file as malicious. I deleted it as well as the wp.php with the redirect in it.
After a very short amount of time the wp.php file was back.
After some searching in my wordpress install I found a 404.php in the wp-includes/theme-compat folder.Currently we are not sure how the 404.php made it to the server but the fact that the 404.php is not included in a default vanilla install of wordpress concerns me a little bit.
Why wasn’t this file detected by the scan? I ran the scan with the highest security settings as well. Only after I activated the false positive option I got an info about the 404.php
The contents of the file is basically a number of evals and base64_encoded strings which generate a file that looks like the userr.php without the comments…
In short:
– Why do i need to activate the false positive check if the wp-includes/theme-compat/404.php file is non existent in a vanilla wordpress installation. Should be easy to just inform a user on default settings that there is a file thats not standard.I’ve uploaded the 404.php, the wp.php as well as the userr.php for your investigation.
https://dl.dropboxusercontent.com/u/7938470/WP-Hack.zipI hope you can help me.
Best,
steve
- The topic ‘theme-compat/404.php’ is closed to new replies.