Skip to main content

CVE-2024-0972: BuddyPress Members Only Information Disclosure

CVE-2024-0972 is an information disclosure vulnerability in the BuddyPress Members Only WordPress plugin that allows unauthenticated attackers to bypass access controls and view restricted content via the REST API. This article covers technical details, affected versions, security impact, and mitigation strategies.

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

CVE-2024-0972 affects the BuddyPress Members Only plugin for WordPress in all versions up to and including 3.4.9. The plugin fails to enforce access restrictions through the WordPress REST API. Unauthenticated attackers can bypass the plugin's "All Other Sections On Your Site Will be Opened to Guest" feature when it is unset. This allows retrieval of restricted page and post content that should remain visible only to logged-in members. The weakness maps to CWE-284 (Improper Access Control) and CWE-862 (Missing Authorization).

Critical Impact

Unauthenticated attackers can read members-only posts and pages through the WordPress REST API, defeating the plugin's content gating.

Affected Products

  • BuddyPress Members Only plugin for WordPress, all versions through 3.4.9
  • WordPress sites relying on this plugin to restrict content to authenticated members
  • Site configurations where the "All Other Sections On Your Site Will be Opened to Guest" option is unset

Discovery Timeline

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

Technical Details for CVE-2024-0972

Vulnerability Analysis

The BuddyPress Members Only plugin restricts site content to authenticated members by intercepting front-end page requests. The plugin's enforcement logic does not extend to the WordPress REST API endpoints that serve the same posts and pages. An attacker can query endpoints such as /wp-json/wp/v2/posts and /wp-json/wp/v2/pages without authentication and receive content the plugin intends to hide. This is a classic missing authorization defect where only one request path was secured while a parallel path remained open. The impact is limited to confidentiality of restricted content and does not affect integrity or availability.

Root Cause

The root cause is missing authorization checks on REST API routes. The plugin's access control logic executes against standard WordPress page rendering but does not register a rest_authentication_errors or rest_pre_dispatch filter to apply the same gating. See the plugin source at BuddyPress Members Only Code for the enforcement path that omits REST handling.

Attack Vector

Exploitation requires only network access to the target WordPress site. An attacker issues unauthenticated HTTP GET requests to the WordPress REST API routes that enumerate posts and pages. The server returns JSON responses containing titles, excerpts, and body content for items that the plugin would otherwise block from guest browsers. No credentials, user interaction, or elevated privileges are required.

The vulnerability is described in detail in the Wordfence Vulnerability Analysis and the fix is tracked in the BuddyPress Members Only Changeset.

Detection Methods for CVE-2024-0972

Indicators of Compromise

  • Unauthenticated requests to /wp-json/wp/v2/posts, /wp-json/wp/v2/pages, or related REST routes from external IPs
  • HTTP 200 responses from REST endpoints returning content for posts marked members-only
  • Spikes in REST API traffic from clients that do not present a valid X-WP-Nonce or authentication header

Detection Strategies

  • Review web server and WordPress access logs for anonymous GET requests to /wp-json/wp/v2/ routes.
  • Correlate REST API read activity with the published visibility settings of posts and pages.
  • Inventory WordPress installations and flag any running BuddyPress Members Only version 3.4.9 or earlier.

Monitoring Recommendations

  • Enable REST API request logging and alert on sustained unauthenticated enumeration patterns.
  • Monitor outbound bandwidth and response sizes for /wp-json/ endpoints to detect bulk scraping.
  • Track plugin version drift across managed WordPress fleets and alert on vulnerable versions.

How to Mitigate CVE-2024-0972

Immediate Actions Required

  • Update the BuddyPress Members Only plugin to the version that incorporates the referenced changesets, which is any release after 3.4.9.
  • Audit WordPress REST API exposure and confirm that restricted content is no longer returned to unauthenticated callers.
  • Rotate any sensitive data that may have been exposed through members-only posts or pages.

Patch Information

The maintainer addressed the issue in commits tracked by the BuddyPress Members Only Changeset 3122096 and BuddyPress Members Only Changeset 3128839. Install the latest release from the WordPress plugin repository and verify the version in the admin plugins list.

Workarounds

  • Disable the plugin until an upgrade can be applied if restricted content is sensitive.
  • Restrict access to /wp-json/wp/v2/posts and /wp-json/wp/v2/pages at the web server or WAF layer for unauthenticated requests.
  • Set posts and pages that must stay private to WordPress-native private visibility rather than relying solely on the plugin.
bash
# Example nginx rule to block unauthenticated REST reads of posts and pages
location ~ ^/wp-json/wp/v2/(posts|pages) {
    if ($http_x_wp_nonce = "") {
        return 401;
    }
}

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.