Lucene search
K

osTicket 1.12 - Persistent Cross-Site Scripting via File Upload

🗓️ 12 Aug 2019 00:00:00Reported by Aishwarya IyerType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 238 Views

osTicket 1.12 Persistent XSS File Uploa

Related
Code
ReporterTitlePublishedViews
Family
0day.today
osTicket 1.12 - Persistent Cross-Site Scripting via File Upload Vulnerability
13 Aug 201900:00
zdt
Circl
CVE-2019-14748
12 Aug 201900:00
circl
CNVD
Enhancesoft osTicket Cross-Site Scripting Vulnerability (CNVD-2020-16820)
8 Aug 201900:00
cnvd
CVE
CVE-2019-14748
7 Aug 201916:38
cve
Cvelist
CVE-2019-14748
7 Aug 201916:38
cvelist
EUVD
EUVD-2019-5888
7 Oct 202500:30
euvd
exploitpack
osTicket 1.12 - Persistent Cross-Site Scripting via File Upload
12 Aug 201900:00
exploitpack
NVD
CVE-2019-14748
7 Aug 201917:15
nvd
OpenVAS
osTicket < 1.10.7, 1.12.x < 1.12.1 Multiple Vulnerabilities
9 Aug 201900:00
openvas
Packet Storm
osTicket 1.12 File Upload Cross Site Scripting
11 Aug 201900:00
packetstorm
Rows per page
# Exploit Title: osTicket-v1.12 Stored XSS via File Upload
# Vendor Homepage: https://osticket.com/
# Software Link: https://osticket.com/download/
# Exploit Author: Aishwarya Iyer
# Contact: https://twitter.com/aish_9524
# Website: https://about.me/aish_iyer
# Category: webapps
# CVE: CVE-2019-14748

1. Description

An issue was discovered in osTicket before 1.10.7 and 1.12.x before 1.12.1.
The Ticket creation form allows users to upload files along with queries.
It was found that the file-upload functionality has fewer (or no)
mitigations implemented for file content checks; also, the output is not
handled properly, causing persistent XSS that leads to cookie stealing or
malicious actions. For
example, a non-agent user can upload a .html file, and Content-Disposition
will be set to inline instead of an attachment.

https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-14748

2. Proof of Concept

Steps to Reproduce:
- Login to the portal as a non agent user:
- Open a New Ticket
- Select  any option from the dropdown menu present under "Help Topic"
- Text box appears, enter details accordingly
- In the section "drop files here or choose them", we would be putting our
payload
- Open any text editor  and name the file as test(say) with .html extension.
- Within the file, enter the payload
<script>alert(document.cookie);</script>
- Save the test.html file.
- Now click on drop files here option and enter the test.html file.
- Click on "create ticket" option
- Login with another user(agent)
- Now within the User Directory, go to the user under which the payload has
been put.
- The ticket raised with the name mentioned will be shown under the subject
category.
- Scroll down and the file uploaded will be present below.
- Click on the file, and the payload gets executed which is persistent

3. Reference

https://github.com/osTicket/osTicket/commit/33ed106b1602f559a660a69f931a9d873685d1ba
https://github.com/osTicket/osTicket/releases/tag/v1.12.1
https://github.com/osTicket/osTicket/releases/tag/v1.10.7

4. Solution

The vulnerability has been patched by the vendor in the next release which
is osTicket v1.10.7.

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

12 Aug 2019 00:00Current
6.2Medium risk
Vulners AI Score6.2
CVSS 23.5
CVSS 35.4
EPSS0.00383
238