
pfSense CE 2.9.0-DEVELOPMENT - Medium - Remote - XSS - crash_reporter textarea
abraxaslabs.tech · github.com/abraxas · @abraxas_null · [email protected] · pfsense-crash-reporter-xss
Class: XSS Reach: Remote
pfSense CE 2.9.0-DEVELOPMENT (9363ac5) - pfsense.org
/tmp/PHP_errors.log goes through htmlspecialchars. /var/crash/* is file_get_contents into <?=$crash_reports?> with no encode.
| ID | no CVE yet |
| Class | XSS |
| Reach | Remote (authenticated WebGUI unless noted) |
| CWE | CWE-79 |
| CVSS | Medium: 5.4 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| Product | pfSense CE |
| Affected | 2.9.0-DEVELOPMENT (9363ac5b8651a1c7a333180425ce7719070f95f9) |
| Auth | WebGUI session with page-diagnostics-crash-reporter |
| 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:19180.
Series write-up: https://abraxaslabs.tech/research/pfsense-ce-leftovers
| Method | Sink | Privilege |
|---|---|---|
| GET crash_reporter.php after a crash file with HTML | textarea> | Integrity: Lab-proven: crash blob |
| same leftover | same sink | Recon: Inferred: stored-from-dump XSS as the GUI user who opens crash reporter. |
| same leftover | same sink | Availability: None shown. |
Requires: page-diagnostics-crash-reporter. CSRF-magic on POST unless noted. WebGUI PHP-FPM is root.
Requires: page-diagnostics-crash-reporter. CSRF-magic on POST unless noted. WebGUI PHP-FPM is root. CSRF-magic on POST unless noted. WebGUI PHP-FPM is root.
PHP error log htmlspecialchars.
No Diagnostics: Command unless that page is also granted.
cd lab
./run.sh
Loopback 127.0.0.1:19180. Compose project pfsense-crash-reporter-xss. Witness PFSENSE-CRASH-REPORTER-XSS-WITNESS. Loopback only: 127.0.0.1:19180. Compose project pfsense-crash-reporter-xss. Witness PFSENSE-CRASH-REPORTER-XSS-WITNESS. PHP gadget of the pinned lines. Stack tears down after the run.
Last line:
SUCCESS PFSENSE-CRASH-REPORTER-XSS control-encoded=yes trigger-raw=yes PFSENSE-CRASH-REPORTER-XSS-WITNESS
htmlspecialchars crash blobs in the textarea.
9363ac5b8651a1c7a333180425ce7719070f95f9