
pfSense CE 2.9.0-DEVELOPMENT - High - Remote - RCE - Unbound ACL CRLF include
abraxaslabs.tech · github.com/abraxas · @abraxas_null · [email protected] · pfsense-unbound-acl-crlf
Class: RCE Reach: Remote
pfSense CE 2.9.0-DEVELOPMENT (9363ac5) - pfsense.org
ACL name/action go into access_lists.conf with no checkconf. Same include: class as sock-queue-timeout, different typed field.
| ID | no CVE yet |
| Class | RCE |
| Reach | Remote (authenticated WebGUI unless noted) |
| CWE | CWE-74 |
| CVSS | High: 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| Product | pfSense CE |
| Affected | 2.9.0-DEVELOPMENT (9363ac5b8651a1c7a333180425ce7719070f95f9) |
| Auth | WebGUI session with page-services-dnsresolver-acls |
| 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:19060.
Series write-up: https://abraxaslabs.tech/research/pfsense-ce-leftovers
| Method | Sink | Privilege |
|---|---|---|
| POST services_unbound_acls.php aclname / aclaction | unbound_acls_config access_lists.conf | Integrity: Lab-proven: CRLF include: in name or action; stub unbound dumped the planted witness. |
| same leftover | same sink | Recon: Lab-proven: included host file body returned. |
| same leftover | same sink | Availability: Inferred: fail resolver start. |
Requires: page-services-dnsresolver-acls. CSRF-magic on POST unless noted. WebGUI PHP-FPM is root.
Requires: page-services-dnsresolver-acls. CSRF-magic on POST unless noted. WebGUI PHP-FPM is root. CSRF-magic on POST unless noted. WebGUI PHP-FPM is root.
network/mask is_ipaddr. descr not interpolated. #16637 does not mention ACLs.
No Diagnostics: Command unless that page is also granted.
cd lab
./run.sh
Loopback 127.0.0.1:19060. Compose project pfsense-unbound-acl-crlf. Witness PFSENSE-UNBOUND-ACL-CRLF-WITNESS. Loopback only: 127.0.0.1:19060. Compose project pfsense-unbound-acl-crlf. Witness PFSENSE-UNBOUND-ACL-CRLF-WITNESS. PHP gadget of the pinned lines. Stack tears down after the run.
Last line:
SUCCESS PFSENSE-UNBOUND-ACL-CRLF control-one-stanza=yes trigger-name-include=yes trigger-action-include=yes checkconf-on-acl-save=no PFSENSE-UNBOUND-ACL-CRLF-WITNESS
Charset-check ACL name/action. test_unbound_config on ACL save.
9363ac5b8651a1c7a333180425ce7719070f95f9