Lucene search

K
githubGitHub Advisory DatabaseGHSA-JPGW-2R9M-8QFW
HistoryJul 05, 2023 - 10:40 p.m.

Kiwi TCMS's misconfigured HTTP headers allow stored XSS execution with Firefox

2023-07-0522:40:59
CWE-79
CWE-434
GitHub Advisory Database
github.com
4
kiwi tcms
http headers
stored xss
firefox
nginx
content type
file upload
validation
html rendering
security vulnerability
improvement

CVSS3

8.1

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

REQUIRED

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

NONE

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N

EPSS

0.002

Percentile

53.0%

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.

Affected configurations

Vulners
Node
kiwitcmsRange<12.5
VendorProductVersionCPE
*kiwitcms*cpe:2.3:a:*:kiwitcms:*:*:*:*:*:*:*:*

CVSS3

8.1

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

REQUIRED

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

NONE

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N

EPSS

0.002

Percentile

53.0%

Related for GHSA-JPGW-2R9M-8QFW