WordPress Build Review is a tool to check the basic security settings in a WordPress installation.
- Checks the WordPress version
- Checks the WordPress plugins versions
- Checks WordPress minor updates are enabled
- Checks the WordPress configuration
- Checks the theme configuration
- Identifies the presence of backup files in web folder
- Checks the antivirus
- Checks the file and directory permissions
- Checks HTTPS in admin panel is enabled
WordPress-build-review checks the basic security configuration that a WordPress installation should have.
The idea of this tool is to perform a build review on WordPress installations. This tool should works with the default installed software in a Linux distribution.
This tool was developed and tested in Linux. However, it should also work on other POSIX alike platforms as long as the dependencies (GNU utils) are available. Please let us know if you try running this tool in other platforms, your feedback is appreciated.
Download the tool from the link below and uncompress it.
Make sure you have the tools “curl” and “bc” installed in your system.
$ ./wordpress-build-review.sh /full/path/to/wordpress/root/folder/ ... Starting wordpress-build-review v1.0 at Fri Jan 31 16:19:53 GMT 2014 by David Muñoz ( email@example.com ) This tool checks the basic security configuration that a wordpress installation should have. Use of this script is only permitted on systems which you have been granted legal permission to perform a security assessment of. Apart from this condition the GPL v2 applies. Search the output below for the word '[VV]' for the security issues found. If you don't see it then this script didn't find any problems. Search the output below for the word '[WW]' for problems occurred during script execution. These problems must be checked manually. Finally search the output below for the word '[II]' for correct issues. ...
Here we can see some example issues that the tool is able to identify:
$ ./wordpress-build-review.sh /var/www/wordpress | grep "[VV]" ... [VV]File wp-login.php found. It is recommended to change its name. [VV]File readme.html found. It is recommended to delete it. [VV]The wordpress version installed is out-to-date. Installed version is: 3.8. Last version is: 3.8.1. [VV]Plugin 6scan-protection is out-of-date. Please, update it. Installed version is: 3.0.5. Last version is: 3.0.6. [VV]HTTPS on the LOGIN and ADMIN sections are not enabled in wp-config but SSL may still being enforced by the web server config. [VV]File /var/www/wordpress/test.bak found, consider to remove it. [VV]File /var/www/wordpress/wp-config.php~ found, consider to remove it. [VV]Default or backup files found, please remove them. [VV]The file /var/www/wordpress/wp-config.php~ has 664 permissions, consider to set it to 644 or 640 [VV]Incorrect file permissions, please correct them. [VV]The folder /var/www/wordpress/wp-content/plugins/test has 775 permissions, consider to set it to 755 or 750 [VV]Incorrect folder permissions, please correct them. [VV]Wordpress table prefix is set by default <wp_>. Please, consider to change it. [VV]Wordpress database user is root, please change it. ...