Description
main/inc/ajax/record_audio_rtc.ajax.php in Chamilo LMS 1.11.36 concatenates the user-controlled audio_dir parameter with the course document root and calls mkdir(..., true) with no path normalization, allowing any authenticated course user to create arbitrary directories (writable by the web server) outside the intended course storage area.
Impact
- Vulnerability class: Path Traversal / Arbitrary Directory Creation.
- Required privileges: authenticated course user (student).
- Affected version: Chamilo LMS 1.11.36.
- Consequence: Creation of attacker-chosen directories writable by the web server anywhere reachable from the course document base. Useful as a primitive to stage follow-on arbitrary file-write or code-execution exploits and to interfere with filesystem layout.
Author
- Mathieu Farrell
Affected versions
- chamilo/chamilo-lmsPackagist
through 1.11.38