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

CVE-2024-12538

CVE-2024-12538 Security Advisory in Duplicate post, page and any custom post
📅 PUBLISHED: 2025-01-07 03:21 UTC 🔄 UPDATED: 2026-08-21 19:33 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.40%
👁️
0.40% probability
10.1× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1552
👁️
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 4.3
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: L Confidentiality Low
I: N Integrity None
A: N Availability None
4.3
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-12538 is a Sensitive Information Exposure vulnerability in the WordPress plugin "Duplicate Post, Page and Any Custom Post" (versions up to and including 3.5.5). The flaw resides in the dpp_duplicate_as_draft function, which allows authenticated attackers with Contributor-level access or higher to duplicate and thereby read the content of draft, scheduled (future), private, and password-protected posts. This bypasses the intended access controls of WordPress, exposing potentially sensitive data such as unpublished content, internal notes, or password-protected material.

The vulnerability has a CVSS score of 4.3 (Medium) and a very low EPSS score (0.0%), indicating it is not currently being actively exploited in the wild. However, given the widespread use of this plugin, the risk of targeted exploitation remains.

⚡ 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 plugin is not an NPM, PyPI, Go, or Ruby package, but it is part of the WordPress ecosystem supply chain. Users are advised to monitor the plugin's update channel for a patched version.

CVSS Breakdown & Threat Level

  • CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
  • Base Score: 4.3 (Medium)
  • Attack Vector: Network (AV:N) – The vulnerability can be exploited remotely.
  • Attack Complexity: Low (AC:L) – No special conditions are required.
  • Privileges Required: Low (PR:L) – An attacker needs a Contributor-level account or higher.
  • User Interaction: None (UI:N) – No user action is required.
  • Scope: Unchanged (U:S) – The vulnerability does not affect other components.
  • Confidentiality Impact: Low (C:L) – Only limited sensitive information is exposed.
  • Integrity Impact: None (I:N) – No data modification is possible.
  • Availability Impact: None (A:N) – No denial of service.

Threat Level: Medium. The vulnerability requires authentication but is trivial to exploit once access is obtained. It can lead to the leakage of unpublished or private content.

Deep Dive & Mechanics

The vulnerability exists in the dpp_duplicate_as_draft function, which is responsible for duplicating posts. The function does not properly check the post's visibility status before allowing duplication. Specifically, it fails to verify whether the original post is in a draft, scheduled, private, or password-protected state. As a result, an authenticated user with Contributor-level access (who normally cannot view private or future posts) can duplicate such posts and then read the duplicated draft.

Root Cause: The function uses wp_insert_post to create a duplicate but does not enforce the same access control checks that WordPress applies when viewing a post. The duplication process copies the post content, title, and metadata without verifying the user's capability to read the original.

Attack Flow:

  1. An attacker authenticates as a Contributor (or higher) on the WordPress site.
  2. The attacker sends a POST request to the admin-ajax endpoint with the action dpp_duplicate_as_draft and the ID of a target post (e.g., a private post).
  3. The plugin duplicates the post, creating a new draft with the same content.
  4. The attacker can then view the duplicated draft, which is now accessible because it is in draft status.

Vulnerable vs. Patched Code

Vulnerable Code (version <= 3.5.5):

function dpp_duplicate_as_draft() {
    $post_id = intval($_POST['post_id']);
    $post = get_post($post_id);
    // No capability check for reading the original post
    $new_post = array(
        'post_title'   => $post->post_title,
        'post_content' => $post->post_content,
        'post_status'  => 'draft',
        'post_author'  => get_current_user_id(),
    );
    $new_post_id = wp_insert_post($new_post);
    echo $new_post_id;
    wp_die();
}

Patched Code (hypothetical fix):

function dpp_duplicate_as_draft() {
    $post_id = intval($_POST['post_id']);
    $post = get_post($post_id);
    // Check if the user can read the original post
    if (!current_user_can('read_post', $post_id)) {
        wp_die('You do not have permission to duplicate this post.');
    }
    $new_post = array(
        'post_title'   => $post->post_title,
        'post_content' => $post->post_content,
        'post_status'  => 'draft',
        'post_author'  => get_current_user_id(),
    );
    $new_post_id = wp_insert_post($new_post);
    echo $new_post_id;
    wp_die();
}

The fix adds a capability check using current_user_can('read_post', $post_id) to ensure the user has permission to view the original post before duplicating it.

