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

CVE-2024-12309: Rate My Post WordPress Plugin Auth Bypass

CVE-2024-12309 is an authentication bypass flaw in Rate My Post WordPress plugin allowing unauthenticated voting on unpublished posts. This article covers the technical details, affected versions, security impact, 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-12309 Overview

CVE-2024-12309 affects the Rate My Post – Star Rating Plugin by FeedbackWP for WordPress. The vulnerability stems from an Insecure Direct Object Reference (IDOR) [CWE-639] in the get_post_status() function. All versions up to and including 4.2.4 fail to validate a user-controlled key before processing vote requests. Unauthenticated attackers can submit votes against unpublished scheduled posts over the network. The flaw does not expose confidential data or affect availability, but it compromises the integrity of the rating system.

Critical Impact

Unauthenticated remote attackers can manipulate star ratings on scheduled, unpublished WordPress posts before they go live, undermining content integrity on affected sites.

Affected Products

  • Rate My Post – Star Rating Plugin by FeedbackWP for WordPress (versions ≤ 4.2.4)
  • WordPress sites running the vulnerable rate-my-post plugin
  • Any site using the get_post_status() function from the plugin without the applied patch

Discovery Timeline

  • 2024-12-13 - CVE-2024-12309 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2024-12309

Vulnerability Analysis

The plugin exposes a public AJAX endpoint that accepts rating submissions. The get_post_status() function trusts a post identifier supplied by the client without checking whether the referenced post is in a state that should accept votes. Scheduled posts, which WordPress stores with the future status, are not yet visible to site visitors. Despite this, the plugin processes votes for them when the attacker supplies the matching post ID. This logic gap allows unauthenticated users to inflate or deflate ratings on content before publication.

Root Cause

The root cause is missing authorization logic on a user-controlled parameter. The plugin treats the submitted post ID as sufficient proof that the vote is legitimate. It does not verify that the post status is publish before incrementing rating counters. This is a classic IDOR pattern [CWE-639] where object access is granted purely on reference knowledge rather than permission checks.

Attack Vector

Exploitation requires only network access to the WordPress site. The attacker sends a crafted POST request to the plugin's rating AJAX endpoint, supplying the ID of a scheduled or otherwise non-public post. Because no authentication or capability check gates the operation, the vote is accepted and persisted. Attackers can script this request to repeatedly manipulate ratings on pre-release content. See the Wordfence Vulnerability Analysis and the upstream fix in the WordPress plugin changeset for technical details.

Detect Identity Attacks the Moment Authentication Fails

Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.

Stop Identity Attacks

Detection Methods for CVE-2024-12309

Indicators of Compromise

  • Rating counts on posts that have not yet reached their scheduled publication date
  • Repeated POST requests to the rate-my-post AJAX action from a small set of IP addresses
  • Vote records in the plugin's database tables referencing posts with the future or draft status

Detection Strategies

  • Review WordPress access logs for anomalous requests targeting the plugin's AJAX endpoints
  • Query the plugin's rating storage for entries tied to posts whose post_status is not publish
  • Monitor for unauthenticated traffic patterns that iterate across sequential post IDs

Monitoring Recommendations

  • Enable web application firewall logging for all admin-ajax.php traffic that invokes the plugin's actions
  • Alert on bursts of vote submissions originating from a single source IP or user agent
  • Audit scheduled post rating totals during editorial review before publication

How to Mitigate CVE-2024-12309

Immediate Actions Required

  • Upgrade the Rate My Post – Star Rating Plugin to a version newer than 4.2.4
  • Audit existing rating data for anomalies tied to posts that were not yet public when votes were recorded
  • Restrict access to admin-ajax.php from untrusted sources where feasible using a web application firewall

Patch Information

The vendor addressed the issue in the plugin repository. The fix is included in the commit referenced by the WordPress plugin changeset 3206801, which adds a status check inside get_post_status() so that only published posts accept rating submissions.

Workarounds

  • Deactivate the Rate My Post plugin until the patched version can be deployed
  • Deploy a web application firewall rule that blocks vote submissions referencing non-published post IDs
  • Reset rating totals for any scheduled posts whose counters appear tampered with prior to the upgrade
bash
# Update the Rate My Post plugin via WP-CLI
wp plugin update rate-my-post
wp plugin get rate-my-post --field=version

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.