monstra-cms / monstra

THIS PROJECT IS NOT SUPPORTED ANYMORE! Check FLEXTYPE.ORG
http://flextype.org
MIT License
396 stars 123 forks source link

Cross Site Scripting Vulnerability on "Files" upload file SVG in Monstra 3.0.4 #467

Open Songohan22 opened 4 years ago

Songohan22 commented 4 years ago

Describe the bug An authenticated malicious user can take advantage of a Stored XSS vulnerability in the "Files" feature. Monstra application allows the upload of a SVG file extension (which is also an image type). Reproduce Steps to reproduce the behavior:

  1. Login into the panel Monstra
  2. Go to "/admin/index.php?id=filesmanager&path=uploads/"
  3. Upload file abc.svg:

2

  1. Open file upload : "/public/uploads/abc.svg"
  2. View the preview to trigger XSS.
  3. View the preview to get in request and such Stored XSS. Impact Commonly include transmitting private data, like cookies or other session information, to the attacker, redirecting the victim to web content controlled by the attacker, or performing other malicious operations on the user’s machine under the guise of the vulnerable site. Screenshots 1 Desktop (please complete the following information):
    • OS: Kali
    • Browser: Firefox
    • Version of Browser: 68.6