CVE-2023-36809: Kiwi TCMS's misconfigured HTTP headers allow stored XSS execution with Firefox

Published Jul 5, 2023
·
Updated

Impact

Kiwi TCMS allows users to upload attachments to test plans, test cases, etc. Earlier versions of Kiwi TCMS had introduced changes which were meant to serve all uploaded files as plain text in order to prevent browsers from executing potentially dangerous files when such files are accessed directly!

The previous Nginx configuration was incorrect allowing certain browsers like Firefox to ignore the Content-Type: text/plain header on some occasions thus allowing potentially dangerous scripts to be executed.

Additionally file upload validators and parts of the HTML rendering code have been found to require additional sanitation and improvements.

Patches

- Updated Nginx content type configuration - Improved file upload validation code to prevent more potentially dangerous uploads - Sanitization of test plan names used in the treeviewhtml() function

References

Disclosed by M Nadeem Qazi and Mahshooq Zubair.

Other sources

Kiwi TCMS, an open source test management system allows users to upload attachments to test plans, test cases, etc. Versions of Kiwi TCMS prior to 12.5 had introduced changes which were meant to serve all uploaded files as plain text in order to prevent browsers from executing potentially dangerous files when such files are accessed directly. The previous Nginx configuration was incorrect allowing certain browsers like Firefox to ignore the Content-Type: text/plain header on some occasions thus allowing potentially dangerous scripts to be executed. Additionally, file upload validators and parts of the HTML rendering code had been found to require additional sanitation and improvements. Version 12.5 fixes this vulnerability with updated Nginx content type configuration, improved file upload validation code to prevent more potentially dangerous uploads, and Sanitization of test plan names used in the treeviewhtml() function.

Affected Software

2 affected componentsFixes available
pip/kiwitcms<12.5
12.5
kiwitcms Kiwi TCMS<12.5

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.5
  2. Upgrade

    Upgrade Kiwi TCMS to a version that resolves this vulnerability.

    Fixed in 12.5
  3. Configuration

    Update the Nginx content type configuration as in Kiwi TCMS 12.5 to prevent browsers like Firefox from ignoring `Content-Type: text/plain` and executing potentially dangerous scripts.

    Nginx content type configuration = updated
  4. Configuration

    Apply the improved file upload validation code from Kiwi TCMS 12.5 to add additional sanitation and prevent more potentially dangerous uploads.

    Kiwi TCMS file upload validators file upload validation logic = improved/sanitized
  5. Configuration

    Apply the sanitization of test plan names used in the `tree_view_html()` function from Kiwi TCMS 12.5 to prevent stored XSS.

    Kiwi TCMS HTML rendering (tree_view_html) test plan name sanitization = sanitized

Event History

Jul 5, 2023
CVE Published
via MITRE·09:02 PM
Data Sourced
via MITRE·09:02 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Advisory Published
10:40 PM

Frequently Asked Questions

1

What is the severity of CVE-2023-36809?

CVE-2023-36809 is considered a high severity vulnerability as it may allow the execution of malicious files uploaded by users.

2

How do I fix CVE-2023-36809?

To fix CVE-2023-36809, upgrade Kiwi TCMS to version 12.5 or later where the vulnerability has been addressed.

3

What type of attack can CVE-2023-36809 enable?

CVE-2023-36809 can enable remote code execution attacks if an attacker uploads a malicious file.

4

Which versions of Kiwi TCMS are affected by CVE-2023-36809?

Kiwi TCMS versions prior to 12.5 are affected by CVE-2023-36809.

5

How does CVE-2023-36809 impact user data?

CVE-2023-36809 can allow unauthorized access to user data by executing harmful scripts through uploaded files.

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