CVE-2024-23790
Critical · 9.8CVSS
9.8
EPSS
0.3%
Published
Jan 29, 2024
CISA due date
—
Cloudanix analysis
A flaw in how user profile pictures are uploaded lets attackers send dangerous files that the system doesn't properly check, which could let them take over the application.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Full Compromise
- Component
- Application
- Class
- Improper Input Validation
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The vulnerability allows uploading files of arbitrary types through the avatar upload functionality because filetype validation is missing, enabling misuse of the upload feature.
Why it matters to the business
Attackers can upload malicious files to the system, potentially leading to unauthorized code execution or data compromise, increasing risk of breaches and operational disruption.
How an attack unfolds
An attacker crafts a request to the avatar upload endpoint, providing a file with a disallowed extension or type that bypasses the absent checks, allowing the file to be stored and potentially executed or misused.
How to fix it
Upgrade affected OTRS installations to versions after 7.0.48, 8.0.37 or 2023.1.1. For Streampark apply commit c3c468c9192dd87b4ae430a41735bde7a391dfba to enforce proper filetype validation on uploads.
How to confirm the fix worked
Confirm filetype allow-list enforcement is present in upload handlers, then test uploads using disallowed extensions and verify they are rejected before storage.
Typical attack path
- Identify publicly reachable instance with avatar upload feature
- Send unauthenticated HTTP POST to the upload endpoint
- Attach file payload using disallowed filetype or extension
- Bypass missing validation allowing storage of the file
- Trigger or reference the uploaded file to achieve code execution or other misuse
How to detect it
Inspect web server and application logs for POST requests to avatar upload paths containing unexpected file extensions or MIME types that should have been rejected.
What your security team should do
- Prioritize upgrade to fixed versions given critical CVSS score
- Add web application firewall rules blocking suspicious upload content types
- Enable detailed logging of all avatar upload attempts for review
The record
Improper Input Validation vulnerability in the upload functionality for user avatars allows functionality misuse due to missing check of filetypes. This issue affects OTRS: from 7.0.X through 7.0.48, from 8.0.X through 8.0.37, from 2023 through 2023.1.1.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Ubuntu:16.04:LTS | otrs2 | 0 | No fix |
| Ubuntu:18.04:LTS | otrs2 | 0 | No fix |
| Ubuntu:20.04:LTS | otrs2 | 0 | No fix |
| Ubuntu:22.04:LTS | otrs2 | 0 | No fix |
| Ubuntu:24.04:LTS | znuny | 0 | No fix |
| Ubuntu:24.10 | znuny | 0 | No fix |
| Ubuntu:25.04 | znuny | 0 | No fix |
| Ubuntu:25.10 | znuny | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | otrs2 | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | otrs2 | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | otrs2 | 0 | No fix |
Related vulnerabilities
- CVE-2024-23791 Insertion of debug information into log file during building the elastic search index… Also affects otrs2
- CVE-2024-23792 When adding attachments to ticket comments, another user can add attachments as well… Also affects otrs2
- CVE-2023-6254 A Vulnerability in OTRS AgentInterface and ExternalInterface allows the reading of plain… Also affects otrs2
- CVE-2023-5422 The functions to fetch e-mail via POP3 or IMAP as well as sending e-mail via SMTP use… Also affects otrs2
- CVE-2023-5421 An attacker who is logged into OTRS as an user with privileges to create and change… Also affects otrs2
- CVE-2023-38059 The loading of external images is not blocked, even if configured, if the attacker uses… Also affects otrs2
- CVE-2023-38060 Improper Input Validation vulnerability in the ContentType parameter for attachments on… Also affects otrs2
- CVE-2023-38058 An improper privilege check in the OTRS ticket move action in the agent interface allows… Also affects otrs2