Closed
Bug 1317955
Opened 9 years ago
Closed 9 years ago
Considering the use of an hash string for firstPartyDomain
Categories
(Core :: DOM: Security, defect)
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: baku, Assigned: baku)
Details
Attachments
(1 file)
|
5.18 KB,
patch
|
Details | Diff | Splinter Review |
Currently, we use OriginAttributes::CreateSuffix() in many places (from quotaManager to necko).
When mFirstPartyDomain is set, we add it to the suffix string.
This means that, it's possible to know the firstPartyDomain, just checking what quotaManager (or cookies, or anything else) writes on disk on the profile directory.
I suggest to use sha256 (or any other faster/better hash function) to convert the firstPartyDomain value.
Comment 1•9 years ago
|
||
Not a bad idea. Please also note we already do use a hash in HTTP cache index:
https://dxr.mozilla.org/mozilla-central/rev/79feeed4293336089590320a9f30a813fade8e3c/netwerk/cache2/CacheHashUtils.cpp#192 (bug 1201042). We use SHA1, from two reasons: the index only has an informative value (tells us quickly presence of a cached content with hi confidence). If a cached entry is found, we check its isolation by comparing the raw OA suffix string then. The other reason is that we want to keep the index data small and SHA1 has a small footprint.
| Assignee | ||
Comment 2•9 years ago
|
||
Assignee: nobody → amarchesini
Attachment #8811355 -
Flags: review?(tanvi)
| Assignee | ||
Comment 3•9 years ago
|
||
Comment on attachment 8811355 [details] [diff] [review]
suffix.patch
This approach doesn't work because, generated suffix, should be parsable by PopulateFromSuffix
Attachment #8811355 -
Flags: review?(tanvi)
Comment 4•9 years ago
|
||
baku, where did we wind up with this? Is this still about protecting the profile directory? Or something else? Is it a close won't fix?
Flags: needinfo?(amarchesini)
| Assignee | ||
Comment 5•9 years ago
|
||
The patch of the unminimized version of CreateSuffix() landed in bug 1315905.
Status: NEW → RESOLVED
Closed: 9 years ago
Flags: needinfo?(amarchesini)
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•