WordPress DevKit Pro Unauthenticated Authentication Bypass (CVE-2026-14378)
Published: 2026-11-27 • Researcher: anoxhunterdump-ctrl (GitHub, PoC repository); CVE record published through Wordfence Threat Intel; archived and reviewed 2026-11-27
- Severity
- Critical
- CVE
- CVE-2026-14378 / CWE-287 (Improper Authentication)
- Category
- web
- Affected product
- DevKit Pro plugin for WordPress (dplugins), a site-development helper with a developer user-switching feature
- Affected versions
- All versions up to and including 2.3.0; fixed in 2.3.1
- Disclosed
- 2026-11-27
- Patch status
- Patched
Tags
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-14378
- https://www.wordfence.com/threat-intel/vulnerabilities/id/2ab3986a-69e0-442f-8e79-35b1bc5376d9?source=cve
- https://docs.dplugins.com/devkit/changelog
- https://github.com/anoxhunterdump-ctrl/CVE-2026-14378-DevKit-Pro-Auth-Bypass
- https://cwe.mitre.org/data/definitions/287.html
Archive entry
intelseclab/poc-archiveOn this page
Metadata
| Field | Value |
|---|---|
| Date Added | 2026-11-27 |
| Last Updated | 2026-10-02 (upstream commit bff4bb1, “Add –exploit mode: full chain detect->nonce->bypass->rogue admin (tested live)”; repository last pushed 2026-10-02T05:13:40Z) |
| Author / Researcher | anoxhunterdump-ctrl (GitHub, PoC repository); CVE record published through Wordfence Threat Intel; archived and reviewed 2026-11-27 |
| CVE / Advisory | CVE-2026-14378 / CWE-287 (Improper Authentication) |
| Category | web |
| Severity | Critical |
| CVSS Score | 9.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, NVD per the batch record) |
| Status | Weaponized — upstream documents a live-verified two-request unauthenticated admin session takeover; the archived script performs the same nonce-leak and cookie-granting POST, but was not executed during this review |
| Tags | wordpress, plugin, devkit-pro, authentication-bypass, cwe-287, nonce-leak, cookie, account-takeover, unauthenticated, php |
| Related | N/A |
Affected Target
| Field | Value |
|---|---|
| Software / System | DevKit Pro plugin for WordPress (dplugins), a site-development helper with a developer user-switching feature |
| Versions Affected | All versions up to and including 2.3.0; fixed in 2.3.1 |
| Language / Platform | PHP WordPress plugin; the archived exploit is Python 3 against the HTTP interface |
| Authentication Required | No |
| Network Access Required | Yes — HTTP/HTTPS access to the WordPress front end |
Summary
DevKit Pro, a WordPress plugin that provides a developer user-switching feature, renders a hidden switch-back form to any visitor who presents an original-user cookie, including unauthenticated visitors. The handler that processes the form verifies the capability of the user named in that cookie rather than the capability of the caller, so a cookie pointing at an administrator passes the check. An unauthenticated attacker can therefore harvest a valid nonce from any front-end page and exchange it for a WordPress administrator session cookie. The result is full site takeover without knowing any password.
Vulnerability Details
Root Cause
DevKit Pro stores the administrator’s user ID in a cookie named original_user_id whenever an admin switches into another account. Two independent mistakes turn that into an authentication bypass.
render_switch_back_bar()is hooked towp_footer(). It only testsisset( $_COOKIE['original_user_id'] )and then mints a nonce withwp_create_nonce( 'devkit_revert_switch_' . $user_id ). It never callsis_user_logged_in()orcurrent_user_can(), so an unauthenticated visitor who sets the cookie receives a valid, server-generated nonce and the hidden form that posts toadmin-post.php?action=revert_switch.handle_revert_switch()callsverify_nonce_and_capability( $user_id, $nonce ). That helper first verifies the nonce and then returnsuser_can( $user_id, 'manage_options' ).user_can()asks whether the user named in the cookie is an administrator, not whether the requester is one. The correct check iscurrent_user_can( 'manage_options' ). Because user ID 1 on a default WordPress install is an administrator, the check returns true for an anonymous request.
After the check passes, the handler calls wp_set_current_user( $user_id ) and wp_set_auth_cookie( $user_id ), so the response carries a genuine authenticated WordPress session for the chosen account. The patch in 2.3.1 adds both a is_user_logged_in() && current_user_can( 'manage_options' ) gate to the footer renderer and a requester-side capability check to the handler.
Attack Vector
An unauthenticated attacker sends a GET request to any front-end entry point (/wp-login.php or /) with Cookie: original_user_id=1, parses the _wpnonce value out of the leaked switch-back form, and then POSTs action=revert_switch, the nonce and target_user_id=1 to /wp-admin/admin-post.php. The cookie must be present on both requests because the handler reads it again. No credentials, no session and no victim interaction are required.
Impact
The attacker receives a valid wordpress_logged_in_* cookie for the administrator account and can access /wp-admin/. From there the usual post-exploitation paths apply: creating additional administrator accounts, installing a malicious plugin or editing a theme for PHP code execution, exporting the user table, reading private content, and modifying the site. Because the session is a normal WordPress login, it survives a plugin upgrade and is only invalidated by a password change or session invalidation.
Environment / Lab Setup
OS: Linux with Podman (or Docker), any host able to run WordPress
Target: WordPress (recent) with DevKit Pro 2.3.0 installed and active
Attacker: Python 3 with requests and beautifulsoup4
Tools: curl, Burp Suite (optional), the archived live_test.pySetup Steps
| |
The archived live_test.py hardcodes TARGET = "http://localhost:8080"; change that constant for another lab address. The upstream repository’s targets.txt is a scanner input list and is not needed here.
Proof of Concept
Step-by-Step Reproduction
Confirm the plugin version. Fetch the plugin readme and check the stable tag; 2.3.0 is vulnerable.
Shell script1curl -s http://localhost:8080/wp-content/plugins/devkit-pro/readme.txt | grep -i 'stable tag'Trigger the nonce leak. Request a front-end page with the administrator’s ID in the cookie. The response contains the hidden switch-back form and a fresh nonce.
Shell script1 2curl -s -H 'Cookie: original_user_id=1' http://localhost:8080/wp-login.php \ | grep -A2 'name="_wpnonce"'Submit the revert-switch request. The archived
live_test.pyperforms steps 1 to 3 and prints the leaked nonce, the POST result and any auth cookie.Shell script1python3 live_test.pyVerify administrative access. The script requests
/wp-admin/index.phpwith the session that now carries the administrator cookie and reports whether the dashboard is reachable without a login.
Exploit Code
See
live_test.pyin this folder for the full two-request chain. It stops at proving dashboard access and intentionally does not create an account.
| |
Expected Output
Upstream captured the following against a local lab; the output below is quoted from the upstream README and was not re-produced during this review.
| |
On a patched 2.3.1 install the switch-back form is absent (the footer renderer checks the requester’s session) and the POST handler rejects the request instead of returning a redirect and an auth cookie.
Detection & Indicators of Compromise
GET requests carrying "Cookie: original_user_id=" from clients with no prior
authenticated session, especially to /wp-login.php or /
POST /wp-admin/admin-post.php with a body containing action=revert_switch,
_wpnonce= and target_user_id=
A single client IP that requests a front-end page and then admin-post.php within seconds
New administrator accounts, plugin installs or theme-file edits immediately after such a POST
Unexpected entries in wp_users / wp_usermeta with administrator capabilities
Plugin or theme files with modification times matching the request windowSIEM / IDS Rule (example, from the upstream README):
alert http any any -> $HTTP_SERVERS $HTTP_PORTS (msg:"CVE-2026-14378 DevKit Pro Auth Bypass - Revert Switch Exploit"; flow:to_server,established; http_client_body; content:"action=revert_switch"; content:"_wpnonce="; classtype:web-application-attack; sid:1000954; rev:1;)Blocking unauthenticated POSTs to /wp-admin/admin-post.php with action=revert_switch at the WAF is a useful interim control, but it does not remove the underlying flaw.
Remediation
| Action | Detail |
|---|---|
| Patch | Upgrade DevKit Pro to 2.3.1 or later; that release gates render_switch_back_bar() on the requester’s session and changes the handler to current_user_can( 'manage_options' ). |
| Workaround | Until patched, block POSTs to admin-post.php with action=revert_switch at the WAF/reverse proxy and remove or deactivate the plugin if the user-switching feature is not required. |
| Config Hardening | Audit administrator accounts for unexpected users, force a password reset and invalidate all sessions after any suspected exploitation, remove unused plugins, and restrict plugin installation to trusted administrators. |
References
Notes
Review verdict: ingested as Weaponized. The repository is not README-only and not merely a version checker: it contains a complete two-request authentication bypass that leaks the nonce, posts revert_switch and receives an administrator session cookie, plus an optional --exploit scanner mode that the upstream author says was tested live. The archived file is the minimal non-destructive proof (live_test.py), which stops at confirming /wp-admin/ access.
Omissions and provenance: the upstream repository is a mixed scanner/exploit project. prove_takeover.py and core/probe.py were not copied because their extra stage creates a rogue administrator account, which is a persistence action beyond the vulnerability demonstration; scan.py, core/engine.py, core/target.py, utils/banner.py and the Nuclei template were omitted as scanner/reporting code, and publish_to_github.py was omitted because it is a repository-publishing helper that accepts a GitHub token. The upstream README is copied verbatim as upstream-README.md. LICENSE (MIT, copyright 2026 Security Research) is included. The upstream README’s captured output is a self-reported live test; the exploit was not executed during this review.
Limitations: the bypass assumes the target administrator’s user ID (default 1) and that the vulnerable footer hook is active on the requested page. The archive does not include the upstream --exploit automation or the rogue-admin step, so an operator who wants the full chain must rebuild it from the upstream README. Version detection alone is not proof of exploitability, since the nonce leak must be observed. The affected range and the 2.3.1 fix version are taken from the CVE record and the upstream README rather than re-derived here.
Malware assessment: no C2, evasion, keylogger, miner, stealer or bot code is present in the archived files. The only credential use is the original_user_id cookie and the WordPress session cookie it produces; no third-party credentials are bundled.
| |