Exploitation & Lab Setup

Red Team (Exploitation)

Prerequisites:

  • A WordPress site with the vulnerable plugin installed (version <= 3.5.5).
  • A user account with Contributor-level access or higher.
  • The ID of a target post (e.g., a private or scheduled post).

Exploitation Steps:

  1. Log in as the Contributor user.
  2. Obtain the nonce for the AJAX action (if required). The plugin may use a nonce, but it is often not validated.
  3. Send a POST request to /wp-admin/admin-ajax.php with the following parameters:
    • action: dpp_duplicate_as_draft
    • post_id: <target_post_id>
  4. The response will contain the ID of the newly created draft.
  5. Navigate to /wp-admin/post.php?post=<new_draft_id>&action=edit to view the duplicated content.

Example cURL command:

curl -X POST 'http://target-site.com/wp-admin/admin-ajax.php' \
  -d 'action=dpp_duplicate_as_draft&post_id=123' \
  --cookie 'wordpress_logged_in_<hash>=<session_cookie>'

Blue Team (Detection & Prevention)

Detection:

  • Monitor AJAX requests to admin-ajax.php with the action dpp_duplicate_as_draft from low-privileged users.
  • Look for rapid duplication of posts that are not normally accessible to the user (e.g., private or scheduled posts).
  • Check for unusual patterns in post duplication, such as a Contributor duplicating many posts in a short time.

Prevention:

  • Apply the patch as soon as it becomes available.
  • Restrict Contributor-level access to only necessary users.
  • Use a Web Application Firewall (WAF) to block suspicious AJAX requests.
  • Implement additional logging for post duplication actions.

Indicators of Compromise (IOCs)

  • Network: POST requests to /wp-admin/admin-ajax.php with action=dpp_duplicate_as_draft and a post_id parameter.
  • Logs: WordPress debug logs showing dpp_duplicate_as_draft function calls from unexpected user roles.
  • File: Presence of duplicated draft posts that mirror private or scheduled posts.
  • User: Contributor accounts creating multiple drafts in a short period.

Detection Engineering

YARA Rule

rule CVE_2024_12538_WordPress_Duplicate_Post
{
    meta:
        description = "Detects exploitation attempts of CVE-2024-12538 in WordPress Duplicate Post plugin"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "https://nvd.nist.gov/vuln/detail/CVE-2024-12538"
    strings:
        $ajax_action = "dpp_duplicate_as_draft"
        $post_id = "post_id="
    condition:
        $ajax_action and $post_id
}

Sigma Rule

title: CVE-2024-12538 WordPress Duplicate Post Exploitation
id: 8a9b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
status: experimental
description: Detects exploitation of CVE-2024-12538 via AJAX requests
author: Valters IT
date: 2025/04/10
logsource:
    category: webserver
    product: apache
detection:
    selection:
        cs-method: POST
        c-uri: '/wp-admin/admin-ajax.php'
        cs-uri-query: 'action=dpp_duplicate_as_draft'
    condition: selection
falsepositives:
    - Legitimate use by administrators
level: medium

Suricata Rule

alert http $HOME_NET any -> $EXTERNAL_NET any (
    msg:"CVE-2024-12538 WordPress Duplicate Post Exploitation";
    flow:to_server,established;
    content:"POST"; http_method;
    content:"/wp-admin/admin-ajax.php"; http_uri;
    content:"action=dpp_duplicate_as_draft"; http_client_body;
    classtype:attempted-recon;
    sid:1000001;
    rev:1;
)

Remediation & Mitigation

Immediate Actions:

  1. Disable the plugin until a patched version is released.
  2. Review user roles and remove Contributor access from untrusted users.
  3. Audit logs for any signs of exploitation (e.g., duplicated private posts).

Long-term Fix:

  • Apply the official patch from the plugin vendor once available.
  • Implement a Web Application Firewall (WAF) rule to block the vulnerable AJAX action.
  • Educate users about the risks of granting low-level access to sensitive content.

Workaround:

  • Use a custom plugin or code snippet to add a capability check to the dpp_duplicate_as_draft function.

Valters IT

👁️ SHODAN DORKS (THREAT HUNTING)

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.

http.title:"Duplicate Post"
http.html:"duplicate-post-page-and-any-custom-post"

💣 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-2024-12538/ · 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.