Researchers discovered two vulnerabilities in pfSense CE related to Cross-Site Scripting and Command Injection that allow an attacker to execute arbitrary commands on a pfSense appliance.
An attacker with RCE capabilities can control the firewall, monitor traffic on the local network, or target services within the network.
PfSense is a prominent open-source firewall solution developed by Netgate.
To create a dedicated firewall/router for a network, the open-source pfSense Community Edition and pfSense Plus are installed on a physical computer or a virtual machine.
Reflected XSS:. A remote attacker can obtain privileges via a crafted URL to the status logs filter dynamic.
Php page in Netgate pfSense v.2.7.0 due to a Cross-Site Scripting vulnerability.
In this case, an unencoded filter string is reflected into a script tag.
A flaw in Netgate pfSense v.2.7.0 allows a remote attacker to execute arbitrary code by sending a specially crafted request to the interfaces gif edit.
In this case, an unescaped user input is used inside a management shell command.
A remote attacker can obtain privileges via a crafted URL to the getserviceproviders.
Php page in Netgate pfSense v.2.7.0 due to Cross-Site Scripting vulnerability.
This is similar to the first Reflected XSS vulnerability.
The Cross-site scripting vulnerabilities and a Command Injection vulnerability that were found could have been utilized by potential attackers to intercept communications or target local network services.
It is necessary for the victim user to be an admin user or to have access to specific sections of the pfSense WebGui.
PfSense CE 2.7.0 and below pfSense Plus 23.05.1 and below are vulnerable to two XSS vulnerabilities and a Command Injection vulnerability.
The security vulnerabilities are fixed in pfSense CE 2.7.1 and pfSense Plus 23.09.
Regardless of the source, it is advised to encode or escape all variables because there is typically no risk involved.
This method also contributes to a Clean Code state by hardening your code against upcoming modifications or problems found elsewhere in the codebase.
This Cyber News was published on gbhackers.com. Publication date: Wed, 13 Dec 2023 13:13:04 +0000