Rapid7 Vulnerability & Exploit Database

Unauthenticated remote code execution in Ignition

Back to Search

Unauthenticated remote code execution in Ignition

Disclosed
01/13/2021
Created
02/17/2022

Description

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.

Author(s)

  • Heyder Andrade <eu@heyderandrade.org>
  • ambionics

Platform

Linux,OSX,Unix,Windows

Development

Module Options

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

;