remote code execution – Hackaday https://hackaday.com Fresh hacks every day Thu, 05 Sep 2024 04:55:40 +0000 en-US hourly 1 https://wordpress.org/?v=6.9.4 156670177 Getting Root on Cheap WiFi Repeaters, the Long Way Around https://hackaday.com/2024/09/05/getting-root-on-cheap-wifi-repeaters-the-long-way-around/ https://hackaday.com/2024/09/05/getting-root-on-cheap-wifi-repeaters-the-long-way-around/#comments Thu, 05 Sep 2024 11:00:58 +0000 https://hackaday.com/?p=705650 What can you do with a cheap Linux machine with limited flash and only a single free GPIO line? Probably not much, but sometimes, just getting root to prove you …read more]]>

What can you do with a cheap Linux machine with limited flash and only a single free GPIO line? Probably not much, but sometimes, just getting root to prove you can is the main goal of a project. If that happens to lead somewhere useful, well, that’s just icing on the cake.

Like many interesting stories, this one starts on AliExpress, where [Easton] spied some low-cost WiFi repeaters, the ones that plug directly into the wall and extend your wireless network another few meters or so. Unable to resist the siren song, a few of these dongles showed up in the mailbox, ripe for the hacking. Spoiler alert: although the attempt on the first device had some success by getting a console session through the UART port and resetting the root password, [Easton] ended up bricking the repeater while trying to install an OpenWRT image.

The second attempt, this time on a different but similar device, proved more fruitful. The rudimentary web UI provided no easy path in, although it did a pretty good job enumerating the hardware [Easton] was working with. With the UART route only likely to provide temptation to brick this one too, [Easton] turned to a security advisory about a vulnerability that allows remote code execution through a specially crafted SSID. That means getting root on these dongles is as simple as a curl command — no hardware hacks needed!

As for what to do with a bunch of little plug-in Linux boxes with WiFi, we’ll leave that up to your imagination. We like [Easton]’s idea of running something like Pi-Hole on them; maybe Home Assistant would be possible, but these are pretty resource-constrained machines. Still, the lessons learned here are valuable, and at this price point, let the games begin.

]]>
https://hackaday.com/2024/09/05/getting-root-on-cheap-wifi-repeaters-the-long-way-around/feed/ 13 705650 IMG_1416_0_0