Rapid7

module

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

Disclosed
May 17, 2021
Created
Jun 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.

Authors

Mücahit Saratar [email protected]
Grant Willcox

Platform

Python

Architectures

python

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

Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.