CVE-2023-5421
Medium · 5.5CVSS
5.5
EPSS
0.4%
Published
Oct 16, 2023
CISA due date
—
Cloudanix analysis
Someone with permission to edit customer details can slip in code that runs automatically when the record is saved, letting them potentially steal information or take other unwanted actions inside the system.
- Exploitation
- Remote Authenticated
- Attacker needs
- High Privilege
- Complexity
- Low
- Impact
- Data Tampering
- Component
- Application
- Class
- XSS
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Allows authenticated users with customer user management privileges to inject executable JavaScript into the CustomerID field; the payload runs immediately on save when AdminCustomerUser::UseAutoComplete is enabled.
Why it matters to the business
Privileged insiders or compromised accounts can execute scripts in other users' sessions, risking data leakage or unauthorized actions within the customer management interface; low exploit probability but still requires prompt patching given wide downstream use of the affected software.
How an attack unfolds
An attacker logs in with privileges to create or edit customer user data, alters the CustomerID field to contain a JavaScript payload, saves the record, and the script executes in the browser because the autocomplete configuration change bypasses normal escaping.
How to fix it
Upgrade OTRS to 7.0.47+, 8.0.37+ or Community Edition past 6.0.34; for themeum/tutor apply commit 532b3c416420c2d30be9c9757b8c001a8e3cb49e; disable or review AdminCustomerUser::UseAutoComplete if immediate upgrade is not feasible.
How to confirm the fix worked
Confirm installed version matches or exceeds the listed fixed releases, then attempt to store a benign script in CustomerID and verify it is no longer executed on save.
Typical attack path
- Obtain valid credentials for a user with customer-user create/change rights
- Access the AdminCustomerUser interface
- Insert JavaScript payload into the CustomerID field
- Save the record while UseAutoComplete is active
- Script executes in victim browsers viewing the updated data
How to detect it
Search application and web-server logs for customer-user update events containing script tags or event handlers in the CustomerID field; review audit trails for recent changes made by accounts with customer-user privileges.
What your security team should do
- Apply the listed fixed versions or commit without delay
- Audit current AdminCustomerUser::UseAutoComplete setting and disable if unused
- Add monitoring for unexpected script tags in customer user records
The record
An attacker who is logged into OTRS as an user with privileges to create and change customer user data may manipulate the CustomerID field to execute JavaScript code that runs immediatly after the data is saved.The issue onlyoccurs if the configuration for AdminCustomerUser::UseAutoComplete was changed before. This issue affects OTRS: from 7.0.X before 7.0.47, from 8.0.X before 8.0.37; ((OTRS)) Community Edition: from 6.0.X through 6.0.34.
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-23790 Improper Input Validation vulnerability in the upload functionality for user avatars… Also affects otrs2
- 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-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