Kiwi TCMS accepts SVG files uploaded by users which could potentially contain JavaScript code. If SVG images are viewed directly, i.e. not rendered in an HTML page, this JavaScript code could execute.
This vulnerability has been fixed by configuring Kiwi TCMS to serve with the Content-Security-Policy HTTP header which blocks inline JavaScript in all modern browsers.
Configure Content-Security-Policy header, see commit 6617cee0.
You can visit https://digi.ninja/blog/svg_xss.php for more technical details.
Independently disclosed by Antonio Spataro and @1d8.
{ "nvd_published_at": "2023-03-29T19:15:00Z", "github_reviewed_at": "2023-03-30T20:18:29Z", "severity": "HIGH", "github_reviewed": true, "cwe_ids": [ "CWE-79" ] }