(CVE-2023-4225) Chamilo LMS Exercise Ajax File Upload Functionality Remote Code Execution
An unrestricted file upload in the exercise AJAX endpoint allowed an authenticated user to upload a file with a dangerous type. An attacker could upload a web shell and execute code on the server.
starlabs.sg
Published on starlabs.sg
Chamilo is an open-source PHP-based Learning Management System (LMS) that facilitates online education and training. It offers features such as course creation, content management, assessments, collaboration and delivering educational resources.
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 write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the upload handler did not validate the file type or extension before saving the file to a web-accessible location.
Impact
An authenticated attacker could upload a web shell and execute code on the server, leading to full compromise.
What the attacker needed
Authenticated user account
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 write-up has not been written yet. The Original tab links to the source.
The learning platform let a logged-in user upload a file, but it did not check what kind of file it was. A user could upload a script that the server then runs, giving the attacker control of the server.
What is File upload?
An upload feature accepts a file that the server or other users' browsers then treat as code or as something trusted.