Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
pfsense-cp-ha-pfctl — pfSense CE 2.9.0-DEVELOPMENT - High - Remote - RCE - CP HA host into pfctl | Kitploit
Tools/GitHubGitHub/abraxas/pfsense-cp-ha-pfctl
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingCommand and ControlRed TeamingLabs & Practice
GitHubabraxas/pfsense-cp-ha-pfctl

pfsense-cp-ha-pfctl

pfSense CE 2.9.0-DEVELOPMENT - High - Remote - RCE - CP HA host into pfctl

View Repository
34 days agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

Abraxas Labs - pfsense-cp-ha-pfctl

abraxaslabs.tech  ·  github.com/abraxas  ·  @abraxas_null  ·  [email protected]  ·  pfsense-cp-ha-pfctl

pfsense-cp-ha-pfctl

Class: RCE Reach: Remote

pfSense CE 2.9.0-DEVELOPMENT (9363ac5) - pfsense.org

captiveportal_load_pfctl runs mwexec("/usr/bin/printf "{$rules}" | /sbin/pfctl -a {$anchor}/{$host} -f-") with $host unquoted. backwardsyncip is not is_ipaddr.

IDno CVE yet
ClassRCE
ReachRemote (authenticated WebGUI unless noted)
CWECWE-78
CVSSHigh: 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
ProductpfSense CE
Affected2.9.0-DEVELOPMENT (9363ac5b8651a1c7a333180425ce7719070f95f9)
AuthWebGUI session with page-services-captiveportal-hasync
LicenseGNU Affero GPL v3.0
Lab127.0.0.1 only

I pinned public master 9363ac5. The lab is a PHP gadget of the pinned sink, loopback HTTP on 127.0.0.1:18990.

Series write-up: https://abraxaslabs.tech/research/pfsense-ce-leftovers

What an attacker can do

MethodSinkPrivilege
HA sync host / MAC into captiveportal_load_pfctlmwexec printfpfctl -a {$anchor}/{$host} -f-
same leftoversame sinkRecon: Inferred: root shell. Peer blob / MITM plant of that host is inferred, not this gadget.
same leftoversame sinkAvailability: Inferred: flush CP pf anchors.

Requires: page-services-captiveportal-hasync. CSRF-magic on POST unless noted. WebGUI PHP-FPM is root.

Requires: page-services-captiveportal-hasync. CSRF-magic on POST unless noted. WebGUI PHP-FPM is root. CSRF-magic on POST unless noted. WebGUI PHP-FPM is root.

Adjacent surface that stays closed

SA-26_05 widget XSS. #16339 status-output password sanitize.

No Diagnostics: Command unless that page is also granted.

Lab

cd lab
./run.sh

Loopback 127.0.0.1:18990. Compose project pfsense-cp-ha-pfctl. Witness PFSENSE-CP-HA-PFCTL-WITNESS. Loopback only: 127.0.0.1:18990. Compose project pfsense-cp-ha-pfctl. Witness PFSENSE-CP-HA-PFCTL-WITNESS. PHP gadget of the pinned lines. Stack tears down after the run.

Last line:

SUCCESS PFSENSE-CP-HA-PFCTL control-clean=yes trigger-exec=yes PFSENSE-CP-HA-PFCTL-WITNESS

Fix

escapeshellarg $host and $anchor. is_ipaddr / is_macaddr the HA fields.

References

  • github.com/pfsense/pfsense 9363ac5b8651a1c7a333180425ce7719070f95f9
  • CWE-78
  • Series: https://abraxaslabs.tech/research/pfsense-ce-leftovers
Download Tool