CVE-2023-33977: Stored cross site scripting (XSS) via unrestricted file upload in Kiwi TCMS

Published Jun 6, 2023
·
Updated

Impact

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 proxypass directive will strip some headers negating protections built into Kiwi TCMS when served behind a reverse proxy.

Patches

- Improved file upload validation code - Updated Nginx reverse proxy configuration for .tenant.kiwitcms.org

Workarounds

If serving Kiwi TCMS behind a reverse proxy make sure that additional header values are still passed to the client browser. If they aren't redefine them inside the proxy configuration. See etc/nginx.conf#L66-L68 and etc/nginx.conf#L87

References

Disclosed by M Nadeem Qazi.

Other sources

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 proxypass 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.

Affected Software

2 affected componentsFixes available
pip/kiwitcms<=12.3
12.4
kiwitcms Kiwi TCMS<=12.3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/kiwitcms to a version that resolves this vulnerability.

    Fixed in 12.4
  2. Upgrade

    Upgrade kiwitcms/Kiwi TCMS to a version that resolves this vulnerability.

    Fixed in 12.4
  3. Configuration

    When serving Kiwi TCMS behind Nginx and using proxy_pass, verify that protections relying on additional headers (e.g., header values set by Kiwi TCMS such as Content-Security-Policy) are not stripped. If they are stripped, redefine/pass the required header values in the Nginx proxy configuration (see etc/nginx.conf#L66-L68 and etc/nginx.conf#L87 referenced in the advisory).

    Nginx reverse proxy configuration for Kiwi TCMS proxy_pass header handling (pass additional header values) = Ensure additional header values are still passed to the client browser (redefine them inside the proxy configuration if proxy_pass strips them).

Event History

Jun 6, 2023
Advisory Published
04:46 PM
CVE Published
via MITRE·06:03 PM
Data Sourced
via MITRE·06:03 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:15 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2023-33977?

CVE-2023-33977 has been classified as a medium severity vulnerability due to its impact on user-uploaded file security.

2

How do I fix CVE-2023-33977?

To fix CVE-2023-33977, upgrade your Kiwi TCMS installation to version 12.4 or later.

3

What software versions are affected by CVE-2023-33977?

CVE-2023-33977 affects Kiwi TCMS versions up to and including 12.3.

4

What type of vulnerability is CVE-2023-33977?

CVE-2023-33977 is a file upload vulnerability that allows potentially dangerous files to be uploaded.

5

Can CVE-2023-33977 lead to a cross-site scripting attack?

Yes, CVE-2023-33977 can potentially allow for cross-site scripting attacks due to improper file handling.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203