Skip to content
RCE Write-up Intermediate

(CVE-2023-3368) Chamilo LMS Unauthenticated Command Injection

Chamilo LMS contains a command injection flaw in the additional_webservices.php file that can be reached without authentication. An attacker could exploit this to run arbitrary operating system commands 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 author, on starlabs.sg

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 web service passes unsanitised user input into an operating system command, allowing injected commands to execute.

Impact

An unauthenticated attacker could achieve remote code execution on the server, potentially taking full control of the application and its data.

What the attacker needed

None

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.

Command injection is when a program passes user input to the operating system without cleaning it, so an attacker can sneak in extra commands. Here the vulnerable file is a web service that anyone can reach without logging in, meaning an attacker could make the server run their own commands.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.