HTTP: Netgate pfSense Command Injection

This signature detects attempts to exploit a known vulnerability against Netgate pfSense. A successful attack can lead to command injection and arbitrary code execution.

Extended 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.

Affected Products

Pfsense pfsense

Short Name
HTTP:CTS:NETGATE-PFSENSE-CI
Severity
Critical
Recommended
False
Recommended Action
Drop
Category
HTTP
Keywords
CVE-2021-41282 CVE-2023-27253 Command Injection Netgate pfSense
Release Date
03/11/2022
Supported Platforms

srx-branch-12.3

srx-19.3

srx-branch-19.3

vsrx3bsd-19.2

srx-branch-19.4

vsrx-19.4

mx-12.3

mx-19.4

vmx-19.4

mx-19.3

vsrx3bsd-19.4

srx-19.4

vsrx-12.3

vmx-19.3

vsrx-19.2

srx-12.3

Sigpack Version
3590
False Positive
Unknown
Vendors

Pfsense

CVSS Score

9.0

Found a potential security threat?