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

CVE-2024-10045: Transients Manager CSRF Vulnerability

CVE-2024-10045 is a Cross-Site Request Forgery vulnerability in Transients Manager for WordPress that lets attackers delete transients through forged requests. This article covers technical details, affected versions, and mitigation.

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-10045 Overview

The Transients Manager plugin for WordPress contains a Cross-Site Request Forgery (CSRF) vulnerability affecting all versions up to and including 2.0.6. The flaw stems from missing or incorrect nonce validation in the process_actions function. Unauthenticated attackers can delete transients on a target site by tricking an authenticated administrator into clicking a crafted link. The vulnerability is tracked as CWE-352: Cross-Site Request Forgery and affects WordPress sites using the wpbeginner/transients_manager plugin.

Critical Impact

Successful exploitation allows attackers to delete WordPress transients, potentially disrupting cached data and plugin functionality that depends on transient storage.

Affected Products

  • WPBeginner Transients Manager plugin for WordPress
  • All versions up to and including 2.0.6
  • WordPress sites with an authenticated administrator session

Discovery Timeline

  • 2024-10-23 - CVE-2024-10045 published to the National Vulnerability Database
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2024-10045

Vulnerability Analysis

The vulnerability resides in the process_actions function of TransientsManager.php. The function processes state-changing actions against WordPress transients without verifying a valid WordPress nonce token. WordPress nonces exist specifically to bind requests to an authenticated user's session and prevent forged cross-origin submissions.

Because the nonce check is missing or implemented incorrectly, any HTTP request that reaches the vulnerable endpoint while an administrator's browser carries a valid WordPress authentication cookie is processed as legitimate. The attacker never needs credentials. The attacker only needs an administrator to visit an attacker-controlled page or click a crafted link.

The scope of impact is limited to transient deletion. Transients are time-limited cached values WordPress and its plugins use for performance. Deleting them does not expose data directly but can cause application errors, forced cache rebuilds, and operational disruption for plugins that rely on cached state. User interaction is required for exploitation, which reduces the practical attack surface.

Root Cause

The root cause is absent or improper nonce validation inside process_actions in src/TransientsManager.php. WordPress provides wp_verify_nonce() and check_admin_referer() precisely for this scenario. The vulnerable code path accepts action parameters directly from the request without this check, violating the WordPress Plugin Handbook guidance on CSRF protection.

Attack Vector

The attacker crafts a URL or HTML form that targets the plugin's action handler on the victim site. The attacker then delivers the payload through phishing email, a malicious website, a forum post, or any channel the administrator will interact with. When the authenticated administrator triggers the request, the browser attaches the session cookie and the plugin executes the delete action.

For the specific vulnerable code path, see the WordPress Plugin Source Code and the Wordfence Vulnerability Analysis.

Detection Methods for CVE-2024-10045

Indicators of Compromise

  • Unexpected deletion of WordPress transients tracked in the wp_options table under _transient_ and _transient_timeout_ prefixes.
  • Web server access logs showing requests to the Transients Manager admin page with action parameters but no accompanying _wpnonce parameter.
  • HTTP Referer headers on plugin action requests pointing to external, non-admin origins.

Detection Strategies

  • Inspect installed WordPress plugins and flag transients-manager versions at or below 2.0.6.
  • Review admin-area HTTP requests for state-changing actions that lack a valid _wpnonce query parameter.
  • Correlate transient deletion events with administrator browsing activity to identify requests originating from external referrers.

Monitoring Recommendations

  • Enable WordPress audit logging to capture plugin action requests and administrator session activity.
  • Forward web server and WordPress logs to a centralized SIEM for correlation with user agent and referrer anomalies.
  • Alert on repeated transient deletion events that occur outside normal administrative workflows.

How to Mitigate CVE-2024-10045

Immediate Actions Required

  • Update the Transients Manager plugin to a version newer than 2.0.6 that includes the nonce validation fix.
  • If no fixed version is available in your environment, deactivate and remove the plugin until an update is confirmed.
  • Instruct administrators to log out of WordPress sessions before browsing untrusted sites or clicking unsolicited links.

Patch Information

The maintainer committed the nonce validation fix in the plugin repository. Review the WordPress Plugin Changeset for the corrected process_actions implementation and apply the latest plugin release through the WordPress admin updates screen.

Workarounds

  • Restrict access to the WordPress admin interface by IP allowlist at the web server or WAF layer.
  • Deploy a web application firewall rule that blocks POST and GET requests to the plugin's action endpoints when _wpnonce is absent.
  • Enforce SameSite=Lax or SameSite=Strict on WordPress authentication cookies to limit cross-origin cookie attachment.
bash
# Example: block requests to Transients Manager actions missing a nonce (nginx)
location ~ /wp-admin/ {
    if ($arg_page = "transients-manager") {
        if ($arg__wpnonce = "") { return 403; }
    }
}

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.