Camaleon CMS < 2.9.1 – Privilege Escalation (Mass Assignment)
Description
This exploit targets Camaleon CMS versions < 2.9.1 and abuses a mass assignment vulnerability
in the password update AJAX endpoint to escalate a low-privileged user to administrator.
Affected Versions
Vulnerability Type
- Mass Assignment
- Privilege Escalation
Requirements
- Valid low-privileged user credentials
- Python 3
- Python modules:
Install dependencies:
pip install requests beautifulsoup4
Usage
python3 exploit.py -t http://target.com -u <username> -p <password>
Arguments
- -t, --target Base target URL
- -u, --username Valid low-privileged username
- -p, --password User password
Exploit Flow
- Retrieve login page and extract CSRF token
- Authenticate with provided credentials
- Access profile edit page
- Extract password update endpoint and CSRF token
- Send forged PATCH request including password[role]=admin
- Verify role escalation
- Output valid session cookies
Successful Exploitation
On success, the script:
- Confirms authentication
- Updates the password
- Escalates the user role to admin
- Prints reusable session cookies
Mitigation
Disclaimer
For educational and authorized security testing only.
Unauthorized use is prohibited.