logoalt Hacker News

Usb2shell: Root on Linux from a USB Plug-In

68 points • by matanyall • today at 9:26 PM • 17 comments • view on HN

Comments

jcul • today at 11:22 PM

Hmm... people seem to be dismissing this in the comments.

It's more than a normal rubber duck attack, like pretending to be a mouse and keyboard, it is a proper exploit of the SCSI driver IIUC.

Someone with access to a physical device for one or two minutes can get root pretty much undetected.

It works even if locked or if the device is booted with no one logged in. That's pretty cool IMO.

Not as worrying as a remote exploit of course.

➕ show 1 reply
rpdillon • today at 10:58 PM

Was fixed in 7.2.8, my machines are updated on occasion by me, and are running 7.2.15, which came out on 01 Nov.

Looks like 7.2.8 was cut on 25 Sep: https://lwn.net/Articles/1096820/

So if you're on a maintained distro and update more often than every couple of months, you probably already have the fix for this.

gadtfly • today at 10:48 PM

I just always assumed this was the case

➕ show 2 replies
mort96 • today at 10:47 PM

AFAIU, Linux considers physically connected devices to be "trusted", and doesn't place a ton of importance on securing drivers against hardware acting maliciously. I myself think that this policy is pretty bad, but I see how it could be the only reasonable policy for a monolithic kernel written in C where all drivers run in ring 0..

..I'm surprised though that there's an ACE which can be triggered from the generic USB Mass Storage Device driver without even mounting the filesystem I guess. This is gonna affect even many systems which disable all USB drivers they don't need for security reasons. I expected it to be from a driver for some ancient piece of hardware nobody has maintained for 15 years.

kortzeus • today at 10:32 PM

Finally something my server can't be reached by!

dvh • today at 10:12 PM

>curl -fsSLO https://usb2shell.com/tools/usb2shell-check.sh

>less usb2shell-check.sh

>sh usb2shell-check.sh

I LOLed. Use "less -nU" to prevent black text on black background attack vector. Maybe.

cyberax • today at 11:07 PM

Hm, it looks like it can be used to jailbreak the Tesla Model 3. I wonder if I can use it to add AndroidAuto.

ALSOPSS • today at 11:09 PM

[dead]

kamk3 • today at 10:49 PM

Clickbait2shell, a new exploit where you blindly add "2shell" at the end of a random word. Sequel to Clickbleed.

➕ show 2 replies