The PrimeTimeLength 12:27
Original video byThePrimeagen
Our take
ThePrimeagen walks through a bug he calls one of the wildest he has seen: on a default Alpine Docker image with SSHD open to the public, and a few other conditions, he says anyone can log in as root. His numbers: he puts it against a PHP attack that took about 19 hours to steal $1,000, and a TCP bug Claude reproduced in about 45 minutes. The researcher, Ozgun Kultekin, found this one by throwing 17,000 odd logins at OpenSSH with an agent swarm. Worth weighing: he says it is not every Linux machine. You need SSHD on Alpine, OpenWrt, or another musl system, with password authentication and without PAM, and he does not walk through a patch in this video. The episode's sponsor is WorkOS. If you still have SSH password logins on an Alpine or musl box, have you checked whether that service should be reachable at all?
Summary
ThePrimeagen explains a newly published OpenSSH bug, found by Ozgun Kultekin, that he says can let anyone log in as root on Alpine, OpenWrt, or other musl systems when password authentication is on, PAM is off, and SSHD is reachable.
Key points
- He says that if you use the default Alpine image for Docker and have SSHD open to the public, plus a couple of other requirements, anyone can log in as root.
- The bug, he says, does not affect every Linux machine: you need SSHD running on Alpine, OpenWrt, or another musl system, with password authentication on and without PAM.
- He traces the hole to a long chain of old Unix password-lock conventions and later OpenSSH fixes that, taken together, left a locked root account open.
- He credits Ozgun Kultekin's write-up, and says the researcher found the bug by throwing 17,000 odd logins at OpenSSH with an agent swarm.
Notable takes
- On a default Alpine Docker image with SSHD open to the public, and a couple of other requirements, he says anyone can log in as root.Watch on YouTube from 0:22
- It does not affect every Linux machine: you need SSHD on Alpine, OpenWrt, or another musl system, with password authentication on and without PAM.Watch on YouTube from 2:10
- A chain of old password-lock conventions and later OpenSSH fixes left a locked root account open.Watch on YouTube from 11:21
- Kultekin found it by throwing 17,000 odd logins at OpenSSH with an agent swarm.Watch on YouTube from 12:06
