
Path Traversal vulnerability
This repository contains a Python-based Proof of Concept (PoC) for CVE-2024-46987. This vulnerability is a Path Traversal flaw found in file download modules of certain CMS environments (notably Camaleon CMS Version 2.9.0)
The script automates the retrieval of sensitive system files (like /etc/passwd or SSH private keys) by bypassing standard path normalization.
The vulnerability exists because the application accepts a file parameter and appends it to a directory string without sufficient sanitization.
This PoC uses the requests.Session object and Prepared Requests to ensure that traversal sequences (../../) are sent "as-is" to the server. This prevents the Python library from locally resolving the path, which is a common hurdle when automating directory traversal exploits.
This is a post-authentication vulnerability. You must have:
http://url/admin/login)./admin path and copy the following from the Cookie header:
auth_token_sessionClone the repository and update the COOKIES dictionary in exploit.py:
COOKIES = {
'auth_token': 'YOUR_TOKEN_HERE',
'session': 'YOUR_SESSION_HERE'
}