GHSL-2024-182_GHSL-2024-186: Several vulnerabilities (RCE, XSS) in Camaleon CMS - CVE-2024-46986, CVE-2024-46987
Camaleon CMS contained multiple vulnerabilities: an authenticated user could write arbitrary files leading to remote code execution, read arbitrary files via path traversal, upload a malicious SVG for stored XSS, and an administrator could execute Ruby code via a hidden label evaluation feature. These flaws could lead to full server compromise, information disclosure, and account takeover.
Several vulnerabilities were found in Camaleon CMS. Three vulnerabilities (GHSL-2024-182, GHSL-2024-183, GHSL-2024-184) can be exploited by “normal” authenticated users.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
This issue may lead up to Remote Code Execution (RCE) via arbitrary file write.
What the attacker needed
A valid user account; self-registration enabled (for some issues)
The fix
The vulnerabilities were fixed in version 2.8.1.
How it was found
- Log in as a normal user (if self-registration is enabled).
- Send a POST request to /admin/media/upload with a file and a folder parameter set to a path like ../../../config/initializers/.
- The server writes the uploaded file to the specified location.
- Restart the application to execute the uploaded Ruby code.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Camaleon CMS is a content management system. Several security holes let logged-in users do harmful things: one lets them upload a file that runs code on the server, another lets them read any file on the server, and another lets them upload a malicious image that steals login cookies when viewed. These could let an attacker take over the whole site.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.