Timezone leak through document.lastModified when using RFP
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
People
(Reporter: pierov, Assigned: pierov)
References
Details
(4 keywords, Whiteboard: [fingerprinting] [adv-main126-])
Attachments
(3 files)
document.lastModified is in local time, and as a result it leaks the timezone also when using RFP (e.g., when coupled with DOMParser, which will create a document modified now):
const parser = new DOMParser();
const doc = parser.parseFromString('<p></p>', 'text/html')
const lastModified = new Date(doc.lastModified.replace(/(\d{2})\/(\d{2})\/(\d{4})/, "$3-$1-$2"));
const offset = Math.ceil((lastModified - new Date()) / 1000);
document.write(offset);
We are including a fix for this in the next Tor Browser alpha release, but we are waiting for the release of April 16 to include it in the stable channel.
Therefore, I kindly ask you to keep this Bug confidential until then.
Thanks in advance.
| Assignee | ||
Comment 1•2 years ago
|
||
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Comment 2•1 year ago
|
||
There is an r+ patch which didn't land and no activity in this bug for 2 weeks.
:pierov, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit BugBot documentation.
Comment 3•1 year ago
|
||
We were waiting to land it, and Piero asked me today
Comment 5•1 year ago
|
||
Updated•1 year ago
|
Updated•1 year ago
|
Comment 6•1 year ago
|
||
verified fixed
- the first value (DOMParser lastModified)
2024-04-17 05:29:31is UTC time - the second value
2024-04-17 17:29:31 [-720]is my real time (12 hrs ahead) taken from XSLT (bug 1891690)
Comment 7•1 year ago
|
||
:dveditz do want to uplift this to esr115?
(it grafts cleanly, checking before reaching out for an uplift request)
Updated•1 year ago
|
Updated•1 year ago
|
Comment 9•1 year ago
|
||
Updated•1 year ago
|
| Assignee | ||
Comment 10•1 year ago
|
||
We patched our channels downstream, so it's okay for us to lift confidentiality.
Thanks again!
Updated•1 year ago
|
Comment 11•1 year ago
|
||
Sorry for the burst of bugspam: filter on tinkling-glitter-filtrate
Adding reporter-external keyword to security bugs found by non-employees for accounting reasons
Description
•