Plugins and themes
A single plugin can undo the security of a well-run site. In November 2024, CVE-2024-10924 in Really Simple Security (versions 9.0.0 to 9.1.1.1) allowed unauthenticated login as any user, including administrators, when its two-factor feature was enabled; it was fixed in 9.1.2. The pattern repeats across the ecosystem: missing capability checks, missing nonces and unsanitised input in plugin code.
Core surfaces worth checking
- /wp-json/wp/v2/users and ?author=1 redirects can enumerate usernames.
- xmlrpc.php allows many password guesses per request via system.multicall and can be used for pingback-based requests.
- wp-login.php without rate limiting or MFA invites credential stuffing.
- Directory listing in wp-content/uploads and leftover wp-config.php backups expose data and credentials.
Custom code in themes and plugins
- admin-ajax.php actions registered with wp_ajax_nopriv_ are callable without login; check what each does.
- REST routes registered without a permission_callback, or with one that returns true, are public.
- Capability checks using is_admin() (which only means 'in the admin area') instead of current_user_can().
- Shortcodes and form handlers that echo input without escaping lead to stored XSS.
Roles and privilege escalation
WordPress has a role model (subscriber, contributor, author, editor, administrator) that plugins extend. Many plugin vulnerabilities are only exploitable by an authenticated low-privilege user, which matters on sites with open registration, WooCommerce customer accounts or membership plugins. A complete test logs in as a subscriber and tries every AJAX action and REST route available, looking for ones that should require editor or admin capabilities.
Testing WordPress with Pentest-Swarm
Pentest-Swarm tests the live WordPress site from outside, combining CMS-specific tooling with its general web playbooks.
- wpscan is in the arsenal for WordPress fingerprinting, plugin and theme enumeration, and known-vulnerability lookups; nuclei templates add broad CVE coverage.
- Run the owasp-top10 playbook against a staging copy for injection, XSS and access-control checks on custom endpoints.
- Supply an editor or subscriber session with
--cookieto test privilege escalation between WordPress roles. - Use
--safe-modeand a staging clone rather than production when plugins write to the database.
Where it falls short
Black-box testing will not review the PHP of a premium plugin it cannot reach, and known-vulnerability lookups are only as current as their databases. Keep an inventory of plugins with update monitoring, and remove plugins you do not use; an inactive plugin's files can still be reachable.
Questions
Is WordPress core insecure?
Core is actively maintained and auto-updates minor releases by default. Most serious WordPress compromises come from plugins, themes, weak credentials or outdated installs.
Should I disable xmlrpc.php?
If nothing on your site uses it, such as the mobile app or certain integrations, blocking it removes a brute-force and pingback surface.
Can I pentest WordPress on managed hosting?
Usually yes for your own site, but check your host's testing policy and prefer a staging clone so the test does not trip their protections.