RC RANDOM CHAOS

Unpatched Tailscale SSH Flaw Enables Root Escalation Across Networks

· via The Hacker News

Original source

Unpatched Tailscale SSH Flaws Could Let a Hacked Device Reach Root on Other Servers

The Hacker News →

A researcher’s lab findings reveal that a single compromised device on a Tailscale network could potentially be leveraged to gain root-level access across the network. The attack specifically targets Tailscale SSH deployments configured to allow port forwarding and requires an attacker who already controls at least one device that access rules permit to reach target servers. Since Tailscale SSH operates on device identity rather than passwords or keys, the initial breach needs no stolen credentials—just a foothold obtained through conventional means like vulnerable applications, supply chain attacks, or phishing.

The researcher demonstrated three distinct exploitation paths in a controlled lab environment. The primary method involves SSH port forwarding to reach system sockets normally restricted to the root user, enabling immediate privilege escalation. A second technique involves replacing root-owned sockets entirely, while a third exploits a time-of-check-time-of-use race condition to bypass file access restrictions. In one scenario, the researcher used stolen enrollment keys to add an attacker-controlled device to the network as a trusted node. The exploit chain was particularly rapid—spreading from one device to all reachable targets in under a second per hop—though certain protections like Tailnet Lock and properly scoped access rules limited propagation in testing.

As of publication, Tailscale has not issued patches, CVEs, or confirmed which configurations are vulnerable. The company acknowledged receipt of the findings and said mitigation work is underway, though no timeline was provided. Organizations currently lacking patches should restrict SSH access rules to named device pairs rather than group-based grants, disable port forwarding where possible, and ensure device keys expire over time. For headscale self-hosted deployments, port forwarding cannot be disabled entirely, making every SSH permission functionally equivalent to granting root access.

Read the full article

Continue reading at The Hacker News →

This is an AI-generated summary. Read the original for the full story.