CVE-2023-4220
Chamilo vulnerability analysis and mitigation

Overview

CVE-2023-4220 affects Chamilo LMS versions up to and including v1.11.24. The vulnerability exists in the big file upload functionality located at /main/inc/lib/javascript/bigupload/inc/bigUpload.php, which allows unauthenticated attackers to perform stored cross-site scripting attacks and obtain remote code execution through web shell uploads (STAR Labs, NVD).

Technical details

The vulnerability stems from improper file upload validation in the postUnsupported() method. The code accepts user-supplied filenames without sanitization and moves uploaded files to an accessible directory within the web root. The CVSS v3.1 base score is 8.1 (High) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H. The vulnerability is classified under CWE-434 (Unrestricted Upload of File with Dangerous Type) (STAR Labs).

Impact

Successful exploitation allows attackers to achieve unauthenticated remote code execution with www-data privileges and perform stored cross-site scripting attacks. The vulnerability affects confidentiality, integrity, and availability of the system, all rated as High in the CVSS scoring (STAR Labs, AttackerKB).

Mitigation and workarounds

The vulnerability was patched in version 1.11.26. The fix includes proper sanitization of user-supplied filenames using disabledangerousfile() and apireplacedangerous_char() functions. Additional recommended mitigations include adding .htaccess rules to disallow direct access to the /files directory and prevent MIME sniffing (STAR Labs).

Additional resources


SourceThis report was generated using AI

Related Chamilo vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2024-30616HIGH8.8
  • ChamiloChamilo
  • cpe:2.3:a:chamilo:chamilo_lms
NoNoNov 04, 2024
CVE-2024-30619HIGH7.5
  • ChamiloChamilo
  • cpe:2.3:a:chamilo:chamilo_lms
NoNoNov 04, 2024
CVE-2024-30618MEDIUM6.1
  • ChamiloChamilo
  • cpe:2.3:a:chamilo:chamilo_lms
NoNoNov 04, 2024
CVE-2024-51142MEDIUM5.4
  • ChamiloChamilo
  • cpe:2.3:a:chamilo:chamilo_lms
NoNoNov 15, 2024
CVE-2024-30617MEDIUM5.4
  • ChamiloChamilo
  • cpe:2.3:a:chamilo:chamilo_lms
NoNoNov 04, 2024

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management