usb2shell: Root on Linux from a USB Plug-In

TL;DR: When the device is unplugged, the kernel runs a command supplied by the device, as root.
Longer Read: When the kernel scans a new SCSI device that says it is an ATA device with CDL support, it calls scsi_cdl_enable() . So a device can make the kernel send it up to 64 bytes of kernel stack, and clear one stack byte at an offset it picks. The PoC we built runs on a Cynthion USB device plugged into a PC with a stock Debian 6.12.22+bpo-amd64 kernel.
Read the full story at Usb2shell →
Related Skills: Systems Programming
Wider Reading: OSTEP (Operating Systems) — Systems Programmingroadmap.sh — Systems ProgrammingedX — Systems Programming

💬 0 comments

No comments yet — be the first to say what you think.