CVE-2025-12980
Executive Summary
CVE-2025-12980 is a critical vulnerability in the PostX WordPress plugin (versions up to and including 5.0.3), which provides Gutenberg blocks for news, magazines, and blog websites. The vulnerability resides in the /ultp/v2/get_dynamic_content/ REST API endpoint, which lacks a capability check, allowing unauthenticated attackers to retrieve sensitive user metadata, including password hashes. This exposure can lead to credential theft, account takeover, and further compromise of the WordPress site.
The vulnerability has a CVSS score of 7.5 (High) due to the ease of exploitation (network-based, no authentication required) and the high confidentiality impact. No patch is currently available, making this a zero-day threat for all affected versions.
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.
No signup required
WordPress Ecosystem Context
This vulnerability is specific to the PostX plugin for WordPress. It is not related to Apache, Nginx, or any other web server software. The flaw is in the plugin's REST API endpoint, which is a common attack surface in WordPress plugins.
CVSS Breakdown & Threat Level
- CVSS Score: 7.5 (High)
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Attack Vector: Network (AV:N) – Exploitable remotely.
- Attack Complexity: Low (AC:L) – No special conditions required.
- Privileges Required: None (PR:N) – No authentication needed.
- User Interaction: None (UI:N) – No user action required.
- Scope: Unchanged (S:U) – Impact confined to the vulnerable component.
- Confidentiality Impact: High (C:H) – Password hashes and sensitive metadata exposed.
- Integrity Impact: None (I:N) – No data modification.
- Availability Impact: None (A:N) – No denial of service.
Threat Level: High. The lack of authentication and the exposure of password hashes make this a critical risk for any WordPress site using the PostX plugin.
Deep Dive & Mechanics
The vulnerability is a Missing Authorization (CWE-862) in the REST API endpoint /ultp/v2/get_dynamic_content/. This endpoint is intended to retrieve dynamic content for Gutenberg blocks, but it fails to verify that the requesting user has the necessary permissions (e.g., edit_posts or read_private_posts). As a result, any unauthenticated user can send a crafted request to this endpoint and access sensitive data.
The endpoint likely queries the WordPress database for user metadata, including the user_pass field, which contains password hashes (typically MD5 or bcrypt). An attacker can extract these hashes and attempt offline cracking or pass-the-hash attacks.
Attack Flow:
- Attacker identifies a WordPress site running PostX <= 5.0.3.
- Attacker sends a GET request to
/wp-json/ultp/v2/get_dynamic_content/with parameters to retrieve user data. - The endpoint returns a JSON response containing user metadata, including password hashes.
- Attacker downloads the hashes and uses tools like Hashcat or John the Ripper to crack them.
- Once credentials are obtained, attacker can log in as an administrator and fully compromise the site.
Vulnerable vs. Patched Code
Vulnerable Code (<= 5.0.3): The REST API endpoint registration likely lacks a permission callback. Example of vulnerable code:
register_rest_route( 'ultp/v2', '/get_dynamic_content/', array(
'methods' => 'GET',
'callback' => 'ultp_get_dynamic_content_callback',
// Missing 'permission_callback' => '__return_true' or proper check
) );
Patched Code (Hypothetical): A patched version would include a permission callback to restrict access to authenticated users with appropriate capabilities:
register_rest_route( 'ultp/v2', '/get_dynamic_content/', array(
'methods' => 'GET',
'callback' => 'ultp_get_dynamic_content_callback',
'permission_callback' => function() {
return current_user_can( 'edit_posts' );
}
) );
Exploitation & Lab Setup
Red Team (Attacker)
Prerequisites:
- A WordPress site with PostX plugin version <= 5.0.3.
- Network access to the site.
Exploitation Steps:
- Reconnaissance: Identify the target WordPress site and confirm the PostX plugin version (e.g., via
/wp-content/plugins/postx/readme.txt). - Craft Request: Send a GET request to the vulnerable endpoint:
(Note: The exact parameters may vary; adjust based on endpoint behavior.)curl -X GET "https://target.com/wp-json/ultp/v2/get_dynamic_content/?post_type=user&fields=user_pass,user_login,user_email" - Extract Data: The response will contain user metadata, including password hashes.
- Crack Hashes: Use Hashcat to crack the hashes:
hashcat -m 400 -a 0 hashes.txt /usr/share/wordlists/rockyou.txt - Account Takeover: Log in as an administrator using cracked credentials.
Lab Setup:
- Use a local WordPress installation (e.g., via Docker) with PostX plugin installed.
- Simulate the attack using the above curl command.
Blue Team (Defender)
Detection:
- Monitor REST API access logs for unusual requests to
/wp-json/ultp/v2/get_dynamic_content/. - Look for requests from unauthenticated users (no
Authorizationheader or cookie). - Alert on high volume of requests to this endpoint.
Response:
- Immediately disable the PostX plugin if no patch is available.
- Rotate all user passwords, especially for administrators.
- Review user accounts for unauthorized changes.
- Implement a Web Application Firewall (WAF) rule to block requests to the vulnerable endpoint.
Indicators of Compromise (IOCs)
- Network IOCs:
- HTTP requests to
/wp-json/ultp/v2/get_dynamic_content/from unknown IPs. - Unusual GET parameters like
post_type=userorfields=user_pass.
- HTTP requests to
- File IOCs:
- Modified WordPress user tables (e.g.,
wp_users) with new admin accounts.
- Modified WordPress user tables (e.g.,
- Log IOCs:
- REST API logs showing 200 responses to unauthenticated requests for the vulnerable endpoint.
- Hash IOCs:
- Known password hashes (e.g., MD5 or bcrypt) extracted from the site.
Detection Engineering
YARA Rule
rule CVE_2025_12980_PostX_Exploit {
meta:
description = "Detects exploitation attempts for CVE-2025-12980 in PostX plugin"
author = "Valters IT"
date = "2025-04-10"
reference = "https://nvd.nist.gov/vuln/detail/CVE-2025-12980"
strings:
$endpoint = "/ultp/v2/get_dynamic_content/"
$user_pass = "user_pass"
$user_login = "user_login"
condition:
any of ($endpoint) and any of ($user_pass, $user_login)
}
Sigma Rule
title: CVE-2025-12980 PostX REST API Exploitation
id: 12345678-1234-1234-1234-123456789abc
status: experimental
description: Detects unauthenticated access to the PostX plugin's get_dynamic_content endpoint
author: Valters IT
date: 2025-04-10
logsource:
category: webserver
product: apache
service: access
detection:
selection:
cs-method: 'GET'
cs-uri-query|contains: '/wp-json/ultp/v2/get_dynamic_content/'
condition: selection
falsepositives:
- Legitimate admin usage (rare)
level: high
Suricata Rule
alert http any any -> any any (msg:"CVE-2025-12980 PostX REST API Exploitation"; flow:to_server; content:"/wp-json/ultp/v2/get_dynamic_content/"; http_uri; classtype:attempted-recon; sid:1000001; rev:1;)
Remediation & Mitigation
Immediate Actions:
- Disable the PostX plugin until a patch is released.
- Change all user passwords immediately, especially for administrators.
- Review user accounts for any unauthorized modifications.
- Implement a WAF rule to block requests to
/wp-json/ultp/v2/get_dynamic_content/.
Long-term Fix:
- Apply the official patch from the vendor once available.
- Ensure all WordPress plugins are kept up to date.
- Implement regular security audits and penetration testing.
Workaround:
- Add a custom function to your theme's
functions.phpto restrict access to the endpoint:add_filter( 'rest_pre_dispatch', function( $result, $server, $request ) { if ( strpos( $request->get_route(), 'ultp/v2/get_dynamic_content' ) !== false ) { if ( ! current_user_can( 'edit_posts' ) ) { return new WP_Error( 'rest_forbidden', 'Access denied', array( 'status' => 403 ) ); } } return $result; }, 10, 3 );
Valters IT
Securing Digital Frontiers
What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.
💣 PoC CODE AVAILABLE
Exploit code for this CVE is tracked in our database.
Access poc_code via API Pro.