(CVE-2023-4223) Chamilo LMS Document Ajax File Upload Functionality Remote Code Execution
The document upload endpoint in Chamilo LMS allowed files with dangerous types to be uploaded without restriction. An authenticated 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 or restrict the file type or extension before saving the file to a web-accessible location.
Impact
An authenticated attacker could achieve remote code execution on the server, with high confidentiality and integrity impact.
What the attacker needed
An account on the Chamilo LMS instance
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.
A file upload feature accepted files it should not have, such as a script that the web server can run. By uploading such a file, an attacker with a normal account could make the server execute their code.
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.