brave-browser: [Security] Missing passwords on macOS and Linux

Description

There’s a password loss issue effecting macOS and Linux.

@szilardszaloki:

Narrowed down to these 2 Beta versions: Beta v1.68.106 (Chromium 126.0.6478.126) Beta v1.68.107 (Chromium 127.0.6533.26)

In https://github.com/brave/brave-core/compare/v1.68.106...v1.68.107 (while going from Chromium 126 to Chromium 127) we pulled in Remove undecryptable passwords from the login db (Chromium’s bug) and at the same time removed a patch of ours (chromium_src/components/password_manager/core/browser/password_store/login_database.cc) that contained a change in the same exact function (LoginDatabase::StatementToForms()).

Combined effect of the two caused some passwords to be hidden in the password manager UI.

Follow-up to the original general data loss issue can be found here: https://github.com/brave/brave-browser/issues/40375

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 1
  • Comments: 29 (17 by maintainers)

Commits related to this issue

Most upvoted comments

I can confirm that the issue is fixed. Tested with Brave 1.68.141 Chromium: 127.0.6533.120 (Official Build) (arm64) and my original Login Data DB. All passwords are showing again.

@mario-grgic Nice find! 👍🏻

I managed to narrow it down to 2 Beta versions:

In https://github.com/brave/brave-core/compare/v1.68.106...v1.68.107 (while going from Chromium 126 to Chromium 127) we pulled in Remove undecryptable passwords from the login db (Chromium’s bug) and at the same time removed a patch of ours (chromium_src/components/password_manager/core/browser/password_store/login_database.cc) that contained a change in the same exact function (LoginDatabase::StatementToForms()).

Culprit is the combined effect of the two — will post a fix soon.

There’s likely more than one root cause at play here, as others have had this issue for quite a while now — see here.

The most recent uptick in reports, however, is most probably due to https://source.chromium.org/chromium/chromium/src/+/e3f9c0f85cb27216d031a76538c83289f2f79e7e (the login_database.cc change in particular), which went into Chromium 127.0.6483.0 — which first appeared in Brave 1.68.128(Chromium 127.0.6533.73).

Will be back with a fix soon.

My general setup is covered under https://github.com/brave/brave-browser/issues/33548#issuecomment-2223246611 but can confirm, when using 1.70.18 if I launch with -–enable-features=SkipUndecryptablePasswords from the terminal I can see my passwords under brave://password-manager/passwords on macOS. If I don’t use that when launching via the terminal, then then my passwords are not visible on that page.

Without extra flag With extra flag
without with

Note, my experience was limited to password loss - not tabs, bookmarks, etc.

Brave | 1.70.18 Chromium: 127.0.6533.73 (Official Build) nightly (x86_64)
-- | --
Revision | 433cfac052117c021a9f8d29e52afbdc91de7a00
OS | macOS Version 13.6.7 (Build 22G720)