Skip to content
File upload Disclosed report Beginner CVE-2023-30613

Unrestricted file upload in kiwi TCMS

Kiwi TCMS allowed users to upload any file type as attachments, including executable files and files containing embedded JavaScript. An attacker could upload a malicious file and trick others into clicking it, potentially leading to code execution or stored XSS.

kiwitcms/kiwi

Originally disclosed on huntr

Impact

Kiwi TCMS allows users to upload attachments to test plans, test cases, etc. In earlier versions there is no control over what kinds of files can be uploaded. Thus a malicious actor may upload an .exe file or a file containing embedded JavaScript and trick others into clicking on these files causing vulnerable browsers to execute malicious code on another computer or attempting XSS attacks.

Stored XSS attacks via file uploads have been fixed in earlier versions of Kiwi TCMS, see GHSA-2wcr-87wf-cf9j. This advisory deals with prohibiting users to upload potentially compromised files in the first place.

Patches

Kiwi TCMS v12.2 comes with functionality that allows administrators to configure additional upload validator functions which give them more control over what file types are accepted for upload. By default .exe are denied. Other files containing the <script> tag, regardless of their type are also denied b/c they are a path to XSS attacks.

Workarounds

Upgrade to version 12.2 or later.

References

Originally reported by Ahmed Rabeaa Mosaa.

From the GitHub Advisory Database (GHSA-fwcf-753v-fgcj, CC BY 4.0).

The original report as published on the GitHub Advisory Database. Images and videos are our own copies; raw HTML is shown as text. View it on GitHub Advisory Database.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The application did not restrict the types of files that could be uploaded as attachments.

Impact

An attacker could upload a malicious executable or a file with embedded JavaScript and trick others into clicking it, potentially causing code execution on the victim's computer or XSS attacks.

What the attacker needed

A user account with upload permission; victim clicks the uploaded file

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

Kiwi TCMS is a tool for managing software tests. It let people attach any kind of file to test cases, even dangerous ones like programs or files that run scripts when opened. If someone uploaded a harmful file and another person clicked it, their computer could be infected or their browser could run the attacker's code.

What is File upload?

An upload feature accepts a file that the server or other users' browsers then treat as code or as something trusted.

More from kiwitcms/kiwi

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Unrestricted file upload

The lesson behind this report.

An upload feature accepts a file that the server or other users' browsers then treat as code or as something trusted.