Steps: trigger any exception during POST /login. In our case it was a DB error caused by a full disk.
Expected: sensitive fields are redacted before being logged or displayed.
Actual: the incident written to CHEVERETO_ERROR_LOG contains the full POST body in plain text:
The same data goes into the HTML debug page when debug is enabled, and into xrDebug.
Cause: in app/legacy/load/register-handlers.php, $parameters = ['POST' => post(), 'GET' => get(), 'FILES' => files()] is dumped with VarDump with no filtering, and then added as the "Parameters" extra section.
Impact: any exception on login, signup, password change/reset, or account settings leaks user credentials into the log. By default the log file is often world-readable (ours was 644).
Expected: sensitive fields are redacted before being logged or displayed.
Actual: the incident written to CHEVERETO_ERROR_LOG contains the full POST body in plain text:
Code:
POST: array (size=3)
login-subject => string <user>
password => string <PLAINTEXT PASSWORD>
auth_token => string <token>
The same data goes into the HTML debug page when debug is enabled, and into xrDebug.
Cause: in app/legacy/load/register-handlers.php, $parameters = ['POST' => post(), 'GET' => get(), 'FILES' => files()] is dumped with VarDump with no filtering, and then added as the "Parameters" extra section.
Impact: any exception on login, signup, password change/reset, or account settings leaks user credentials into the log. By default the log file is often world-readable (ours was 644).
