Closed Bug 1818214 Opened 3 years ago Closed 3 years ago

GetStructuredCloneReadInfoFromStatement gets wrong key for decryption

Categories

(Core :: Storage: IndexedDB, defect, P2)

defect

Tracking

()

RESOLVED FIXED
112 Branch
Tracking Status
firefox-esr102 --- unaffected
firefox110 --- wontfix
firefox111 --- wontfix
firefox112 --- fixed

People

(Reporter: janv, Assigned: janv)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

We store big structured clones in separate files on disk which get encrypted in the private browsing mode like normal blobs. All blobs use file ids for generating per blob encryption keys. The problem is that we pass wrong key to GetStructuredCloneReadInfoFromStatement for decryption, for example here. The Database class contains a different key which should be only used for encryption/decryption of the SQLite database.

Regressed by: 1784966

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

Pushed by hsingh@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/dcaa7f92339c Get correct key for decryption in GetStructuredCloneReadInfoFromExternalBlob; r=hsingh

Backed out 5 changesets (Bug 1639545, Bug 1639548, Bug 1818214) for multiple mochitest dom/indexedDB/test/... related test failures.
Backout link
Push with failures <--> 2
Failure Log
Fixed by commit filter

Flags: needinfo?(jvarga)
Flags: needinfo?(jvarga) → needinfo?(hsingh)
Pushed by jvarga@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0ed4a2b19429 Get correct key for decryption in GetStructuredCloneReadInfoFromExternalBlob; r=hsingh
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 112 Branch
Flags: needinfo?(hsingh)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: