OS Command Injection in pfBlocker-NG - CVE-2022-31814
Published: December 12, 2023 / Updated: October 25, 2024
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary shell commands on the target system.
The vulnerability exists due to improper input validation when processing HTTP Host header. A remote unauthenticated attacker can send a specially crafted HTTP request to the affected system and execute arbitrary OS commands.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
Affected software
How to mitigate CVE-2022-31814
Links to Public Exploits and PoC-codes
- Exploit #10681 - pfBlockerNG 2.1.4_26 - Remote Code Execution (RCE) (October 25, 2024)
- Exploit #10396 - CVE-2022-31814 (This script is a proof-of-concept exploit for pfBlockerNG <= 2.1.4_26 that allows for remote code execution. It takes a single target URL or a list of URLs, tries to upload a shell using multiple payloads, executes a command, and then dele (August 16, 2024)
- Exploit #10322 - CVE-2022-31814 (Updated Exploit - pfBlockerNG <= 2.1.4_26 Unauth RCE (CVE-2022-31814)) (August 9, 2024)
- Exploit #9547 - SenselessViolence (CVE-2022-31814 Exploitation Toolkit.) (February 13, 2024)
- Exploit #9423 - pfSense plugin pfBlockerNG unauthenticated RCE as root (December 12, 2023)
External References
- https://www.ihteam.net/advisory/pfblockerng-unauth-rce-vulnerability/
- https://docs.netgate.com/pfsense/en/latest/packages/pfblocker.html
- http://packetstormsecurity.com/files/168743/pfSense-pfBlockerNG-2.1.4_26-Shell-Upload.html
- http://packetstormsecurity.com/files/171123/pfBlockerNG-2.1.4_26-Remote-Code-Execution.html