• Remember to address to the Bug Tracking guidelines and to follow the instructions in the post ticket template.
  • Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space
  • Chevereto Support CLST

    Support response

    Support checklist

    • Got a Something went wrong message? Read this guide and provide the actual error. Do not skip this.
    • Confirm that the server meets the System Requirements
    • Check for any available Hotfix - your issue could be already reported/fixed
    • Read documentation - It will be required to Debug and understand Errors for a faster support response

Pending release Error log stores plaintext passwords (POST parameters dumped unredacted on exceptions)

Version
4.5.9
Website URL
https://imagem.app
PHP version
8.2
Database driver
MariaDB
Database version
11.0.2-MariaDB-1:11.0.2+maria~ubu2204 - mariadb.org binary distribution
Web browser
Chrome

mrladeia

Chevereto Member
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:

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).

Suggested fix: ​

Before dumping, redact keys such as password, password-*, new-password, current-password, auth_token, api_key, and any key that matches /pass|token|secret|key/i. Or log only the parameter names, not the values.
 
Hello @mrladeia,

I am sorry to hear about the sequence of issues you encountered. I can offer clarification on each point.

When debug mode is enabled to display errors, the POST data is expected to appear. Because this mode is designed for development and troubleshooting, it should not be used on production systems.

Regarding the log file, POST data should not be included unless the system operates in dev mode. Storing such information can create problems, particularly in shared hosting environments.

For now, I suggest disabling debug mode. xrDebug functions as a probe and should also be turned off. Please rotate your log files and keep permissions limited to your own user.

For V5, I will add a gate to block POST data from log files. I have confirmed that traces are already redacted, so this adjustment should resolve your concern.

Thanks for sharing this with us.
 

Chevereto Cloud

Back
Top