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-carp-vhid — pfSense CE 2.9.0-DEVELOPMENT - High - Remote - RCE - CARP VHID leftover | Kitploit
Tools/GitHubGitHub/abraxas/pfsense-carp-vhid
Vulnerability AnalysisExploitationWeb Application ExploitationPost-ExploitationPenetration TestingCommand and ControlRed TeamingLabs & Practice
GitHubabraxas/pfsense-carp-vhid

pfsense-carp-vhid

pfSense CE 2.9.0-DEVELOPMENT - High - Remote - RCE - CARP VHID leftover

View Repository
32 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-carp-vhid

abraxaslabs.tech  ·  github.com/abraxas  ·  @abraxas_null  ·  [email protected]  ·  pfsense-carp-vhid

pfsense-carp-vhid

Class: RCE Reach: Remote

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

Virtual IP edit stores CARP VHID from POST with no 1-255 check. Form_Select options are HTML only. CARP apply escapeshellargs the VHID. Stacked IP Alias apply interpolates vhid {$carpvip['vhid']} outside escapeshellarg. CARP status interpolates the same stored VHID into a double-quoted grep pipeline; semicolon stays quoted, command substitution still runs under /bin/sh -c. Privilege is VIP edit + apply, not Diagnostics: Command.

IDno CVE yet
ClassRCE
ReachRemote (authenticated WebGUI)
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) CARP VHID
AuthWebGUI session with VIP edit + apply (status/widget is a later trigger)
LicenseGNU Affero GPL v3.0
Lab127.0.0.1 only

I pinned public master 9363ac5. The lab is a PHP gadget of pinned interface_carp_configure, stacked ipalias mwexec, and status exec. Loopback 127.0.0.1:18830.

What an attacker can do

MethodSinkPrivilege
POST carp VIP with a non-integer VHID, then apply a stacked IP Alias on that _vip{uniqid} parentmwexec ifconfig ... alias {$gateway} {$vhid} (interfaces.inc:3238)Integrity (lab-proven): root shell. Lab: ipalias-unescaped wrote the witness. CARP apply of the same VHID wrote none (carp-escaped=yes).
Same stored VHID, then GET status_carp.php or render carp_status.widget.phpexec grep pipeline (pfsense-utils.inc:794)Integrity (lab-proven): command substitution inside the double quotes ran and wrote the witness (status-sink=yes, status-subst=yes). Semicolon stayed quoted. Widget trigger can be another GUI session.
Same root shellhost filesystemRecon (inferred): config.xml, keys.
Root shell or broken ifconfigCARP / alias devicesAvailability (inferred): interface / CARP / filter disruption.

Lab-proven vs inferred: carp-escaped, ipalias-unescaped witness, and status command-substitution witness are lab-proven. Filesystem recon and filter disruption are inferred from root PHP-FPM.

Requires: page-firewall-virtualipaddress-edit (save) and page-firewall-virtualipaddresses (apply). Status sink: page-status-carp or any dashboard with the CARP widget. CSRF on POST.

Adjacent surface that stays closed

SurfaceLab
CARP apply itselfescapeshellarg on VHID, carp-escaped=yes
CARP password / advbase / advskew / subnetis_ipaddr / escaped
Unauthclosed
xmlrpc apply of the same objects without HA credsSA-26_22 skip-list
Diagnostics: Commandstays closed unless also granted

Lab

cd lab
./run.sh

Loopback 127.0.0.1:18830. Compose project pfsense-carp-vhid. Image tag pfsense-carp-vhid:2.9.0-dev. Witness PFSENSE-CARP-VHID-WITNESS. Last line:

SUCCESS PFSENSE-CARP-VHID carp-escaped=yes ipalias-unescaped=yes status-sink=yes PFSENSE-CARP-VHID-WITNESS

The fix

Integer-range the VHID to 1-255 on save. escapeshellarg the VHID on stacked IP Alias apply and on the status grep, the same way CARP apply already does.

References

  • github.com/pfsense/pfsense 9363ac5b8651a1c7a333180425ce7719070f95f9
  • firewall_virtual_ip.inc saveVIP
  • interfaces.inc stacked ipalias mwexec
  • pfsense-utils.inc CARP status grep
  • CWE-78
Download Tool