Wordpress php eval attacks

Originally published on eve.gd on 19 August 2015.

Read this post on the web (with images, PDF and citation details)

Sigh. More hacking attempts and seems someone did manage to inject a php eval attack into one of my Wordpress installs.

It’s not a silver bullet magic fix, because the database and filesystems can also be compromised, but for those who’d like a quick shell command to clean this type of attack from the PHP files, at least:

find ./ -name '*.php' -type f -exec sed -i -e '/php eval/ { d; }' {} \;