Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing vulnerability with clear password in email log #4371

Merged
merged 4 commits into from
Sep 27, 2024

Conversation

nilsteampassnet
Copy link
Owner

Fixing vulnerability with clear password in email log

When an account is created on the application, a sixteen-character password is generated and sent in
cleartext by e-mail to the address used to generate the account.
These actions are logged in the database (in the teampass_background_tasks table), along with the
contents of the email containing the plaintext password.

Fixing vulnerability with clear password in email log
@@ -431,6 +431,7 @@ function mailHandler(string $post_type, /*php8 array|null|string */$dataReceived
* Send email
*/
case 'mail_me'://action_mail
error_log('mail_me');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This debug log needs to be removed.

): void
{
error_log('prepareSendingEmail');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This debug log needs to be removed.

@nilsteampassnet nilsteampassnet merged commit 662ef86 into master Sep 27, 2024
2 of 3 checks passed
@nilsteampassnet nilsteampassnet deleted the vulnerability-password-clear-in-db branch September 27, 2024 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants