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
- 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
Tags
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-89324
- https://github.com/im0xfay/CVE-2026-89324
- https://www.wordfence.com/threat-intel/vulnerabilities/id/40a04176-cec2-4723-a5c6-23ca2ea6ef97?source=cve
- https://themeforest.net/item/basel-responsive-ecommerce-theme/14906749
- https://cwe.mitre.org/data/definitions/287.html
Archive entry
intelseclab/poc-archiveOn this page
Metadata
| Field | Value |
|---|---|
| Date Added | 2026-11-25 |
| Last Updated | 2026-11-11 |
| Author / Researcher | im0xfay (0xfay) / Cyber Alpha Labs — PoC and lab; Wordfence Threat Intelligence — advisory |
| CVE / Advisory | CVE-2026-89324 |
| Category | web |
| Severity | Critical |
| CVSS Score | 9.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) |
| Status | Weaponized |
| Tags | authentication-bypass, unauthenticated, WordPress, WooCommerce, Opauth, social-login, hardcoded-secret, admin-takeover, PHP, CWE-287 |
| Related | N/A |
Affected Target
| Field | Value |
|---|---|
| Software / System | 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) |
| Versions Affected | 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 |
| Language / Platform | PHP 8.x on WordPress (lab: WordPress 6.7.1, php8.3-apache, MySQL 8.0, WooCommerce) |
| Authentication Required | No (unauthenticated callback; the attacker must know an existing account e-mail, e.g. an administrator address) |
| Network Access Required | Yes (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:
| |
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:
GET /?opauth=<base64(json)> HTTP/1.1The 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
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, curlSetup Steps
| |
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
- 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.
- Fingerprint the target —
python3 poc.py --url http://127.0.0.1:8199 --scanreads /wp-content/plugins/basel-post-types/readme.txt (and the woodmart-core copy) and reports the plugin version and the my-account path. - 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.
- 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. - 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.
- 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, useshashphp.phpfor byte-exact signatures),hashphp.php,forge.py,exploit.php,repro.phpand the post-exploitationrce.pyin this folder. The upstream write-up isupstream-README.mdand the full analysis is inanalysis/.
The core forgery, as implemented in hashphp.php:
| |
The request itself:
GET /?opauth=<base64(json(auth,timestamp,signature))> HTTP/1.1
Host: targetExpected 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.txtor/wp-content/plugins/woodmart-core/readme.txt, especially during reconnaissance of plugin versions. - Unauthenticated
GET /?opauth=requests whose base64 payload decodes to JSON containingauth.info.emailset to an existing administrator address, followed by HTTP 200 and a newwordpress_logged_incookie. 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.phpor/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.
| |
SIEM / IDS rule (example):
| |
Remediation
| Action | Detail |
|---|---|
| Patch | Update 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. |
| Workaround | If 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 Hardening | Bind 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.
| |