Skip to main content
Vulnerability Database/CVE-2024-37274

CVE-2024-37274: WP Mobile Menu CSRF Vulnerability

CVE-2024-37274 is a Cross-Site Request Forgery flaw in WP Mobile Menu plugin that enables attackers to perform unauthorized actions on behalf of authenticated users. This post explains its impact, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2024-37274 Overview

CVE-2024-37274 is a Cross-Site Request Forgery (CSRF) vulnerability [CWE-352] in the Rui Guerreiro WP Mobile Menu plugin for WordPress. The flaw affects all versions of the mobile-menu plugin up to and including 2.8.4.3. An attacker can trick an authenticated WordPress user into submitting a forged request that performs unintended actions within the plugin. Exploitation requires user interaction, typically by convincing the victim to visit an attacker-controlled page while authenticated to the vulnerable site.

Critical Impact

Successful exploitation allows an unauthenticated attacker to perform state-changing actions on behalf of an authenticated WordPress user, potentially modifying plugin settings without consent.

Affected Products

  • Rui Guerreiro WP Mobile Menu (plugin slug: mobile-menu)
  • All versions from n/a through 2.8.4.3
  • WordPress installations using the vulnerable plugin

Discovery Timeline

  • 2025-01-02 - CVE-2024-37274 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2024-37274

Vulnerability Analysis

The WP Mobile Menu plugin fails to validate the origin of state-changing HTTP requests. The plugin does not enforce WordPress nonce verification or equivalent anti-CSRF tokens on sensitive endpoints. An attacker who crafts a malicious page or email link can cause the victim's browser to issue authenticated requests to the WordPress site. Because the browser automatically attaches session cookies, the request executes with the victim's privileges.

The vulnerability is scoped to integrity impact only. It does not directly disclose data or crash the application, but it allows unauthorized modification of plugin configuration or state.

Root Cause

The root cause is missing or improperly implemented CSRF protection [CWE-352]. WordPress provides wp_nonce_field() and check_admin_referer() primitives for defending against forged requests. The affected plugin code paths do not consistently invoke these checks before processing POST data from administrative or user-facing endpoints.

Attack Vector

The attack vector is network-based and requires user interaction. An attacker hosts a page containing an auto-submitting HTML form or image tag that targets the vulnerable plugin endpoint. When an authenticated WordPress administrator visits the page, the browser forwards the forged request along with valid session cookies. The server processes the request as legitimate and applies the attacker-controlled changes.

No authentication is required of the attacker. The victim must be logged into the WordPress site at the time of exploitation. Refer to the Patchstack CSRF Vulnerability Report for additional technical context.

Detection Methods for CVE-2024-37274

Indicators of Compromise

  • Unexpected modifications to WP Mobile Menu plugin settings in the WordPress database (wp_options table entries related to mobile-menu).
  • HTTP POST requests to plugin administrative endpoints originating from external Referer headers.
  • Administrator session activity correlated with visits to untrusted external sites.

Detection Strategies

  • Inspect web server access logs for POST requests to mobile-menu plugin endpoints that lack a same-origin Referer header.
  • Review WordPress audit logs for configuration changes to the plugin that do not correlate with legitimate administrator actions.
  • Deploy a web application firewall (WAF) rule to flag requests missing valid WordPress nonce parameters on state-changing plugin routes.

Monitoring Recommendations

  • Enable a WordPress activity logging plugin to capture administrator-initiated setting changes with timestamps and source IPs.
  • Monitor outbound administrator browsing behavior for links to untrusted domains during active admin sessions.
  • Alert on bursts of configuration changes to the mobile-menu plugin outside of change-management windows.

How to Mitigate CVE-2024-37274

Immediate Actions Required

  • Update WP Mobile Menu to a version later than 2.8.4.3 as soon as the vendor releases a patched build.
  • Audit current plugin settings for unauthorized modifications and restore known-good configuration where needed.
  • Require administrators to log out of the WordPress admin console when not actively managing the site.

Patch Information

At the time of publication, consult the Patchstack CSRF Vulnerability Report for the latest fixed version. Verify the plugin version in the WordPress admin dashboard under Plugins and apply updates through the official WordPress plugin repository.

Workarounds

  • Deactivate the WP Mobile Menu plugin until a patched version is installed if the mobile menu functionality is not essential.
  • Deploy a WAF with CSRF protection rules that enforce Origin and Referer header validation on WordPress admin endpoints.
  • Restrict access to /wp-admin/ by source IP where feasible to reduce the exposure window for authenticated administrators.
bash
# Example WAF rule concept: block admin POST requests with cross-origin Referer
# ModSecurity-style pseudo-rule
SecRule REQUEST_METHOD "@streq POST" \
  "chain,id:1002024,phase:1,deny,status:403,msg:'Cross-origin POST to wp-admin blocked'"
  SecRule REQUEST_URI "@beginsWith /wp-admin/" \
    "chain"
    SecRule REQUEST_HEADERS:Referer "!@beginsWith https://your-site.example/"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.