
pfSense CE 2.9.0-DEVELOPMENT - Media - Remoto - XSS - crash_reporter textarea
abraxaslabs.tech · github.com/abraxas · @abraxas_null · [email protected] · pfsense-crash-reporter-xss
Classe: XSS Portata: Remota
pfSense CE 2.9.0-DEVELOPMENT (9363ac5) - pfsense.org
/tmp/PHP_errors.log passa attraverso htmlspecialchars. /var/crash/* viene letto con file_get_contents dentro <?=$crash_reports?> senza codifica.
| ID | nessuna CVE al momento |
| Classe | XSS |
| Portata | Remota (WebGUI autenticata salvo diversa indicazione) |
| CWE | CWE-79 |
| CVSS | Media: 5.4 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| Prodotto | pfSense CE |
| Affetto | 2.9.0-DEVELOPMENT (9363ac5b8651a1c7a333180425ce7719070f95f9) |
| Auth | Sessione WebGUI con page-diagnostics-crash-reporter |
| Licenza | GNU Affero GPL v3.0 |
| Lab | solo 127.0.0.1 |
Ho fissato il master pubblico 9363ac5. Il lab è un gadget PHP del sink fissato, HTTP su loopback su 127.0.0.1:19180.
Write-up della serie: https://abraxaslabs.tech/research/pfsense-ce-leftovers
| Metodo | Sink | Privilegio |
|---|---|---|
| GET crash_reporter.php dopo un file di crash con HTML | textarea> | Integrità: Dimostrato in lab: blob di crash |
| stesso residuo | stesso sink | Ricognizione: Dedotto: XSS memorizzato dal dump in qualità di utente GUI che apre il crash reporter. |
| stesso residuo | stesso sink | Disponibilità: Nessuna dimostrata. |
Richiede: page-diagnostics-crash-reporter. CSRF-magic su POST salvo diversa indicazione. WebGUI PHP-FPM è root.
Richiede: page-diagnostics-crash-reporter. CSRF-magic su POST salvo diversa indicazione. WebGUI PHP-FPM è root. CSRF-magic su POST salvo diversa indicazione. WebGUI PHP-FPM è root.
Log degli errori PHP htmlspecialchars.
Nessun Diagnostics: Command a meno che anche quella pagina non sia concessa.
cd lab
./run.sh
Loopback 127.0.0.1:19180. Progetto Compose pfsense-crash-reporter-xss. Witness PFSENSE-CRASH-REPORTER-XSS-WITNESS. Solo loopback: 127.0.0.1:19180. Progetto Compose pfsense-crash-reporter-xss. Witness PFSENSE-CRASH-REPORTER-XSS-WITNESS. Gadget PHP delle righe fissate. Lo stack viene smontato dopo l'esecuzione.
Ultima riga:
SUCCESS PFSENSE-CRASH-REPORTER-XSS control-encoded=yes trigger-raw=yes PFSENSE-CRASH-REPORTER-XSS-WITNESS
htmlspecialchars sui blob di crash nella textarea.
9363ac5b8651a1c7a333180425ce7719070f95f9