Critical Tor flaw leaks users’ real IP address
arstechnica.com
arstechnica.com
Oh, well ... This is basically the same vulnerability exploited by the FBI's NIT. And this is the key aspect ...
> ... "the operating system may directly connect to the remote host, bypassing Tor Browser," ...
Well, in any sort of secure Tor implementation, such a thing should be impossible. The Tor client should be running in a router or gateway VM, and the machine used for browsing should not even have a public IP address. That's easy to manage with Whonix.
I've badgered Tor Project about this for years. And they've ignored me. Their mantra has been about keeping things simple, so more people will use Tor.
Damn.
Edit: They've plugged this leak, but the fundamental weakness remains. Tor Browser doesn't even block non-Tor connectivity with firewall rules. Even VPN clients block non-VPN connectivity.
Pretty much that. Forward some X11?
This will ensure all outgoing traffic is headed for the Tor network. This would prevent this vuln from being effective as it would drop the outbound packets.
If someone can point to a distro that works for this, many of us would be very happy.
If I recall correctly, wasn't silkroad and alphabay compromised by such a flaw? silkroad leaked the server IP through the captcha and I think something similar for alphabay.
At that point, it's game over. No firewall rules will protect you. The moment you shut off Tor, you're owned.
This is exactly why it's crucial to use Whonix or Tails.
I'm not sure that Tails protects as well against malware. Its emphasis is on leaving no traces on your computer. Being a LiveCD, and wiping RAM during shutdown.
EDIT: if you want as foolproof of anonymity as possible it seems that Whonix holds an edge over TAILS and both are better than Qubes. Because Whonix routes all network requests through a locked down gateway VM, there is less chance that any program or system component can escape the Tor "funnel" than in TAILS and particularly Qubes, which focuses on security primarily.
Some years ago, I managed to build a LiveDVD with Debian OS, VBox, a pfSense Tor gateway VM, and a stripped-down Whonix workstation VM with Openbox. But it took ~20 min to boot :(
Dream Market may have had a similar problem, but I don't know specifics. AlphaBay failed more simply. The founder allegedly used his real-name email address on the site. And sadly, after being arrested, he reportedly killed himself.
I would go even further and suggest that a mission critical proxy should not live on a system configured with a real (routable) IP address.
As we can see in this instance, the OS is too "fussy" and the total implementation is too complex for even an expert in network security to be assured that they will not leak basic network IDs.
In my own use of tools like this, not only does the proxying software live on a system whose OS has never seen a real IP but I also throw a "slug" on the network border. "Slug" is the term I use to describe an invisible, layer 2 firewall[1] that blocks ALL network activity except for the addresses/ports of the remote proxy servers.
It's sort of like a condom for the network - no matter how weirdly your proxy software breaks, it could only ever talk to the VPN endpoint (and port) anyway ...
EDIT: To be clear, an example network design would be:
PC --> VPN_box --> slug --> modem
... and in this case, only the modem has a real IP, on the external interface. The VPN_box has non-routable addresses on both sides (and the slug has no IPs).
[1] Has no IPs assigned to it - is just an invisible ethernet bridge but is running IP filter rules.
Me, I just have a perimeter router.
The reason they have been ignoring you about requiring a vm is likely because it is out of scope and doesn't make practical sense. They don't control the parent operating system.
Isn't clear by now that reliable "anonymity" systems are impossible without control over the parent OS? Or at least, control over network access?
[edited for coherence]
This is not a problem with Tor: this is a problem with the Tor Browser (and even then, only on macOS and Linux: users on Windows are not affected)... I'd recommend changing the title as this otherwise sounds like some extremely concerning flaw in the platform itself, which this attack is not targeting.
The "only way" (without contortions) to get Tor without the bundle is via linux package manager.
Still, for the vast majority of Tor users, Tor is Tor browser. However, most of them use Windows, and weren't affected. So maybe "... OSX/Linux Tor browser ...".
-A OUTPUT -m owner --uid-owner [Tor uid] -j ACCEPT
-A OUTPUT -j DROPAlso, using network namespaces doesn't require root.
Network namespaces are much cleaner and can be created and destroyed without risk to other networking rules.
Please say more. Cites would help too.
But instead you can access local files via file:////etc/passwd
I certainly don't expect to see my own file, but it is very common for remote sites to show THEIR /etc/passwd file, because they've used PHPs fopen function, or a curl-wrapper which didn't disable file:// URIs.
file://../../dev/tcp/74.125.225.19/80
That would also explain why it works on 'nix but not windows.
(This is probably mistaken, but the attack might be something along those lines.)
Hmm... Anyone have a link to the hotfix diff? We could just look rather than guess.
file://example.com/path/to/file
and/or file:////example.com/path/to/file
are valid file URIs which might cause an implementation to access the remote host example.com via smb/cifs, nfs or ncp protocols.Source: https://tools.ietf.org/id/draft-kerwin-file-scheme-07.html
6.6. Applications/Protocols That Use This URI Scheme Name
Web browsers:
Firefox Note: Firefox has a unique interpretation of RFC 1738 (See: Bugzilla#107540), which affects UNC paths.
See Bugzilla#107540 from 16 years ago:
https://bugzilla.mozilla.org/show_bug.cgi?id=107540
---
If url format is file:////servername/dir/file.html Mozilla does not navigate to the link. This format works in IE5.
Reproducible: Always Steps to Reproduce: 1. Put url in page - format file:////servername/dir/file.html 2. Try to navigage to link 3.
Actual Results: Nothing
Expected Results: It should have opened link
---
reply from Neil Becker:
We have many links on our internal company website using the file:////server/a/b/c/ convention to access files on our network drives. mozilla seems to want file:///// (5 slashes) but IE and even the old netscape accept 4 slashes.
It seems that to access a local file, if you write file://D:/qtdocs/classes.html for instance, (2 slashes) mozilla automatically changes it to 3. so... when a link specifies FOUR slashes for a UNC name, it would make sense if mozilla would either expand it to FIVE slashes and check it like that, or accept the 4 slashes.
In our company's opinion, this is a bug, not a feature... It's a bug that'll cause us to not use mozilla and instead use IE or another browser than can do the file:////server/a/b/c links. it doesn't seem to be hard to fix - if there's four slashes in the link, change it to 5 and try it. just like you change 2 slashes into 3 for a local hard drive file. cmon!
I would really like to see this bugfix in the mozilla 1.0 release. this is NOT a duplicate bug (i checked the others that are claimed to be a dupe and its not). so would someone please fix this?????
thanks.
Our best bet would be to look at Firefox's commit history since the 28th.
One crafty way to determine the exploit would be to bindiff the hotfix'd firefox binary vs the previous release and examine the diffs in a disassembler to see what code changed. Non-deterministic builds make that tricky, but it's a neat technique to be aware of.
(I can't right now else I would.)
Browser fingerprinting comes to mind, but is there another method?
i.e. if the attacker is the FBI and they're trying to unmask visitors to an onion service, and they learned your IP address (and hence real life name) through this method, they can also confirm that you're visiting the site they're surveiling through correlating packet times leaving your interface and arriving at the surveiled server's.
Maybe there's a less dramatic way to do it too?
Can anyone provide more detail? I never thought Tor was a panacea, but do we know that it's becoming more vulnerable?
Why does anyone rely on TOR for security? Obviously bugs happen, but it seems pretty easy to hack by any large organization....or government.
For instance, according to this page ( https://metrics.torproject.org/networksize.html ), there are less than 7,000 relays in the TOR network. To me, the US, British, Russian, or Chinese government could easily control most of those (i.e. running their own nodes) without anyone knowing, and use that to listen in (or at least infer) what TOR users are doing.
At that small of a scale, I’d bet a large corporation could even run a bunch of nodes.
How can that be protected against - or can it?
Am I missing something?
One downside is that you no longer look like all the other users that are using TorBrowser. But I value non-identifiability (that they can't get to my real identity) more than non-trackability.
But on reflection, this is actually excellent news. At least, for those of us who don't rely on Tor browser. That is, Tor users occasionally get pwned. And now there's less reason to suspect unreported vulnerabilities in Tor itself.
We sometimes take for granted our intelligence in this domain and forget that the average Tor user doesn't know shit about opsec.
Just last week I found out a relative has been exploring Tor behind a VPN, and try as I may, I couldn't make them understand what a MitM attack was. They just read from a random page on the internet that it was safer to use a VPN and didn't bother doing research because frankly, how would they know what to look for?
And mostly, it's just that the VPN provides another level of IP obscurity. If an adversary compromises Tor somehow, and learns your VPN exit IP, there's at least a chance that they won't get your ISP-assigned IP. And if you use nested VPN chains, the adversary would need information from multiple VPN providers. It's the same logic behind three-relay Tor circuits.
For the average, uninformed user, I rest easier at night recommending a direct connection to TOR. One less party to worry about. Security by obscurity is more of an afterthought and shouldn't be relied upon. The relative I mentioned was using a pretty shoddy VPN that I won't name here, but I definitely don't trust them.
Of course, with a network as diverse as Tor, one user's threat model will vary significantly from another's. For example one might be chiefly worried about deanonymization while another might be more concerned with timing attacks. For some of these use cases, having a VPN layer is pretty reasonable, but for others, potentially detrimental.
We try to mitigate this by looking through the stories that didn't get attention and re-upping the good ones (described at https://news.ycombinator.com/item?id=11662380 and links back from there) and/or inviting reposts.
Just this once...