
pfSense CE 2.9.0-DEVELOPMENT - High - Remote - Privilege leftover - ACB restore
abraxaslabs.tech · github.com/abraxas · @abraxas_null · [email protected] · pfsense-acb-restore-priv
Class: Privilege leftover Reach: Remote
pfSense CE 2.9.0-DEVELOPMENT (9363ac5) - pfsense.org
newver downloads, decrypts with the stored ACB password, config_restore. Optional userkey is another device's backup set. Local backup/history pages are warn-root.
| ID | no CVE yet |
| Class | Privilege leftover |
| Reach | Remote (authenticated WebGUI unless noted) |
| CWE | CWE-269 |
| 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-acb |
| 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:19040.
Series write-up: https://abraxaslabs.tech/research/pfsense-ce-leftovers
| Method | Sink | Privilege |
|---|---|---|
| GET/POST services_acb.php newver= | acb_backup_get / decrypt / config_restore | Integrity: Lab-proven: newver restore replaced config.xml with the planted revision. Restore without newver did not. |
| same leftover | same sink | Recon: Inferred: same page can view/download decrypted ACB XML; userkey can select another device set. |
| same leftover | same sink | Availability: Inferred: restore UI offers reboot; planted config can lock out the GUI. |
Requires: page-services-acb. CSRF-magic on POST unless noted. WebGUI PHP-FPM is root.
Requires: page-services-acb. CSRF-magic on POST unless noted. WebGUI PHP-FPM is root. CSRF-magic on POST unless noted. WebGUI PHP-FPM is root.
diag_backup.php / diag_confbak.php warn-root.
No Diagnostics: Command unless that page is also granted.
cd lab
./run.sh
Loopback 127.0.0.1:19040. Compose project pfsense-acb-restore-priv. Witness PFSENSE-ACB-RESTORE-PRIV-WITNESS. Loopback only: 127.0.0.1:19040. Compose project pfsense-acb-restore-priv. Witness PFSENSE-ACB-RESTORE-PRIV-WITNESS. PHP gadget of the pinned lines. Stack tears down after the run.
Last line:
SUCCESS PFSENSE-ACB-RESTORE-PRIV ident-no-warn-root=yes no-newver-no-restore=yes newver-restore=yes PFSENSE-ACB-RESTORE-PRIV-WITNESS
Mark page-services-acb standard-warning-root.
9363ac5b8651a1c7a333180425ce7719070f95f9