Exploit database

Vulnerability

CVE-2021-41282

Vulnerability details

Score
8.8
Severity
high

CVSS 3.1 · NVD

Vector string

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Description

diag_routes.php in pfSense 2.5.2 allows sed data injection. Authenticated users are intended to be able to view data about the routes set in the firewall. The data is retrieved by executing the netstat utility, and then its output is parsed via the sed utility. Although the common protection mechanisms against command injection (i.e., the usage of the escapeshellarg function for the arguments) are used, it is still possible to inject sed-specific code and write an arbitrary file in an arbitrary location.

CVE Program

Showing saved CVE details. Refresh is temporarily unavailable.

Exploit source choices

3 sources
pfSense Diag Routes Web Shell Upload
MSF-unix--http--pfsense_diag_routes_webshellMetasploitBSD,Unix / remotePreferred

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.

2022-02-23pfsense_diag_routes_webshell.rb
arpsyndicate/kenzer-templates
GH-e5a0867366963da7a3617cf6f32fda4bGitHubUnofficial GitHub source

essential templates for kenzer [DEPRECATED]

2020-09-185,308 files · 118 stars
bantahacka/pfsense_2021-41282
GH-e6836d317a4cbc7d68f3d66dc9a21cbaGitHubUnofficial GitHub source

bantahacka/pfsense_2021-41282 source repository

2022-10-062 files · 2 stars