
pfSense CE 2.9.0-DEVELOPMENT - Medium - Remote - Config injection - NTP GPS/PPS fudge
abraxaslabs.tech · github.com/abraxas · @abraxas_null · [email protected] · pfsense-ntp-gps-fudge
Class: Config injection Reach: Remote
pfSense CE 2.9.0-DEVELOPMENT (9363ac5) - pfsense.org
system.inc concatenates GPS/PPS fudge/refid/stratum into ntpd.conf. mwexec is ntpd -c of that path.
| ID | no CVE yet |
| Class | Config injection |
| Reach | Remote (authenticated WebGUI unless noted) |
| CWE | CWE-74 |
| CVSS | Medium: 5.4 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L |
| Product | pfSense CE |
| Affected | 2.9.0-DEVELOPMENT (9363ac5b8651a1c7a333180425ce7719070f95f9) |
| Auth | WebGUI session with page-services-ntpd-gps / page-services-ntpd-pps |
| 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:19230.
Series write-up: https://abraxaslabs.tech/research/pfsense-ce-leftovers
| Method | Sink | Privilege |
|---|---|---|
| POST services_ntpd_gps.php gpsfudge1 / refid / stratum | ntpd.conf fudge 127.127.20.0 ... | Integrity: Lab-proven: newline added extra ntpd language. Not shell. |
| same leftover | same sink | Recon: None shown. |
| same leftover | same sink | Availability: Inferred: hostile ntpd.conf can fail time sync. |
Requires: page-services-ntpd-gps / page-services-ntpd-pps. CSRF-magic on POST unless noted. WebGUI PHP-FPM is root.
Requires: page-services-ntpd-gps / page-services-ntpd-pps. CSRF-magic on POST unless noted. WebGUI PHP-FPM is root. CSRF-magic on POST unless noted. WebGUI PHP-FPM is root.
Not shell. mwexec argv is the conf path.
No Diagnostics: Command unless that page is also granted.
cd lab
./run.sh
Loopback 127.0.0.1:19230. Compose project pfsense-ntp-gps-fudge. Witness PFSENSE-NTP-GPS-FUDGE-WITNESS. Loopback only: 127.0.0.1:19230. Compose project pfsense-ntp-gps-fudge. Witness PFSENSE-NTP-GPS-FUDGE-WITNESS. PHP gadget of the pinned lines. Stack tears down after the run.
Last line:
SUCCESS PFSENSE-NTP-GPS-FUDGE control-fudge0=yes trigger-extra-ntpd=yes not-shell=yes PFSENSE-NTP-GPS-FUDGE-WITNESS
Numeric/charset-check fudge/refid/stratum. Reject CR/LF.
9363ac5b8651a1c7a333180425ce7719070f95f9