CVE-2023-47115: Label Studio XSS Vulnerability on Avatar Upload
HumanSignal · label-studio
Affected: HumanSignal label-studio · Exploitation: check available, not yet exploited
Not in CyberSIXT coverage yet: no article names this CVE. This page shows the public record.
Higher than 73% of scored CVEs
DescriptionCVE.org
Label Studio is an a popular open source data labeling tool. Versions prior to 1.9.2 have a cross-site scripting (XSS) vulnerability that could be exploited when an authenticated user uploads a crafted image file for their avatar that gets rendered as a HTML file on the website. Executing arbitrary JavaScript could result in an attacker performing malicious actions on Label Studio users if they visit the crafted avatar image. For an example, an attacker can craft a JavaScript payload that adds a new Django Super Administrator user if a Django administrator visits the image. The file `users/functions.py` lines 18-49 show that the only verification check is that the file is an image by extracting the dimensions from the file. Label Studio serves avatar images using Django's built-in `serve` view, which is not secure for production use according to Django's documentation. The issue with the Django `serve` view is that it determines the `Content-Type` of the response by the file extension in the URL path. Therefore, an attacker can upload an image that contains malicious HTML code and name the file with a `.html` extension to be rendered as a HTML page. The only file extension validation is performed on the client-side, which can be easily bypassed. Version 1.9.2 fixes this issue. Other remediation strategies include validating the file extension on the server side, not in client-side code; removing the use of Django's `serve` view and implement a secure controller for viewing uploaded avatar images; saving file content in the database rather than on the filesystem to mitigate against other file related vulnerabilities; and avoiding trusting user controlled inputs.
Affected products1
From the CVE record. A product or version that is not listed is unknown, not unaffected.
- HumanSignal · label-studio< 1.9.2
On the Atlas
Every published CVE is on the CyberSIXT Atlas, grouped by weakness, vendor and month.
- Exploitation
- Check available, not yet exploited. A public nuclei template can confirm it on a system you are authorised to test.
- CISA KEV
- Not listed
- Public check
- Label Studio - Cross-Site Scripting · nuclei template in projectdiscovery/nuclei-templates
- Weakness
- Cross-site Scripting
- Vendor
- HumanSignal
- Published
- January 2024
CoverageNo articles yet
No CyberSIXT article names CVE-2023-47115 yet, so there is no coverage timeline, action brief or change log for it. Everything on this page comes from the public CVE record, CISA KEV, EPSS and the nuclei template index. Search the archive or see the CVEs in the news.
References
- NVD entrynvd.nist.gov
- CVE recordcve.org
- Weakness CWE-79cwe.mitre.org
- github.com/HumanSignal/label-studio/security/advisories/GHSA-q68github.com
- github.com/HumanSignal/label-studio/commit/a7a71e594f32ec4af8f3fgithub.com
- docs.djangoproject.com/en/4.2/ref/views/#serving-files-in-develodocs.djangoproject.com
- github.com/HumanSignal/label-studio/blob/1.8.2/label_studio/usergithub.com
- github.com/HumanSignal/label-studio/blob/1.8.2/label_studio/usergithub.com