Skip to main content

CVE-2024-9661: WP All Import Pro CSRF Vulnerability

CVE-2024-9661 is a Cross-Site Request Forgery vulnerability in WP All Import Pro plugin for WordPress that allows attackers to delete imported content. 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-9661 Overview

CVE-2024-9661 is a Cross-Site Request Forgery (CSRF) vulnerability in the WP All Import Pro plugin for WordPress. The flaw affects all versions up to and including 4.9.7. The root cause is missing nonce validation on the delete_and_edit function. An unauthenticated attacker can craft a malicious link that, when clicked by an authenticated site administrator, deletes imported content such as posts, comments, and users. The vulnerability is categorized under [CWE-352] (Cross-Site Request Forgery) and requires user interaction to exploit.

Critical Impact

Successful exploitation lets a remote attacker delete imported posts, comments, users, and other content by tricking an administrator into clicking a crafted link.

Affected Products

  • WP All Import Pro plugin for WordPress
  • All versions up to and including 4.9.7
  • WordPress sites with an authenticated administrator session

Discovery Timeline

  • 2025-02-07 - CVE-2024-9661 published to the National Vulnerability Database (NVD)
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2024-9661

Vulnerability Analysis

The vulnerability resides in the delete_and_edit function within WP All Import Pro. WordPress plugins are expected to validate a per-session nonce token on state-changing requests to confirm the request originated from an authorized user interface. The affected function omits this check entirely.

As a result, the plugin accepts delete and edit requests based solely on the victim's active session cookies. An attacker can host a page containing a forged request that targets the vulnerable endpoint. When an authenticated administrator visits the attacker's page or clicks a crafted link, the browser automatically submits the request with valid session credentials.

The impact is limited to integrity of imported content. The CVSS vector reflects no confidentiality or availability impact on the host system, but imported posts, comments, and user records can be removed without administrator intent.

Root Cause

The plugin's delete_and_edit handler does not call wp_verify_nonce() or an equivalent token-validation routine before performing destructive actions. This violates the WordPress developer guidance that state-changing requests must include a verifiable nonce bound to the user session.

Attack Vector

Exploitation requires three conditions. The attacker crafts a page or email containing a request to the vulnerable endpoint on a target WordPress site. An administrator with an active session on that site interacts with the attacker-controlled content. The browser then submits the request with the administrator's cookies, invoking the delete_and_edit function and removing imported content.

No authentication is required on the attacker's side. The complexity is low and the attack is delivered over the network. Refer to the Wordfence Vulnerability Report for additional technical context.

Detection Methods for CVE-2024-9661

Indicators of Compromise

  • Unexpected deletion of imported posts, comments, or user accounts shortly after an administrator browsing session.
  • HTTP requests to WP All Import Pro endpoints containing delete_and_edit parameters with external Referer headers.
  • WordPress audit log entries showing administrator-attributed deletions that the administrator did not initiate.

Detection Strategies

  • Enable a WordPress audit logging plugin to record all deletions of posts, users, and comments with the originating request metadata.
  • Inspect web server access logs for requests to WP All Import Pro admin endpoints with cross-origin Referer or Origin headers.
  • Correlate deletion events with administrator session activity to detect requests triggered outside the plugin's own interface.

Monitoring Recommendations

  • Monitor for spikes in content deletion events across WordPress sites that run WP All Import Pro.
  • Alert on administrator-initiated POST requests to the plugin that lack a valid _wpnonce or wp_rest nonce parameter.
  • Review browser and email gateway telemetry for links pointing to WordPress admin URLs containing WP All Import Pro parameters.

How to Mitigate CVE-2024-9661

Immediate Actions Required

  • Update WP All Import Pro to a version later than 4.9.7 as soon as the vendor publishes a patched release.
  • Review audit logs and backups to identify any imported content that was deleted without authorization and restore it from backup.
  • Instruct administrators to log out of WordPress when not actively managing the site to reduce the window for CSRF exploitation.

Patch Information

Consult the Wordfence Vulnerability Report and the WP All Import Plugin Overview for the fixed version and release notes. Apply the vendor update across all WordPress installations that run the plugin.

Workarounds

  • Restrict access to the WordPress administrative interface by IP allowlist at the web server or firewall layer.
  • Deploy a web application firewall (WAF) rule that rejects requests to WP All Import Pro endpoints lacking a valid nonce parameter.
  • Enforce the SameSite=Lax or SameSite=Strict attribute on WordPress session cookies to limit cross-site cookie transmission.
  • Require administrators to use a dedicated browser profile for WordPress management, isolating admin sessions from general browsing.
bash
# Example WAF rule concept: block requests to WP All Import Pro admin endpoints
# that do not include a WordPress nonce parameter.
SecRule REQUEST_URI "@contains /wp-admin/admin.php" \
  "chain,phase:2,deny,status:403,id:1009661,msg:'WP All Import CSRF protection'"
  SecRule ARGS:page "@streq pmxi-admin-manage" "chain"
    SecRule &ARGS:_wpnonce "@eq 0"

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.