
pfSense CE 2.9.0-DEVELOPMENT - Low - Remote - ioctl leftover - VLAN parent not in portlist
abraxaslabs.tech · github.com/abraxas · @abraxas_null · [email protected] · pfsense-vlan-parent-ioctl
Class: ioctl leftover Reach: Remote
pfSense CE 2.9.0-DEVELOPMENT (9363ac5) - pfsense.org
interfaces_vlan_edit.php builds $portlist for Form_Select only. Save checks does_interface_exist($_POST['if']) and calls interface_vlan_configure. No $portlist membership. ifconfig vlan create uses escapeshellarg, so this is not shell.
| ID | no CVE yet |
| Class | ioctl leftover |
| Reach | Remote (authenticated WebGUI unless noted) |
| CWE | CWE-863 |
| CVSS | Medium: 4.3 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N |
| Product | pfSense CE |
| Affected | 2.9.0-DEVELOPMENT (9363ac5b8651a1c7a333180425ce7719070f95f9) |
| Auth | WebGUI session with page-interfaces-vlan-edit |
| License | GNU Affero GPL v3.0 |
| Lab | 127.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:19290.
Series write-up: https://abraxaslabs.tech/research/pfsense-ce-leftovers
| Method | Sink | Privilege |
|---|---|---|
| POST interfaces_vlan_edit.php if= hidden parent | interface_vlan_configure / pfSense_vlan_create | Integrity: Lab-proven: live lagg member hidden from the UI still got vlan create vlandev. Missing parent and shell metachar rejected. |
| same leftover | same sink | Recon: None shown. |
| same leftover | same sink | Availability: Inferred: vlan on a kernel iface the UI hid. |
Requires: page-interfaces-vlan-edit. CSRF-magic on POST unless noted. WebGUI PHP-FPM is root.
Requires: page-interfaces-vlan-edit. CSRF-magic on POST unless noted. WebGUI PHP-FPM is root. CSRF-magic on POST unless noted. WebGUI PHP-FPM is root.
Not shell. Missing parent rejected. Shell metachar rejected.
No Diagnostics: Command unless that page is also granted.
cd lab
./run.sh
Loopback 127.0.0.1:19290. Compose project pfsense-vlan-parent-ioctl. Witness PFSENSE-VLAN-PARENT-IOCTL-WITNESS. Loopback only: 127.0.0.1:19290. Compose project pfsense-vlan-parent-ioctl. Witness PFSENSE-VLAN-PARENT-IOCTL-WITNESS. PHP gadget of the pinned lines. Stack tears down after the run.
Last line:
SUCCESS PFSENSE-VLAN-PARENT-IOCTL control-portlist=yes reject-missing=yes no-shell=yes trigger-hidden-ioctl=yes PFSENSE-VLAN-PARENT-IOCTL-WITNESS
Require POST if in $portlist, not only does_interface_exist.
9363ac5b8651a1c7a333180425ce7719070f95f9