
pfSense CE 2.9.0-DEVELOPMENT - Medium - Remote - XSS - separator color into class
abraxaslabs.tech · github.com/abraxas · @abraxas_null · [email protected] · pfsense-separator-color-xss
Class: XSS Reach: Remote
pfSense CE 2.9.0-DEVELOPMENT (9363ac5) - pfsense.org
display_separator() concatenates $separator['color'] into class="..." with no encode. order-store copies POST separator with no color whitelist. Text is htmlspecialchars.
| 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-firewall-rules or page-firewall-nat-portforward order-store |
| 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:19160.
Series write-up: https://abraxaslabs.tech/research/pfsense-ce-leftovers
| Method | Sink | Privilege |
|---|---|---|
| POST firewall_rules.php order-store separator color | display_separator class="...{$separator['color']}..." | Integrity: Lab-proven: quote-break raw in class= on three interpolations. NAT reorder is the same sink. |
| same leftover | same sink | Recon: Inferred: stored XSS in the GUI origin. |
| same leftover | same sink | Availability: None shown. |
Requires: page-firewall-rules or page-firewall-nat-portforward order-store. CSRF-magic on POST unless noted. WebGUI PHP-FPM is root.
Requires: page-firewall-rules or page-firewall-nat-portforward order-store. CSRF-magic on POST unless noted. WebGUI PHP-FPM is root. CSRF-magic on POST unless noted. WebGUI PHP-FPM is root.
Text encode. UI colors bg-info/danger/success/warning. String-row helper JS does not match row/0.
No Diagnostics: Command unless that page is also granted.
cd lab
./run.sh
Loopback 127.0.0.1:19160. Compose project pfsense-separator-color-xss. Witness PFSENSE-SEPARATOR-COLOR-XSS-WITNESS. Loopback only: 127.0.0.1:19160. Compose project pfsense-separator-color-xss. Witness PFSENSE-SEPARATOR-COLOR-XSS-WITNESS. PHP gadget of the pinned lines. Stack tears down after the run.
Last line:
SUCCESS PFSENSE-SEPARATOR-COLOR-XSS control-class=yes trigger-unescaped=yes text-encoded=yes string-row-closed=yes nat-same-sink=yes PFSENSE-SEPARATOR-COLOR-XSS-WITNESS
Allowlist separator color. htmlspecialchars in class=.
9363ac5b8651a1c7a333180425ce7719070f95f9