CVE-2023-32686Medium· 5.4▾ Sunlitkiwitcms vulnerable to stored XSS via unrestricted files upload
▾ Sunlit zone — Low / medium · no exploitation signal
impact 29.7 · likelihood 0.1 · exploitation 0
Need a working PoC? Pro members can cast a request and our team develops one — it lands right here.
Exploit-prediction probability, daily snapshots since Jul 8.
Disclosure to exploitation, from the record and what we observed since indexing it.
Disclosed via OSV
0.4%
Last analysed / modified upstream
Kiwi TCMS allows users to upload attachments to test plans, test cases, etc. Earlier versions of Kiwi TCMS had introduced upload validators in order to prevent potentially dangerous files from being uploaded, see GHSA-fwcf-753v-fgcj and Content-Security-Policy definition to prevent cross-site-scripting attacks, see GHSA-2wcr-87wf-cf9j.
The upload validation checks were not robust enough which left the possibility of an attacker to circumvent them and upload a potentially dangerous file. Exploting this flaw a combination of files could be uploaded so that they work together to circumvent the existing Content-Security-Policy and allow execution of arbitrary JavaScript in the browser.
Content-Type: text/plain when serving uploaded filesExtraHeadersMiddleware in https://github.com/kiwitcms/Kiwi/blob/master/tcms/core/middleware.py#L23 and/orlocation /uploads/ in https://github.com/kiwitcms/Kiwi/blob/master/etc/nginx.confDisclosed by Antonio Spataro and ek1ng. Additional credits to Ahmed Rabeaa Mosa.
kiwitcms < 12.3Upgrade to a patched release:
kiwitcms 12.3Connected by shared product, vendor, weakness, or advisory.
CVE-2023-30613High· 7.7Unrestricted file upload in kiwi TCMS
CVE-2023-27489High· 7.6Kiwi TCMS Stored Cross-site Scripting via SVG file
CVE-2023-36809High· 8.1Kiwi TCMS's misconfigured HTTP headers allow stored XSS execution with Firefox
CVE-2023-30544None· 0.0kiwi TCMS has possibility for user to update email address to unverified one
CVE-2023-25171High· 7.5Denial of service vulnerability on Password reset page
CVE-2023-25156High· 7.5No protection against brute-force attacks on login page