Security
Headlines
HeadlinesLatestCVEs

Headline

GHSA-jpgw-2r9m-8qfw: Kiwi TCMS's misconfigured HTTP headers allow stored XSS execution with Firefox

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 tree_view_html() function

References

Disclosed by M Nadeem Qazi and Mahshooq Zubair.

ghsa
#xss#git#nginx#firefox

Package

pip kiwitcms (pip)

Affected versions

< 12.5

Patched versions

12.5

Description

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 tree_view_html() function

References

Disclosed by M Nadeem Qazi and
Mahshooq Zubair.

References

  • GHSA-jpgw-2r9m-8qfw
  • kiwitcms/Kiwi@195ea53
  • kiwitcms/Kiwi@ffb0045
  • https://huntr.dev/bounties/511489dd-ba38-4806-9029-b28ab2830aa8/
  • https://huntr.dev/bounties/c6eeb346-fa99-4d41-bc40-b68f8d689223/
  • https://kiwitcms.org/blog/kiwi-tcms-team/2023/07/04/kiwi-tcms-125/

atodorov published to kiwitcms/Kiwi

Jul 4, 2023

Published to the GitHub Advisory Database

Jul 5, 2023

Reviewed

Jul 5, 2023

Last updated

Jul 5, 2023

Related news

CVE-2023-36809: Sanitize test plan name in tree_view_html() · kiwitcms/Kiwi@195ea53

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 `tree_view_html()` function.