How wpscanteam/wpscan works
WPScan is a WordPress security scanner. A user supplies a target and scan options; the CLI controller prepares the scan, and the scanner detects WordPress components and enumerates requested users, plugins, themes, and other exposures. Findings can be checked against the vulnerability service and emitted in several formats. The README documents these capabilities, while the excerpts show CLI setup, enumeration dispatch, and finding aggregation; some internal runtime calls are not shown, so uncertain links are omitted.
Main entry points: core.rb Core controller · enumeration.rb Enumeration controller · interesting_findings.rb Interesting findings · xml_rpc.rb XML-RPC check
Components 29
Scan entry
- Core controller
app/controllers/core.rb - CLI options
app/controllers/core/cli_options.rb
Target discovery
- WordPress target
lib/wpscan/target/platform/wordpress.rb - Version detection
app/finders/wp_version.rb - Theme detection
app/finders/main_theme.rb - Interesting findings
app/finders/interesting_findings.rb - XML-RPC check
app/finders/interesting_findings/xml_rpc.rb
Enumeration
- Enumeration controller
app/controllers/enumeration.rb - Enumeration options
app/controllers/enumeration/cli_options.rb - Enumeration methods
app/controllers/enumeration/enum_methods.rb - Plugin inventory
app/finders/plugins.rb - Theme inventory
app/finders/themes.rb - User enumeration
app/finders/users.rb
Vulnerability data
- Vulnerability controller
app/controllers/vuln_api.rb - Vulnerability database
lib/wpscan/db/vuln_api.rb - Local scan database
lib/wpscan/db/updater.rb
Results
- Finding model
app/models/interesting_finding.rb - WordPress item model
app/models/wp_item.rb - WordPress.org data
app/models/wp_item/wordpress_org_data.rb - Version model
app/models/wp_version.rb - XML-RPC model
app/models/xml_rpc.rb - Theme model
app/models/theme.rb - TimThumb model
app/models/timthumb.rb - CLI output
app/formatters/cli.rb - SARIF output
app/formatters/sarif.rb - JSON output
app/formatters/json.rb - JSONL output
app/formatters/jsonl.rb
Other components
- Scan operator
- WPScan API
Connections 30
- Scan operator → Core controller: starts scan
- Scan operator → CLI options: sets options
- Core controller → CLI options: defines options
app/controllers/core.rb - Core controller → WordPress target: checks target
app/controllers/core.rb - Core controller → Local scan database: updates database
app/controllers/core.rb - Core controller → Version detection: detects version
- Core controller → Theme detection: detects theme
- Core controller → Interesting findings: checks exposures
- Interesting findings → XML-RPC check: aggregates checks
app/finders/interesting_findings.rb - XML-RPC check → XML-RPC model: creates finding
- Core controller → Enumeration controller: runs enumeration
- Enumeration controller → Enumeration options: uses options
app/controllers/enumeration.rb - Enumeration controller → Enumeration methods: dispatches methods
app/controllers/enumeration.rb - Enumeration controller → Plugin inventory: enumerates plugins
- Enumeration controller → Theme inventory: enumerates themes
- Enumeration controller → User enumeration: enumerates users
- Core controller → Vulnerability controller: checks vulnerabilities
- Vulnerability controller → Vulnerability database: requests vulnerability data
- Vulnerability database → WPScan API: queries API
- Core controller → CLI output: emits results
app/app.rb - Core controller → JSON output: emits results
app/app.rb - Core controller → JSONL output: emits results
app/app.rb - Core controller → SARIF output: emits results
app/app.rb - SARIF output → JSON output: transforms JSON
app/formatters/sarif.rb - Core controller → Finding model: reports findings
- Core controller → WordPress item model: reports components
- WordPress item model → WordPress.org data: uses metadata
- Core controller → Version model: reports version
- Core controller → Theme model: reports theme
- Core controller → TimThumb model: reports TimThumb