Closed
Bug 1305144
Opened 9 years ago
Closed 9 years ago
Spoof referrer when leaving a .onion domain (Tor 17334)
Categories
(Core :: Networking, defect)
Core
Networking
Tracking
()
RESOLVED
FIXED
mozilla54
| Tracking | Status | |
|---|---|---|
| firefox54 | --- | fixed |
People
(Reporter: arthur, Assigned: arthur)
References
(Blocks 1 open bug)
Details
(Whiteboard: [tor][necko-would-take])
Attachments
(1 file, 2 obsolete files)
|
4.59 KB,
patch
|
mcmanus
:
review+
|
Details | Diff | Splinter Review |
When Tor Browser leaves a .onion domain, it's important not to leak the .onion address, for the privacy of both the user and the onion service. In that situation, Tor Browser provides a referrer header of the destination domain.
We would like to propose uplifting this patch to Firefox. It should have no effect on standard Firefox behavior, which already shows the user an error when DNS resolution of a .onion address is attempted.
| Assignee | ||
Comment 1•9 years ago
|
||
Note this patch removes a line, `currentHost = referrerHost;`
that is confusing and doesn't seem to serve a purpose.
Attachment #8794394 -
Flags: review?(mcmanus)
Comment 2•9 years ago
|
||
Comment on attachment 8794394 [details] [diff] [review]
0001-Bug-1305144-Spoof-referrer-when-leaving-a-.onion-dom.patch
Review of attachment 8794394 [details] [diff] [review]:
-----------------------------------------------------------------
this seems to exceed the language of rfc 7686 re .onion
I'm still happy to take the patch under a pref set to true by tor browser that's off in firefox.
Attachment #8794394 -
Flags: review?(mcmanus) → review-
Updated•9 years ago
|
Whiteboard: [tor] → [tor][necko-backlog]
Updated•9 years ago
|
Whiteboard: [tor][necko-backlog] → [tor][necko-would-take]
| Assignee | ||
Comment 3•9 years ago
|
||
Thanks, Patrick! Here's a new version with the pref as requested.
Attachment #8794394 -
Attachment is obsolete: true
Attachment #8798673 -
Flags: review?(mcmanus)
Comment 4•9 years ago
|
||
I have no strong feelings, but it might be more privacy preserving if you had an empty referrer. That way the visitor could have come from typing in the url manually (or bookmark) or from a page with a referrerPolicy of no-referrer. If you spoof the destination as the referrer and the site goes to the trouble of correlating the fact that you hadn't been there before then the site knows you are likely to have come from a .onion site (or are one of the minority who set non-default prefs).
| Assignee | ||
Comment 5•9 years ago
|
||
Comment on attachment 8798673 [details] [diff] [review]
0001-Bug-1305144-Option-to-spoof-referrer-when-leaving-a-.patch
Review of attachment 8798673 [details] [diff] [review]:
-----------------------------------------------------------------
(In reply to Daniel Veditz [:dveditz] from comment #4)
> I have no strong feelings, but it might be more privacy preserving if you
> had an empty referrer. That way the visitor could have come from typing in
> the url manually (or bookmark) or from a page with a referrerPolicy of
> no-referrer. If you spoof the destination as the referrer and the site goes
> to the trouble of correlating the fact that you hadn't been there before
> then the site knows you are likely to have come from a .onion site (or are
> one of the minority who set non-default prefs).
Thanks for the helpful suggestion, Dan. I'm going to cancel the review request for now and think about it.
Attachment #8798673 -
Flags: review?(mcmanus)
| Assignee | ||
Comment 6•9 years ago
|
||
I took Dan's suggestion and I made a new patch that produces an empty referrer a when leaving a .onion domain.
Try result: https://treeherder.mozilla.org/#/jobs?repo=try&revision=c3e1f381eab4939cefc6760d2803996e90e65d86&selectedJob=74092789
Attachment #8798673 -
Attachment is obsolete: true
Attachment #8833216 -
Flags: review?(mcmanus)
Updated•9 years ago
|
Attachment #8833216 -
Flags: review?(mcmanus) → review+
Updated•9 years ago
|
Assignee: nobody → arthuredelstein
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/1fab7622624a
Option to hide referrer when leaving a .onion domain. r=mcmanus
Keywords: checkin-needed
Comment 9•9 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox54:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
You need to log in
before you can comment on or make changes to this bug.
Description
•