SSD Advisory – pfSense Post Auth RCE
An authenticated user who can modify firewall rule names can inject a crafted alias name that causes pfSense to execute arbitrary commands with root privileges. This allows full compromise of the machine running pfSense.
A vulnerability in pfSense allows authenticated users to cause the product to execute arbitrary code – this in turn would allow an attacker to compromise the machine on which the pfSense is installed.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely, the application fails to properly sanitise or validate the names of firewall aliases, allowing path traversal and command injection when the name is used in a shell command.
Impact
An authenticated attacker could execute arbitrary code with root privileges, leading to full compromise of the pfSense machine.
What the attacker needed
Authenticated access to pfSense web interface; ability to modify firewall rules
The fix
The vendor issued two fixes; the exact changes are not described in the text.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
pfSense is a firewall software. The report says that a logged-in user who can change firewall rule names can trick the system into running their own commands as the most powerful user (root). That means they could take over the whole firewall machine.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.