Open Bug 2094564 Opened 6 days ago Updated 1 day ago

Recover Flatpak credit cards lost in Firefox 149 by trying the old NSS key during the Rust storage migration

Categories

(Toolkit :: Form Autofill, defect, P2)

defect

Tracking

()

ASSIGNED
Tracking Status
firefox-esr115 --- unaffected
firefox-esr153 --- wontfix
firefox160 --- wontfix
firefox161 --- wontfix
firefox162 --- wontfix
firefox163 --- fix-optional

People

(Reporter: dimi, Assigned: dimi)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 external file)

What happened

Firefox 149 moved the Flatpak to the Freedesktop 25.08 runtime (bug 2010742). Unlike 24.08, the 25.08 runtime includes libsecret, so on Flatpak OSKeyStore switched from the NSS backend (key stored in key4.db) to the LibSecret backend. It found no key in the keyring and generated a new one, so credit cards saved before 149 can no longer be decrypted.

Telemetry shows about 95% of Flatpak users whose cards worked on 148 lost them after updating to 149. Other Linux packages are not affected.

Possible fix

The old key should still be in the profile's key4.db, since nothing deletes it. During the credit card migration to the Rust store, when decrypting a card with OSKeyStore fails, we could retry with the old NSS key before giving up on the card.

On Linux the OS key store uses libsecret when it can load it and the NSS key
database otherwise, deciding at each launch. Flatpak builds gained libsecret in
149, so cards encrypted under the NSS key no longer decrypt, though that key is
still in key4.db. The migration into the Rust store now retries such a card
with nsIOSKeyStore.asyncDecryptBytesWithNSSKeyStore, which only reads.

Type: task → defect
Keywords: regression
Regressed by: 2010742
See Also: 2010742 →

Set release status flags based on info from the regressing bug 2010742

Set release status flags based on info from the regressing bug 2010742

Attachment #9685643 - Attachment description: WIP: Bug 2094564 - WIP: Recover Linux credit cards from the NSS key during the Rust migration. → Bug 2094564 - Recover Linux credit cards from the NSS key during the Rust migration.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: