Security Tool to Scan for Vulnerable Plugins and Themes in WordPress: WPScan
WPScan is a very useful security tool that can found the vulnerable plugins and themes in the WordPress installation. I will describe how to install the Wpscan on Ubuntu distribution.
1. First we will need to install the git program.
sudo apt-get install git
2. Now we have to install some dependencies
sudo apt-get install libcurl4-gnutls-dev libopenssl-ruby libxml2 libxml2-dev libxslt1-dev ruby-dev ruby1.9.3
3. Then we have to clone the wpscan from the git repository
git clone https://github.com/wpscanteam/wpscan.git
4. The installation of wpscan is complete now, but we need the ruby package to run the wpscan.
cd wpscan
sudo gem install bundler && bundle install --without test
Installation on DebianFor installation in Debian follow below steps:
sudo apt-get install git ruby ruby-dev libcurl4-gnutls-dev make
git clone https://github.com/wpscanteam/wpscan.git
cd wpscan
sudo gem install bundler
bundle install --without test --path vendor/bundle
Installation on Fedorasudo yum install gcc ruby-devel libxml2 libxml2-devel libxslt libxslt-devel libcurl-devel patch
git clone https://github.com/wpscanteam/wpscan.git
cd wpscan
sudo gem install bundler && bundle install --without test
Now let's check some options that is usable:
--update - update the databases.
ruby wpscan.rb --update
For a performing a non intrusive test:
ruby wpscan.rb --url www.example.com
Do wordlist brute force on the WordPress site:
ruby wpscan.rb --url www.example.com --wordlist darkc0de.lst --threads 50
Enumerate installed plugins which are vulnerable:
ruby wpscan.rb --url www.example.com --enumerate vp
Enumerate themes which are vulnerable:
ruby wpscan.rb --url www.example.com --enumerate vt
Enumerate users:
ruby wpscan.rb --url www.example.com --enumerate u
To scan for a custom content directory:
ruby wpscan.rb -u www.example.com --wp-content-dir custom-content
The scan results will show detailed information about the vulnerability and site urls to know more details about the vulnerability.