diag_routes.php in pfSense 2.5.2 allows sed data injection
No fixed version listed yet.Check the vendor advisory. References ↓
The flaw is in diag_routes.php, a component of pfSense 2.5.2, where data retrieved from netstat output is parsed through sed in a way that allows sed-specific code to be injected despite the use of escapeshellarg for arguments. An attacker who is an authenticated user of the firewall can exploit this to write an arbitrary file to an arbitrary location on the system, with the route-viewing functionality being the intended but misused entry point.
Official description · CVE.org
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.
- Exploited
- Not confirmed
- Reports
- 0
- Tactics
- 0/15
Exploitation timelineDated milestones for a CVE: when it was disclosed, when exploit code became public, when exploitation was confirmed, and when threat reports named it.
Public exploit code (Metasploit) was available 6 days before disclosure.
- Public exploit codeMetasploit6 days before
- Disclosedday 0
What security researchers reported
Not named in any threat report yetAlso mentioned in 1 community threat pulse (AlienVault OTX)
Weaker evidencePulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.