
pfSense CE 2.9.0-DEVELOPMENT - High - Remote - RCE - PPPoE mpd.secret bang
abraxaslabs.tech · github.com/abraxas · @abraxas_null · [email protected] · pfsense-pppoe-secret-bang
Class: RCE Reach: Remote
pfSense CE 2.9.0-DEVELOPMENT (9363ac5) - pfsense.org
Username charset allows CR/LF. Password ! strip (#10275) ltrims a leading ! off the password only. mpd runs ! as an external password helper as root. Direct POST keeps newlines; browser type=text strips them.
| ID | no CVE yet |
| Class | RCE |
| Reach | Remote (authenticated WebGUI unless noted) |
| CWE | CWE-78 |
| 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-pppoeserver-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:18980.
Series write-up: https://abraxaslabs.tech/research/pfsense-ce-leftovers
| Method | Sink | Privilege |
|---|---|---|
| POST services_pppoe_edit.php username with CR/LF | vpn_pppoe_updatesecret mpd.secret ! helper | Integrity: Lab-proven: username newline plus ! helper line; stub PAP/CHAP ran the helper and wrote the witness. Password ! GUI rejected. |
| same leftover | same sink | Recon: Inferred: helper stdout unused. |
| same leftover | same sink | Availability: None shown. |
Requires: page-services-pppoeserver-edit. CSRF-magic on POST unless noted. WebGUI PHP-FPM is root.
Requires: page-services-pppoeserver-edit. CSRF-magic on POST unless noted. WebGUI PHP-FPM is root. CSRF-magic on POST unless noted. WebGUI PHP-FPM is root.
Password ! GUI plus ltrim. L2TP username charset. Browser newline strip.
No Diagnostics: Command unless that page is also granted.
cd lab
./run.sh
Loopback 127.0.0.1:18980. Compose project pfsense-pppoe-secret-bang. Witness PFSENSE-PPPOE-SECRET-BANG-WITNESS. Loopback only: 127.0.0.1:18980. Compose project pfsense-pppoe-secret-bang. Witness PFSENSE-PPPOE-SECRET-BANG-WITNESS. PHP gadget of the pinned lines. Stack tears down after the run.
Last line:
SUCCESS PFSENSE-PPPOE-SECRET-BANG control-one-line=yes control-no-helper=yes password-bang-strip=yes trigger-helper=yes PFSENSE-PPPOE-SECRET-BANG-WITNESS
Reject CR/LF in PPPoE usernames. Apply the same charset as L2TP.
9363ac5b8651a1c7a333180425ce7719070f95f9