CVE-2024-23633
Last modified
CVE-2024-23633 is a medium-severity vulnerability rated 6.1/10 on the CVSS scale. Label Studio, an open source data labeling tool had a remote import feature allowed users to import data from a remote web source, that was downloaded and could be viewed on the website. Prior to version 1.10.1, this feature could had been abused to download a HTML file that executed malicious JavaScript code in the context of the Label Studio website. EPSS estimates a 0.59% chance of exploitation in the next 30 days.
Description
Label Studio, an open source data labeling tool had a remote import feature allowed users to import data from a remote web source, that was downloaded and could be viewed on the website. Prior to version 1.10.1, this feature could had been abused to download a HTML file that executed malicious JavaScript code in the context of the Label Studio 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. `data_import/uploader.py` lines 125C5 through 146 showed that if a URL passed the server side request forgery verification checks, the contents of the file would be downloaded using the filename in the URL. The downloaded file path could then be retrieved by sending a request to `/api/projects/{project_id}/file-uploads?ids=[{download_id}]` where `{project_id}` was the ID of the project and `{download_id}` was the ID of the downloaded file. Once the downloaded file path was retrieved by the previous API endpoint, `data_import/api.py`lines 595C1 through 616C62 demonstrated that the `Content-Type` of the response was determined by the file extension, since `mimetypes.guess_type` guesses the `Content-Type` based on the file extension. Since the `Content-Type` was determined by the file extension of the downloaded file, an attacker could import in a `.html` file that would execute JavaScript when visited. Version 1.10.1 contains a patch for this issue. Other remediation strategies are also available. For all user provided files that are downloaded by Label Studio, set the `Content-Security-Policy: sandbox;` response header when viewed on the site. The `sandbox` directive restricts a page's actions to prevent popups, execution of plugins and scripts and enforces a `same-origin` policy. Alternatively, restrict the allowed file extensions that may be downloaded.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Humansignal | Label Studio | < 1.10.1 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2024-23633?
How severe is CVE-2024-23633?
How do I fix CVE-2024-23633?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2024
- CVE-2024-23626A command injection vulnerability exists in the ‘SaveSysLogP…8.8
- CVE-2024-23627A command injection vulnerability exists in the 'SaveStaticR…8.8
- CVE-2024-23628A command injection vulnerability exists in the 'SaveStatic…8.8
- CVE-2024-23629An authentication bypass vulnerability exists in the web com…7.5
- CVE-2024-2363** UNSUPPORTED WHEN ASSIGNED ** A vulnerability was found in…5.3
- CVE-2024-23630An arbitrary firmware upload vulnerability exists in the Mot…8.8
- CVE-2024-23634GeoServer is an open source software server written in Java …6
- CVE-2024-23635AntiSamy is a library for performing fast, configurable clea…6.1
- CVE-2024-23636SOFARPC is a Java RPC framework. SOFARPC defaults to using t…9.8
- CVE-2024-23637OctoPrint is a web interface for 3D printer.s OctoPrint vers…4.9
- CVE-2024-23638Squid is a caching proxy for the Web. Due to an expired poin…6.5
- CVE-2024-23639Micronaut Framework is a modern, JVM-based, full stack Java …7.8
Are you affected by CVE-2024-23633?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
