Closed Bug 1305144 Opened 9 years ago Closed 9 years ago

Spoof referrer when leaving a .onion domain (Tor 17334)

Categories

(Core :: Networking, defect)

defect
Not set
normal

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)

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.
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 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-
Whiteboard: [tor] → [tor][necko-backlog]
Whiteboard: [tor][necko-backlog] → [tor][necko-would-take]
Thanks, Patrick! Here's a new version with the pref as requested.
Attachment #8794394 - Attachment is obsolete: true
Attachment #8798673 - Flags: review?(mcmanus)
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).
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)
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)
Attachment #8833216 - Flags: review?(mcmanus) → review+
Thanks, Patrick!
Keywords: checkin-needed
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
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
Depends on: 1357247
Depends on: 1367564
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: