Skip to content
Permalink
main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time

Stored XSS via SVG file upload (CVE-2022-37161)

Claroline Connect presents a stored xss vulnerability because of the possibility to upload an arbitrary svg file, which is one of the allowed image types. Several upload forms can be used, I've personnally choosed the resource icon upload.

By crafting a svg file which contains some javascript, an attacker can trigger some xss payload.

xss_poc


xss_new_poc

Fix suggest : disallow svg file type, and enhance file upload check.