Re:Top WordPress sites vulnerable 6 weeks after caching plug...
by gbrindisi on Thursday June 13, 2013 @02:13PM
(#5875613)
> WPScan
We are also working hard to keep an updated internal database of all vulnerable plugins and themes, so update it often ;)
Re:Top WordPress sites vulnerable 6 weeks after caching plug...
by jseliger on Thursday June 13, 2013 @12:47PM
(#5875034)
How do you know WP-Scan itself isn't a vulnerable extension?
Re:Top WordPress sites vulnerable 6 weeks after caching plug...
by druiid on Thursday June 13, 2013 @12:51PM
(#5875070)
Wait, 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).
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/
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
Any questions?