This is such a venerable and ancient class of bugs, going at least as far back as AIX 3. Glad to see they're still makin' 'em like they used to. (If you had SSH access to a host in your Tailscale ACL, you could log in as `-i` and get a root login.)
TS-2026-009: Insecure argument handling in Tailscale SSH permitted root access
21–30 of 157 posts
Re: TS-2026-009: Insecure argument handling in Tailscale SSH permitted root access
#22Tailscale SSH has caused me other problems in the past because it takes over port 22. I'm not a fan.
Re: TS-2026-009: Insecure argument handling in Tailscale SSH permitted root access
#23This is such a venerable and ancient class of bugs, going at least as far back as AIX 3. Glad to see they're still makin' 'em like they used to. (If you had SSH access to a host in your Tailscale ACL, you could log in as `-i` and get a root login.)
Re: TS-2026-009: Insecure argument handling in Tailscale SSH permitted root access
#24Re: TS-2026-009: Insecure argument handling in Tailscale SSH permitted root access
#25> "Tailscale SSH now rejects usernames with leading dashes." Really? That's the fix? A proper fix is to use "--" to separate arguments.
Their fix just future-proofs it in case the same bug gets reintroduced.
Re: TS-2026-009: Insecure argument handling in Tailscale SSH permitted root access
#26Re: TS-2026-009: Insecure argument handling in Tailscale SSH permitted root access
#27Earlier quoted context omitted.
This is just a dirty fix. It adds weird restrictions and masks issues. Refactoring external invocations to use safe argument handling is a better way to fix it. Along with tests that exercise weird names.
I argue the opposite: there’s no better fix for this. You can write the most elegant fix, whatever it is, and prevent that from happening only on the codebase that’s fixed. That doesn’t mean that the codebase will always be the only authority on authentication. The username policy fixes this issue for good, regardless of whatever you write in the future, or whatever new mechanism is introduced. It’s a restriction for…
The better fix would be to not have the username pass through a parser looking for cli flags in the first place.
Re: TS-2026-009: Insecure argument handling in Tailscale SSH permitted root access
#28This is such a venerable and ancient class of bugs, going at least as far back as AIX 3. Glad to see they're still makin' 'em like they used to. (If you had SSH access to a host in your Tailscale ACL, you could log in as `-i` and get a root login.)
I'm somewhat alarmed that the context that this bug was running in was capable of root login. Is there a reason that an SSH login process would, by default, have enough capabilities to facilitate direct root login?
Re: TS-2026-009: Insecure argument handling in Tailscale SSH permitted root access
#29tailscale ssh: replacing a 25-year-old battle-tested codebase with a startup's Go rewrite and then acting surprised when it has bugs