Remote Code Execution in Samsung MagicINFO 9 Server <= 21.1050.0. Remote code execution can be obtained by exploiting the path traversal vulnerability (CVE-2024-7399) in the SWUpdateFileUploader servlet, which can be queried by an unauthenticated user to upload a JSP shell. By default, the application listens on TCP ports 7001 (HTTP) and 7002 (HTTPS) on all network interfaces and runs in the context of NT AUTHORITY\SYSTEM.
Windows
cmd
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/magicinfo_traversal
msf exploit(magicinfo_traversal) > show targets
...targets...
msf exploit(magicinfo_traversal) > set TARGET < target-id >
msf exploit(magicinfo_traversal) > show options
...show and set options...
msf exploit(magicinfo_traversal) > 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