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

CVE-2024-53765: Mins To Read CSRF/XSS Vulnerability

CVE-2024-53765 is a Cross-Site Request Forgery vulnerability in the Mins To Read WordPress plugin that enables Stored XSS attacks. This article covers the technical details, affected versions up to 1.2.2, and mitigation.

Published:

CVE-2024-53765 Overview

CVE-2024-53765 is a Cross-Site Request Forgery (CSRF) vulnerability [CWE-352] in the Think201 Mins To Read WordPress plugin. The flaw affects all versions of mins-to-read up to and including 1.2.2. Attackers can chain the CSRF flaw to inject stored Cross-Site Scripting (XSS) payloads into the WordPress site. Successful exploitation requires tricking an authenticated administrator into visiting an attacker-controlled page. The injected script then persists in the database and executes in the browser of every visitor who loads the affected content.

Critical Impact

Authenticated administrators visiting a malicious page can be coerced into storing attacker-controlled JavaScript that executes across the WordPress site.

Affected Products

  • Think201 Mins To Read WordPress plugin
  • All versions from n/a through 1.2.2
  • WordPress sites with the mins-to-read plugin active

Discovery Timeline

  • 2024-12-02 - CVE-2024-53765 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2024-53765

Vulnerability Analysis

The vulnerability combines two weaknesses into a single attack chain. The plugin's state-changing endpoints do not validate request origin through anti-CSRF tokens. Those same endpoints also fail to sanitize or encode user-supplied input before persisting it to the WordPress database. An attacker who lures an authenticated administrator to a malicious page can submit a forged request that stores arbitrary JavaScript. The payload executes whenever a user renders the affected plugin output, escalating the impact from a single victim to every site visitor. The Exploit Prediction Scoring System (EPSS) rates the probability of exploitation at 0.149%.

Root Cause

The root cause is the absence of CSRF protection on plugin endpoints handling administrative actions. WordPress provides the wp_nonce_field() and check_admin_referer() APIs to defend against forged requests, but the plugin does not enforce nonce validation on the affected handlers. Compounding this, input destined for stored fields is written without output encoding, enabling the second-stage stored XSS payload [CWE-352].

Attack Vector

Exploitation is network-based and requires user interaction. The attacker hosts a page containing a hidden form or JavaScript that auto-submits a request to the target WordPress site. When an authenticated administrator visits the attacker page, their browser submits the forged request with valid session cookies. The plugin processes the request, persists the malicious payload, and renders it in subsequent page loads. The scope changes because code executes in the security context of other site users.

No public proof-of-concept code has been published. Technical details are available in the Patchstack WordPress Vulnerability Report.

Detection Methods for CVE-2024-53765

Indicators of Compromise

  • Unexpected <script> tags, event handlers, or encoded JavaScript stored within Mins To Read plugin settings or post metadata.
  • HTTP POST requests to plugin administrative endpoints lacking a valid _wpnonce parameter.
  • Referer headers on plugin admin requests pointing to external or untrusted domains.
  • New or modified administrator accounts or unexpected outbound requests from logged-in admin sessions.

Detection Strategies

  • Review WordPress database tables, particularly wp_options and wp_postmeta, for HTML or JavaScript stored in fields owned by the mins-to-read plugin.
  • Inspect web server access logs for cross-origin POST requests to plugin admin URLs without matching nonce parameters.
  • Deploy a Web Application Firewall (WAF) rule that flags requests to WordPress admin endpoints with missing or invalid nonces.

Monitoring Recommendations

  • Enable WordPress audit logging to track plugin setting changes and administrator activity.
  • Monitor Content Security Policy (CSP) violation reports for inline script execution on pages rendering plugin output.
  • Alert on administrator logins followed by immediate state-changing requests originating from external referers.

How to Mitigate CVE-2024-53765

Immediate Actions Required

  • Deactivate the Mins To Read plugin until a patched release is installed, especially on sites with multiple administrators.
  • Audit plugin-controlled content and database entries for previously injected scripts and remove any unauthorized payloads.
  • Force a password reset and session invalidation for all WordPress administrator accounts.

Patch Information

No fixed version is identified in the available references. The advisory lists all versions up to and including 1.2.2 as affected. Site operators should monitor the Patchstack advisory and the official WordPress plugin repository for a vendor-released update.

Workarounds

  • Remove or disable the mins-to-read plugin until a vendor patch is available.
  • Enforce a strict Content Security Policy that disallows inline scripts to limit the impact of stored XSS payloads.
  • Require administrators to use isolated browsers or sessions dedicated to WordPress management, reducing CSRF exposure.
  • Deploy a WordPress-aware WAF with rules that block cross-origin POST requests to wp-admin endpoints lacking valid nonces.
bash
# Disable the vulnerable plugin via WP-CLI
wp plugin deactivate mins-to-read
wp plugin delete mins-to-read

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

Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

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.