3 ms·
I had an attached comment with this information but want to break it out as it will likely be useful to people without lots of time dealing with the various way
by druiid 13y ago
I had an attached comment with this information but want to break it out as it will likely be useful to people without lots of time dealing with the various ways Wordpress can/will (mostly will) get attacked.
First: Double-check your folder and file permissions. A lot of plugins like and love very open folder permissions so they can write stuff everywhere. Be very careful with changing permission on core Wordpress stuff! If for instance you give the web-server write permissions to the core, you're going to have a bad time. This is made worse by the fact that many people are used to using the wp-admin 'upgrade' functionality. In my view this is beyond awful. A lot of WP exploits would be made much harder by just not allowing this and manually upgrading the Wordpress core. It's very easy anyway.
Second: Disable the following PHP functions in php.ini on the server hosting Wordpress
disable_functions = exec,passthru,shell_exec,system,proc_open,popen,curl_multi_exec,parse_ini_file,show_source
You can just add that line anywhere in the php.ini, restart apache (or php-fpm if you're using that) and you've suddenly blocked 99% of the Wordpress and greater PHP attacks against your server. Essentially you'll run across some PHP scripts eventually that want one or more of those permissions. If they do, run them on a server separate from Wordpress and also keep the application way up to date (or you'll have a bad time).
Third: Install and keep this handy http://wpscan.org/ http://wpscan.org/
WPScan allows you to do a URL/folder based wordpress scan looking for vulnerable files, wordpress versions and plugins. It is a very good tool to keep handy if you host lots of Wordpress sites.
Oh, one more little thing. The timthumb vuln issue someone mentioned below... keep this handy for newest version http://timthumb.googlecode.com http://timthumb.googlecode.com
Any questions?
- jseliger 13y agoHow do you know WP-Scan itself isn't a vulnerable extension?
- druiid 13y agoWait, what? WPScan is a standalone Ruby script. You run it against a Wordpress site. There's nothing to install on the WP website in question. You can even run it against public WP websites if you wanted to (although I imagine you might get some sternly worded letters from some).
- gbrindisi 13y ago> WPScan We are also working hard to keep an updated internal database of all vulnerable plugins and themes, so update it often ;)