ZeroHour

CVE-2026-76009

niche

Authentication Bypass in Next-Cart Store to WooCommerce Migration WordPress Plugin

CVSS 3.1
8.1 high
EPSS
<1%p42
Published
()
Modified
AI analysis

The Next-Cart Store to WooCommerce Migration plugin for WordPress, in all versions up to and including 3.9.8, allows unauthenticated attackers to bypass authentication on its /wp-json/next_cart/v1/migration REST endpoint because the route has no permission requirement and the handler's token check falls back to the hardcoded value __token__ when the nextcart_token option has never been written to the database. This fallback condition occurs when the plugin is activated via WP-CLI, multisite network activation, or programmatically without a subsequent authenticated visit to wp-admin, since real token generation is deferred to admin_init; sites activated through wp-admin generate a real token and are not exposed. An unauthenticated attacker who supplies the literal string __token__ as the token reaches privileged handlers that pass attacker-controlled SQL directly to $wpdb->query() and $wpdb->get_results() and pass attacker-controlled paths to unlink(). Through these handlers an attacker can execute arbitrary SQL, including creating a new administrator account, and delete arbitrary files, enabling full site takeover. No public proof-of-concept or in-the-wild exploitation is currently known, and the issue is not on the CISA KEV catalog.

What to do: Sites running the plugin should update to a patched release newer than 3.9.8 as soon as the vendor ships one; until then, populate the nextcart_token option by visiting wp-admin once while authenticated after activation, or temporarily deactivate the plugin, since the hardcoded __token__ fallback is the core risk. Because exploitation enables arbitrary SQL execution and file deletion, also check affected sites for unexpected administrator accounts and missing or modified files.

Affected
Next-Cart Store to WooCommerce Migration plugin (WordPress)all versions up to and including 3.9.8
Estimated exposure
nichelikely no more than a few thousand active WordPress sites at any given time (exact install count not provided in source data) — No active-install count was provided; the Next-Cart migration plugin is a niche, typically short-lived migration utility, and only sites activated via WP-CLI, multisite network, or programmatic activation without a later authenticated…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

The Next-Cart Store to WooCommerce Migration plugin for WordPress is vulnerable to Authentication Bypass in all versions up to, and including, 3.9.8 via the `NCWM_Kitconnect::run()` function. This is due to the plugin registering the `/wp-json/next_cart/v1/migration` REST route with `permission_callback` set to `__return_true` and relying on a hardcoded fallback value of `__token__` in `get_option('nextcart_token', '__token__')` when the `nextcart_token` option has not yet been written to the database. This makes it possible for unauthenticated attackers to bypass authentication to the migration endpoint by supplying the literal string `__token__` as the token, gaining access to privileged handlers that pass attacker-controlled SQL directly to `$wpdb->query()` and `$wpdb->get_results()` — enabling arbitrary SQL execution including administrator account creation — and pass an attacker-controlled path to `unlink()`, enabling arbitrary file deletion and full site takeover. The hardcoded fallback is reachable whenever the `nextcart_token` option has not yet been populated, which occurs after WP-CLI, network, or programmatic plugin activation without a subsequent authenticated `wp-admin` visit, as token generation is deferred to `admin_init` via `register_settings()`.

Ecosystems
WordPress, E-commerce
Weakness
CWE-287
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

In the news

No ingested article mentions this CVE yet.