Skip to content

Latest commit

 

History

History
16 lines (8 loc) · 703 Bytes

svg_xss.md

File metadata and controls

16 lines (8 loc) · 703 Bytes

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.