[+] Credits: hyp3rlinx [+] Website: hyp3rlinx.altervista.org [+] Source: http://hyp3rlinx.altervista.org/advisories/AS-MONSTAFTP-0911.txt Vendor: ================================ www.monstaftp.com Product: ================================ monsta_ftp_v1.6.2 Monsta FTP is open source PHP/Ajax cloudware browser based FTP file management web application. Vulnerability Type: =================== CSRF / XSS CVE Reference: ============== N/A Vulnerability Details: ===================== CSRF: ----- No CSRF token exists when making some POST requests, allowing arbitrary deletion of files on the monstaftp server dirs. XSS: ---- Monstaftp sanitizes most $_GET requests with call to sanitizeStr() e.g --> echo sanitizeStr($ftp_host), However we find vulnerable code that is not santized on line 494 of index.php ---> echo $_GET["openFolder"]; creating an XSS entry point and will execute when victim accesses the Monstaftp login page before logging in. Exploit code(s): =============== 1) CSRF delete all server files Disclosure Timeline: ========================================================= Vendor Notification: NA Sept 11, 2015 : Public Disclosure Exploitation Technique: ======================= Remote Severity Level: ========================================================= Med Description: ========================================================== Request Method(s): [+] POST & GET Vulnerable Product: [+] monsta_ftp_v1.6.2 Vulnerable Parameter(s): [+] ftpAction, fileAction[], openFolder Affected Area(s): [+] FTP Admin Area =========================================================== [+] Disclaimer Permission is hereby granted for the redistribution of this advisory, provided that it is not altered except by reformatting it, and that due credit is given. Permission is explicitly given for insertion in vulnerability databases and similar, provided that due credit is given to the author. The author is not responsible for any misuse of the information contained herein and prohibits any malicious use of all security related information or exploits by the author or elsewhere. by hyp3rlinx