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
Tools/GitHubGitHub/abraxas/pfsense-assign-if-add
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingCommand and ControlRed TeamingLabs & Practice
GitHubabraxas/pfsense-assign-if-add

pfsense-assign-if-add

pfSense CE 2.9.0-DEVELOPMENT - High - Remote - RCE - assign Add if_add

View Repository
15 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-assign-if-add

abraxaslabs.tech  ·  github.com/abraxas  ·  @abraxas_null  ·  [email protected]  ·  pfsense-assign-if-add

pfsense-assign-if-add

Class: RCE Reach: Remote

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

interfaces_assign.php Add stores $_POST['if_add'] without $portlist membership. Submit remaps only ports in $portlist. wireless_regex is /^(ath|...)[0-9]+/ with no $. ath0;w matches. Clone plus get_wireless_modes interpolates into ifconfig.

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-interfaces-assignnetworkports then GET interfaces.php?if=optN
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:18920.

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

What an attacker can do

MethodSinkPrivilege
POST interfaces_assign.php if_add, then GET interfaces.php?if=optNunanchored wireless_regex then interface_wireless_clone ifconfigIntegrity: Lab-proven: Add stored ath0;w as opt1; GET interfaces.php?if=opt1 ran clone ifconfig; extra w wrote the witness.
same leftoversame sinkRecon: Inferred: root shell can read host files.
same leftoversame sinkAvailability: Inferred: hostile ifconfig on assigned ports.

Requires: page-interfaces-assignnetworkports then GET interfaces.php?if=optN. CSRF-magic on POST unless noted. WebGUI PHP-FPM is root.

Requires: page-interfaces-assignnetworkports then GET interfaces.php?if=optN. 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

Submit remap of a non-portlist if_add does not exec. Diagnostics: Command not required.

No Diagnostics: Command unless that page is also granted.

Lab

cd lab
./run.sh

Loopback 127.0.0.1:18920. Compose project pfsense-assign-if-add. Witness PFSENSE-ASSIGN-IF-ADD-WITNESS. Loopback only: 127.0.0.1:18920. Compose project pfsense-assign-if-add. Witness PFSENSE-ASSIGN-IF-ADD-WITNESS. PHP gadget of the pinned lines. Stack tears down after the run.

Last line:

SUCCESS PFSENSE-ASSIGN-IF-ADD control-no-exec=yes trigger-exec=yes PFSENSE-ASSIGN-IF-ADD-WITNESS

Fix

Require if_add in $portlist. Anchor wireless_regex with $. escapeshellarg clone names.

References

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