CVE-2022-25802
Medium · 6.1CVSS
6.1
EPSS
0.8%
Published
Jul 14, 2022
CISA due date
—
Cloudanix analysis
A flaw in the ticketing system lets attackers trick users into running malicious code simply by viewing an attachment, which could let outsiders steal or change ticket information.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Data Tampering
- Component
- Application
- Class
- XSS
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The flaw permits injection of arbitrary JavaScript into the application context by supplying a malicious Content-Type header on an attachment; when another user views the attachment the script executes with that user's privileges inside the RT web origin.
Why it matters to the business
Attackers can hijack user sessions, read or modify sensitive ticket data, and perform actions as legitimate staff, leading to data leakage or unauthorized changes in the ticketing system.
How an attack unfolds
An attacker creates an attachment whose Content-Type header contains a payload that bypasses sanitization, uploads it to a ticket, then waits for or lures a user with an active RT session to open or preview the attachment; the browser executes the injected script.
How to fix it
Upgrade Request Tracker to version 4.4.6 or later for the 4.4 branch and to version 5.0.3 or later for the 5.x branch; if immediate upgrade is not possible, restrict attachment uploads and disable inline preview of untrusted content types.
How to confirm the fix worked
Confirm the installed RT version is at least 4.4.6 or 5.0.3, then attempt to upload an attachment with a test Content-Type such as text/html;script and verify that the script is no longer executed when viewed by another account.
Typical attack path
- Craft an attachment file whose Content-Type header contains a script payload
- Upload the attachment to an existing or new ticket in RT
- Lure or wait for a privileged user to view or download the attachment
- Browser executes the injected script under the viewing user's session
- Attacker uses the resulting access to read or alter ticket contents
How to detect it
Search web-server access logs for requests that include attachments followed immediately by requests containing script-related parameters or unusual Content-Type values; inspect RT attachment storage for files whose recorded MIME type does not match their actual content.
- Content-Type: text/html;script
- attachment upload followed by eval(
- RT attachment storage paths containing unexpected .html or .js extensions
What your security team should do
- Apply the fixed versions immediately given the public disclosure date and broad exposure of ticketing systems
- Audit existing attachments for suspicious Content-Type values
- Review and tighten attachment handling policies until patches are deployed
- Monitor for any new exploit code that may increase EPSS
The record
Best Practical Request Tracker (RT) before 4.4.6 and 5.x before 5.0.3 allows XSS via a crafted content type for an attachment.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:10 | request-tracker4 | 0 | 4.4.3-2+deb10u2 |
| Debian:11 | request-tracker4 | 0 | 4.4.4+dfsg-2+deb11u2 |
| Debian:12 | request-tracker4 | 0 | 4.4.6+dfsg-1 |
| Debian:12 | request-tracker5 | 0 | 5.0.3+dfsg-1 |
| Debian:13 | request-tracker4 | 0 | 4.4.6+dfsg-1 |
| Debian:13 | request-tracker5 | 0 | 5.0.3+dfsg-1 |
| Debian:14 | request-tracker5 | 0 | 5.0.3+dfsg-1 |
| Ubuntu:16.04:LTS | request-tracker4 | 0 | No fix |
| Ubuntu:20.04:LTS | request-tracker4 | 0 | 4.4.3-2+deb10u3build0.20.04.1 |
| Ubuntu:22.04:LTS | request-tracker4 | 0 | 4.4.4+dfsg-2ubuntu1.22.04.1 |
| Ubuntu:22.04:LTS | request-tracker5 | 0 | No fix |
| Ubuntu:23.10 | request-tracker4 | 0 | 4.4.4+dfsg-2ubuntu1.23.10.1 |
| Ubuntu:24.04:LTS | request-tracker4 | 0 | No fix |
| Ubuntu:24.04:LTS | request-tracker5 | 0 | No fix |
| Ubuntu:24.10 | request-tracker5 | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | request-tracker4 | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | request-tracker4 | 0 | 4.4.2-2ubuntu0.1~esm1 |
| Ubuntu:Pro:22.04:LTS | request-tracker5 | 0 | 5.0.1+dfsg-1ubuntu1+esm1 |
Related vulnerabilities
- CVE-2023-41260 Best Practical Request Tracker (RT) before 4.4.7 and 5.x before 5.0.5 allows Information… Also affects request-tracker4
- CVE-2023-41259 Best Practical Request Tracker (RT) before 4.4.7 and 5.x before 5.0.5 allows Information… Also affects request-tracker4
- CVE-2024-3262 Information exposure vulnerability in RT software affecting version 4.4.1. Also affects request-tracker4
- CVE-2023-45024 Best Practical Request Tracker (RT) 5 before 5.0.5 allows Information Disclosure via a… Also affects request-tracker5
- CVE-2022-25803 Best Practical Request Tracker (RT) before 5.0.3 has an Open Redirect via a ticket search. Also affects request-tracker5
- CVE-2024-45613 CKEditor 5 is a JavaScript rich-text editor. Also affects request-tracker4
- CVE-2024-43411 CKEditor4 is an open source what-you-see-is-what-you-get HTML editor. Also affects request-tracker4
- CVE-2021-41164 CKEditor4 is an open source WYSIWYG HTML editor. Also affects request-tracker4