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 attachment.
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- osTicket 1.12 - Persistent Cross-Site Scripting via File Upload EDB-47224 · webapps · Aug 12, 2019 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- 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
- http://packetstormsecurity.com/files/154003/osTicket-1.12-File-Upload-Cross-Site-Scripting.html
- 47224 exploit