Wordpress Slick Hack
shoemoney
·
·
2 min read
One of our friends site that we help setup on wordpress just got hacked this morning.
It was running wordpress 3.28.
The weird thing is the site gets like 10 visitors a day and has no backlinks.
The hack was one of those fire and forget ones. The hacker came from a Google search, targeted a file that he posted the payload to, then prepended every .php file with a base64 encode php script that looked for referrals from search engines.
It always cloaked so none of the search engine bots would see it.
So in essence to the owner of the website all would appear as normal unless you came from a search engine to the site. And to the search engine the content would look normal also so it would continue its ranks (until discovered).
So just some friendly reminders to mitigate your risk of being hacked:
- Keep up to date (DUH)
- If at all possible do not use Apache as a webserver. Instead use nginx that will not execute code like that.
- If you have to use apache run mod_security that will not allowed payloads like this to be distributed.