CVE-2023-38057
Medium · 5.4CVSS
5.4
EPSS
0.4%
Published
Jul 24, 2023
CISA due date
—
Cloudanix analysis
A bug in the survey tool lets attackers slip hidden code into answers that support agents may accidentally run when they read those replies.
- Exploitation
- Remote Authenticated
- Attacker needs
- Low Privilege
- Complexity
- Moderate
- Impact
- Other
- Component
- Application
- Class
- XSS
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Improper input validation permits arbitrary JavaScript injection into free-text survey answers; the payload is stored and later executed in the browser context of any authenticated agent who views the reply, enabling cross-site scripting.
Why it matters to the business
Attackers can hijack agent sessions, exfiltrate customer data, or perform unauthorized actions inside the support platform, increasing risk of data leakage and operational disruption for organizations relying on the survey module.
How an attack unfolds
An attacker obtains a valid, unanswered survey link, submits a crafted JavaScript payload inside a free-text answer field, and waits for an authenticated agent to open the reply; the browser then executes the payload, allowing session theft or further actions on the agent's behalf.
How to fix it
Upgrade the OTRS Survey module to version 7.0.32 or newer for the 7.0 branch, 8.0.13 or newer for the 8.0 branch, and replace any Community Edition Survey module at 6.0.22 or earlier with a supported version that contains the fix.
How to confirm the fix worked
Confirm the installed Survey module version is outside the affected ranges (7.0.X < 7.0.32, 8.0.X < 8.0.13, CE 6.0.X <= 6.0.22), then test by submitting a benign script tag in a free-text field and verifying that it is escaped or blocked when the reply is rendered.
Typical attack path
- Acquire a legitimate link to an unanswered survey request
- Submit JavaScript payload in one or more free-text answer fields
- Monitor or wait for an authenticated agent to read the survey reply
- Execute delivered XSS payload to steal cookies, tokens, or perform actions as the agent
How to detect it
Inspect web server and application logs for survey answer submissions containing script tags, event handlers, or javascript: URIs; correlate any such submissions with subsequent agent access to the same survey reply records.
- <script
- javascript:
- onerror=
- onload=
- survey.*answer.*<.*script
What your security team should do
- Immediately upgrade all OTRS Survey installations to the fixed versions listed in remediation guidance
- Restrict survey link distribution to trusted recipients until patches are applied
- Enable web application firewall rules that block common XSS patterns in survey submissions
- Review agent session activity for any anomalous survey reply views after the vulnerability disclosure date
The record
An improper input validation vulnerability in OTRS Survey modules allows any attacker with a link to a valid and unanswered survey request to inject javascript code in free text answers. This allows a cross site scripting attack while reading the replies as authenticated agent. This issue affects OTRS Survey module from 7.0.X before 7.0.32, from 8.0.X before 8.0.13 and ((OTRS)) Community Edition Survey module from 6.0.X through 6.0.22.
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-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