Description
This module exploits an arbitrary file creation vulnerability in the pfSense HTTP interface (CVE-2021-41282). The vulnerability affects versions <= 2.5.2 and can be exploited by an authenticated user if they have the "WebCfg - Diagnostics: Routing tables" privilege.
This module uses the vulnerability to create a web shell and execute payloads with root privileges.
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_diag_routes_webshellmsf undefined(pfsense_diag_routes_webshell) > show actions ...actions...msf undefined(pfsense_diag_routes_webshell) > set ACTION < action-name >msf undefined(pfsense_diag_routes_webshell) > show options ...show and set options...msf undefined(pfsense_diag_routes_webshell) > runPrioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub