Description
Claroline through 15.0.15 contains an unrestricted file upload vulnerability that allows authenticated quiz editors to write PHP files by supplying a crafted image type in Graphic questions. Attackers can set types like image/php so GraphicQuestionSerializer writes base64 data into the public data directory, executing code as the web server or running script in the Claroline origin.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| claroline | Claroline | 0 ≤15.0.15 | — |
References
- https://github.com/claroline/Claroline/blob/15.0.15/src/plugin/exo/Serializer/Item/Type/GraphicQuestionSerializer.php#L97-L111
- https://github.com/claroline/Claroline/blob/15.0.15/src/main/core/Manager/FileManager.php#L151-L193
- https://www.vulncheck.com/advisories/claroline-through-15.0.15-unrestricted-file-upload-via-quiz-graphic-question-images