WPScan Guide: WordPress Security Scanner
A comprehensive guide to WPScan for WordPress vulnerability detection, theme and plugin enumeration, user enumeration, and security assessment.
Why You Need WPScan
You are auditing a WordPress site and need to find outdated versions, vulnerable plugins, or misconfigurations — WPScan specializes in WordPress security. It checks core versions, themes, plugins, user enumeration, and exposed sensitive files against a continuously updated vulnerability database.
Prerequisites
How WPScan Works
Version Detection: Identifies WordPress version through readme.html and generator tags.
Theme/Plugin Enumeration: Detects installed components and checks for vulnerabilities.
User Enumeration: Discovers registered usernames.
Installation
# Register at wpvulndb.com for API token
sudo apt install wpscan
Basic Usage
wpscan --url http://target.com --api-token YOUR_TOKEN
Enumeration Options
# Enumerate vulnerable plugins
wpscan --url http://target.com --enumerate vp
# Enumerate vulnerable themes
wpscan --url http://target.com --enumerate vt
# Enumerate users
wpscan --url http://target.com --enumerate u
# Enumerate config backups
wpscan --url http://target.com --enumerate cb
Brute Forcing
wpscan --url http://target.com --passwords /usr/share/wordlists/rockyou.txt
wpscan --url http://target.com --usernames admin --passwords passwords.txt
Common Mistakes
Running without API token. Ignoring false positives. Not checking version.
Best Practices
Always use API token. Use --random-user-agent. Scan in phases.
Related Tools
Related Articles
Summary
WPScan is the premier WordPress security scanner. Success requires an API token and appropriate enumeration options.