Rapid7 Vulnerability & Exploit Database

IPFire 2.25 Core Update 156 and Prior pakfire.cgi Authenticated RCE

Back to Search

IPFire 2.25 Core Update 156 and Prior pakfire.cgi Authenticated RCE

Disclosed
05/17/2021
Created
06/15/2021

Description

This module exploits an authenticated command injection vulnerability in the /cgi-bin/pakfire.cgi web page of IPFire devices running versions 2.25 Core Update 156 and prior to execute arbitrary code as the root user.

Author(s)

  • Mücahit Saratar <trregen222@gmail.com>
  • Grant Willcox

Platform

Python

Architectures

python

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/linux/http/ipfire_pakfire_exec
msf exploit(ipfire_pakfire_exec) > show targets
    ...targets...
msf exploit(ipfire_pakfire_exec) > set TARGET < target-id >
msf exploit(ipfire_pakfire_exec) > show options
    ...show and set options...
msf exploit(ipfire_pakfire_exec) > 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

;