Rapid7 Vulnerability & Exploit Database

pfSense plugin pfBlockerNG unauthenticated RCE as root

Back to Search

pfSense plugin pfBlockerNG unauthenticated RCE as root

Disclosed
09/05/2022
Created
10/13/2022

Description

pfBlockerNG is a popular pfSense plugin that is not installed by default. It’s generally used to block inbound connections from whole countries or IP ranges. Versions 2.1.4_26 and below are affected by an unauthenticated RCE vulnerability that results in root access. Note that version 3.x is unaffected.

Author(s)

  • IHTeam
  • jheysel-r7

Platform

Unix

Architectures

cmd

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

;