Hacker News new | ask | show | jobs
by bpanon 1449 days ago
A few weeks back, I installed Tailscale on a Friday and the following Sunday my machine (ubuntu 22.10) was hacked and running mining/tracking software and rsyslog. I only noticed because my fans were spinning harder than usual.

caveat emptor

2 comments

Ouch.

CVE-2022-41924 Severe 9.6

A vulnerability identified in the Tailscale Windows client allows a malicious website to reconfigure the Tailscale daemon `tailscaled`, which can then be used to remotely execute code. In the Tailscale Windows client, the local API was bound to a local TCP socket, and communicated with the Windows client GUI in cleartext with no Host header verification. This allowed an attacker-controlled website visited by the node to rebind DNS to an attacker-controlled DNS server, and then make local API requests in the client, including changing the coordination server to an attacker-controlled coordination server. An attacker-controlled coordination server can send malicious URL responses to the client, including pushing executables or installing an SMB share. These allow the attacker to remotely execute code on the node. All Windows clients prior to version v.1.32.3 are affected. If you are running Tailscale on Windows, upgrade to v1.32.3 or later to remediate the issue.

Published November 23, 2022.

That is pretty bad. How the heck can a page in a browser send requests to a listening socket on my machine, bound to 127.0.0.1?

Also how does an attacker "rebind DNS"? What does this even mean?

EDIT: more details here: https://emily.id.au/tailscale

Only affected Windows though. The user is on ubuntu
but given what Tailscale does, lateral movement street compromising a windows host in the network seems entirely possible.
I wonder if this golink service is also vulnerable to DNS rebinding. Briefly looking at the code, it seems likely: it relies on Tailscale's usual "assume anyone who can connect to the service is authorized" security model and doesn't check the Host header. But maybe there's some mitigation I'm missing.
Do you feel that your being “hacked” was somehow a result of your using Tailscale? I mean, that’s the obvious implication.
I tend to think so but I am not sure. It was the only change I made on the machine for a long time and the only public internet exposure allowed on the machine.