CVE-2023-33977 Stored cross site scripting (XSS) via unrestricted file upload in Kiwi TCMS
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: total
- Technology
- Nginx
Description
Kiwi TCMS is an open source test management system for both manual and automated testing. 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 and Content-Security-Policy definition to prevent cross-site-scripting attacks. The upload validation checks were not 100% robust which left the possibility to circumvent them and upload a potentially dangerous file which allows execution of arbitrary JavaScript in the browser. Additionally we've discovered that Nginx's proxy_pass directive will strip some headers negating protections built into Kiwi TCMS when served behind a reverse proxy. This issue has been addressed in version 12.4. Users are advised to upgrade. Users unable to upgrade who are serving Kiwi TCMS behind a reverse proxy should make sure that additional header values are still passed to the client browser. If they aren't redefining them inside the proxy configuration.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| kiwitcms kiwi tcms | <= 12.3 | after 12.3 | Fixed |
| pypi kiwitcms(PyPI) | < 12.4; <= 12.3; = 6.2.1; = 6.3 +46 more | 12.4 | Fixed |
| kiwitcms Kiwi | = < 12.4 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi kiwitcms(PyPI) | < 12.4 | 12.4 |
| pypi kiwitcms(PyPI) | = 10.0 | No fix listed |
| pypi kiwitcms(PyPI) | = 10.1 | No fix listed |
| pypi kiwitcms(PyPI) | = 10.2 | No fix listed |
| pypi kiwitcms(PyPI) | = 10.3 | No fix listed |
| pypi kiwitcms(PyPI) | = 10.3.999 | No fix listed |
| pypi kiwitcms(PyPI) | = 10.4 | No fix listed |
| pypi kiwitcms(PyPI) | = 10.5 | No fix listed |
| pypi kiwitcms(PyPI) | = 11.0 | No fix listed |
| pypi kiwitcms(PyPI) | = 11.1 | No fix listed |
| pypi kiwitcms(PyPI) | = 11.3 | No fix listed |
| pypi kiwitcms(PyPI) | = 11.4 | No fix listed |
| pypi kiwitcms(PyPI) | = 11.5 | No fix listed |
| pypi kiwitcms(PyPI) | = 11.6 | No fix listed |
| pypi kiwitcms(PyPI) | = 11.7 | No fix listed |
| pypi kiwitcms(PyPI) | = 12.0 | No fix listed |
| pypi kiwitcms(PyPI) | = 12.1 | No fix listed |
| pypi kiwitcms(PyPI) | = 12.2 | No fix listed |
| pypi kiwitcms(PyPI) | = 12.3 | No fix listed |
| pypi kiwitcms(PyPI) | = 6.10 | No fix listed |
| pypi kiwitcms(PyPI) | = 6.11 | No fix listed |
| pypi kiwitcms(PyPI) | = 6.2.1 | No fix listed |
| pypi kiwitcms(PyPI) | = 6.3 | No fix listed |
| pypi kiwitcms(PyPI) | = 6.4 | No fix listed |
| pypi kiwitcms(PyPI) | = 6.5 | No fix listed |
Show 27 more
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi kiwitcms(PyPI) | = 6.5.3 | No fix listed |
| pypi kiwitcms(PyPI) | = 6.6 | No fix listed |
| pypi kiwitcms(PyPI) | = 6.7 | No fix listed |
| pypi kiwitcms(PyPI) | = 6.8 | No fix listed |
| pypi kiwitcms(PyPI) | = 6.9 | No fix listed |
| pypi kiwitcms(PyPI) | = 7.0 | No fix listed |
| pypi kiwitcms(PyPI) | = 7.1 | No fix listed |
| pypi kiwitcms(PyPI) | = 7.2 | No fix listed |
| pypi kiwitcms(PyPI) | = 7.2.1 | No fix listed |
| pypi kiwitcms(PyPI) | = 7.3 | No fix listed |
| pypi kiwitcms(PyPI) | = 8.0 | No fix listed |
| pypi kiwitcms(PyPI) | = 8.1 | No fix listed |
| pypi kiwitcms(PyPI) | = 8.1.99 | No fix listed |
| pypi kiwitcms(PyPI) | = 8.2 | No fix listed |
| pypi kiwitcms(PyPI) | = 8.3 | No fix listed |
| pypi kiwitcms(PyPI) | = 8.4 | No fix listed |
| pypi kiwitcms(PyPI) | = 8.5 | No fix listed |
| pypi kiwitcms(PyPI) | = 8.6 | No fix listed |
| pypi kiwitcms(PyPI) | = 8.6.1 | No fix listed |
| pypi kiwitcms(PyPI) | = 8.7 | No fix listed |
| pypi kiwitcms(PyPI) | = 8.8 | No fix listed |
| pypi kiwitcms(PyPI) | = 8.9 | No fix listed |
| pypi kiwitcms(PyPI) | = 9.0 | No fix listed |
| pypi kiwitcms(PyPI) | = 9.999 | No fix listed |
| pypi kiwitcms(PyPI) | <= 12.3 | No fix listed |
| kiwitcms Kiwi | = < 12.4 | No fix listed |
| kiwitcms kiwi tcms | <= 12.3 | No fix listed |
References
- https://github.com/kiwitcms/Kiwi/security/advisories/GHSA-2fqm-m4r2-fh98 mitigation vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch
- github.com product
- https://github.com/kiwitcms/Kiwi/blob/master/etc/nginx.conf#L66-L68 product
- https://huntr.dev/bounties/6aea9a26-e29a-467b-aa5a-f767f0c2ec96/ exploit issue-tracking patch third-party-advisory
- kiwitcms.org
- github.com vendor-advisory
- pypi.org product
- https://github.com/kiwitcms/Kiwi/commit/d789f4b51025de4f8c747c037d02e1b0da80b034 patch