
pfSense CE 2.9.0-DEVELOPMENT - Low - Remote - CSRF - WOL GET wakeall
abraxaslabs.tech · github.com/abraxas · @abraxas_null · [email protected] · pfsense-wol-get-all
Class: CSRF Reach: Remote
pfSense CE 2.9.0-DEVELOPMENT (9363ac5) - pfsense.org
services_wol.php still has $_REQUEST['wakeall'] and href="services_wol.php?wakeall=true" without usepost. #16961 is notes-only on this public tree.
| ID | no CVE yet |
| Class | CSRF |
| Reach | Remote (authenticated WebGUI unless noted) |
| CWE | CWE-352 |
| CVSS | Medium: 4.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N |
| Product | pfSense CE |
| Affected | 2.9.0-DEVELOPMENT (9363ac5b8651a1c7a333180425ce7719070f95f9) |
| Auth | WebGUI session with page-services-wakeonlan (session; GET mutator) |
| 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:19300.
Series write-up: https://abraxaslabs.tech/research/pfsense-ce-leftovers
| Method | Sink | Privilege |
|---|---|---|
| GET services_wol.php?wakeall=true | send_wol() for every stored MAC | Integrity: Lab-proven: GET ?wakeall=true sent wol for both stored MACs. CONTROL GET without wakeall sent none. |
| same leftover | same sink | Recon: None. |
| same leftover | same sink | Availability: Lab-proven: wakes stored WOL targets. |
Requires: page-services-wakeonlan (session; GET mutator). CSRF-magic on POST unless noted. WebGUI PHP-FPM is root.
Requires: page-services-wakeonlan (session; GET mutator). CSRF-magic on POST unless noted. WebGUI PHP-FPM is root. CSRF-magic on POST unless noted. WebGUI PHP-FPM is root.
Unauth without a session cookie. SameSite=Strict still applies to CSRF from a foreign site.
No Diagnostics: Command unless that page is also granted.
cd lab
./run.sh
Loopback 127.0.0.1:19300. Compose project pfsense-wol-get-all. Witness PFSENSE-WOL-GET-ALL-WITNESS. Loopback only: 127.0.0.1:19300. Compose project pfsense-wol-get-all. Witness PFSENSE-WOL-GET-ALL-WITNESS. PHP gadget of the pinned lines. Stack tears down after the run.
Last line:
SUCCESS PFSENSE-WOL-GET-ALL control-no-packets=yes trigger-wake-all-get=yes PFSENSE-WOL-GET-ALL-WITNESS
POST-only wakeall. usepost on the Wake All link.
9363ac5b8651a1c7a333180425ce7719070f95f9