Ignition before 2.5.2, as used in Laravel and other products, allows unauthenticated remote attackers to execute arbitrary code because of insecure usage of file_get_contents() and file_put_contents(). This is exploitable on sites using debug mode with Laravel before 8.4.2.
Linux,OSX,Unix,Windows
To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':
msf > use exploit/multi/php/ignition_laravel_debug_rce
msf exploit(ignition_laravel_debug_rce) > show targets
...targets...
msf exploit(ignition_laravel_debug_rce) > set TARGET < target-id >
msf exploit(ignition_laravel_debug_rce) > show options
...show and set options...
msf exploit(ignition_laravel_debug_rce) > 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