[00:00.540 --> 00:06.680] Good afternoon, ladies, gentlemen, and hackers all around. We are very, very excited to be here with [00:06.680 --> 00:12.140] you today. We're excited to share what we've done this year. The light's a little bright, [00:12.140 --> 00:17.660] so I can't see you, but I'm trusting that there's people out there. So as always, [00:17.660 --> 00:23.520] keep your hands and feet inside of the vehicles at all times and enjoy the ride. We're excited. [00:25.480 --> 00:29.780] Okay, so this is what we're going to go over today. What I really want to point [00:29.780 --> 00:35.180] out is the link at the bottom. It is a GitHub link. If you would like to follow along, [00:35.180 --> 00:40.260] see more details, actual code, and the firmware of what we've gone through, [00:40.260 --> 00:44.540] you can go ahead. We published it about 30 minutes ago, so you can go in and follow through. [00:44.600 --> 00:49.080] Or if you would just like to listen to the talk, follow along, and then maybe view it at the end, [00:49.080 --> 00:54.280] there is a QR code that we have that you can scan. I promise you it's not a rickroll. [00:54.440 --> 00:56.340] It'll just give you this GitHub link. [00:58.460 --> 01:04.000] Okay, first we'll do some introductions. My name is Justin Applegate. I am a rising graduate [01:04.000 --> 01:10.020] student at Brigham Young University. I am an avid CTF-er. I play for Project Sekai and the U.S. [01:10.020 --> 01:16.580] Cyber Team. I am Ava Peterson. I'm also an undergraduate student at BYU, and I go by the [01:16.580 --> 01:23.800] handle DeltaBlueJay. And I am Justin Mott. I am also a graduate student at BYU, and I go by the [01:23.800 --> 01:30.100] handle Kester Burris. Thank you. Yes, I go by LegoClones, if you see me around. The last member [01:30.100 --> 01:35.740] of our team for this project, his name is Wyatt Pangirl. He goes by SpoutingWhale. He just [01:35.740 --> 01:41.100] graduated from BYU. He was not able to make it today, but he was an invaluable member of our [01:41.100 --> 01:48.500] team. So let's just go over the project real quick. But first, I want to present to you the [01:48.500 --> 01:53.960] router graveyard. We managed to break not one, but two, but three routers along the way of this [01:53.960 --> 02:01.560] journey. We really wanted to apply some CTF skills to a real-life situation, so we picked a router, [02:02.420 --> 02:08.200] a device, and tried to hike into it. So we formed our team. We picked a timeline of about a semester [02:08.200 --> 02:14.400] long project and saw what we could get from there. So the device we picked was this Vylo router [02:14.840 --> 02:24.120] a home mesh Wi-Fi device. So as any vulnerability researcher or security researcher does, when you [02:24.120 --> 02:29.180] first start against a new target, you want to do reconnaissance. You want to OSINT. You want to [02:29.180 --> 02:35.000] figure out what has been done before so I don't have to reinvent the wheel. So this is some of [02:35.000 --> 02:40.520] the results of what we went through. Vylo Living is the company that produced the routers that we [02:40.520 --> 02:46.960] went after. They were a startup founded in 2021, so they're pretty new, pretty recent, and they only [02:46.960 --> 02:53.380] have two products as of today. They are both mesh routers. One supports Wi-Fi 5, the other Wi-Fi 6. [02:53.380 --> 02:58.460] We searched for CVEs that have been released, any sort of technical deep dive or breakdown, [02:58.460 --> 03:02.340] or even a consumer review that might go into some of the features a little bit, [03:02.340 --> 03:07.600] and we didn't find anything. So between the fact that it's a new company, the fact that we didn't [03:07.600 --> 03:12.740] see anything, any other research that had been done before, and it was pretty cheap. It was one [03:12.740 --> 03:17.020] of the cheapest routers that we could find on Amazon. We were thinking, all right, this is [03:17.020 --> 03:22.380] perfect for some college students to get our feet wet, get involved, find some CVEs, just get used [03:22.380 --> 03:28.300] to the router hacking scene. A couple of notes, I know a lot of routers, especially the older ones, [03:28.300 --> 03:34.500] are administered through a web interface. You connect to the LAN or to the WAN, you type in [03:34.500 --> 03:41.020] 192.168.1.1 in your browser, it pops up, that's how you set it up. This was not the case with us [03:41.020 --> 03:45.960] and with this router. It was all managed through an app on your phone. Kind of a new age thing. [03:46.240 --> 03:51.500] They said they have a bug bounty program. When we did some research, in order to access the bug [03:51.500 --> 03:58.000] bounty program, you had to sign an NDA and be a part of their beta testing group, which we didn't [03:58.000 --> 04:01.860] know what the NDA looked like, so we reached out and said, hey, we want to join the beta testing [04:01.860 --> 04:06.340] group, can you send us the NDA, and they just never got back to us. So we were like, well, I guess we'll [04:06.340 --> 04:11.360] just risk it for the biscuit, go for it anyway, see what we find. And last thing, the firmware was not [04:11.360 --> 04:15.200] released by the vendor, it's not something that we could just download and go through, we had to go [04:15.200 --> 04:23.280] ahead and recover that ourselves. This led to the three main goals for us today. First was to acquire [04:23.280 --> 04:28.640] the firmware, that way it's a white box test and not a black box test, you can see the code, it [04:28.640 --> 04:34.000] makes it a lot easier to actually turn memory corruption vulnerabilities into exploits. Then we [04:34.000 --> 04:39.300] wanted to pop a shell, actually get a shell on the device that makes debugging and extracting the [04:39.300 --> 04:45.660] latest version of the firmware much easier. And our third goal was to find as many pre-authentication [04:45.660 --> 04:51.580] remote code execution vulnerabilities as we could. That's kind of the holy grail, anyone that does [04:51.580 --> 04:56.680] not have administrator access to this router that can run whatever code that they want on it. So [04:56.680 --> 05:02.200] those were the goals that we had when we approached it. So obviously the next step was to start [05:02.200 --> 05:08.860] enumerating our attack surface. So we went and disassembled the router and this is what we ended [05:08.860 --> 05:15.120] up with. And we found some UART pins, so we tried to solder to them and that was the death of router [05:15.120 --> 05:24.060] number one. You may be gone but it will live forever on in our hearts. The second router had [05:24.060 --> 05:31.700] better pins that were easy to solder to. So then we hooked it up, got a Linux log on screen. The [05:31.700 --> 05:36.620] problem is we didn't know the password and it wasn't an easy one. And the UART interface died [05:36.620 --> 05:41.400] after 30 seconds after boot. And it was really hard to even try to put in a password because it [05:41.400 --> 05:48.660] printed out how much time you had left every second. As a result, there was no free shell from [05:48.660 --> 05:55.740] this interface. So we moved on. We went to go and look at the Vilo app. We pulled the APK from [05:55.740 --> 06:03.200] Google Play. And apparently the other members of our team think that mobile rev sucks. I thought it [06:03.200 --> 06:11.540] was a great time. We found some Firebase info, various cloud service stuff on the app. But the [06:11.540 --> 06:19.000] biggest important thing that we found was a custom service running on TCP port 5432. This was [06:19.000 --> 06:27.460] used for app to router interactions when the router had not yet gotten internet access. This was [06:27.460 --> 06:31.520] used to do all that set up. It would spin this up. They would talk to each other over this. They had [06:31.660 --> 06:40.540] a custom protocol that we reverse engineered to learn how that was working. Next slide. So this is [06:40.540 --> 06:47.800] kind of the overview. It had a 15 byte header and a payload. The header had all the fields that you [06:47.800 --> 06:54.080] see there. Not all op codes had payloads, but many did. And they were usually encrypted using this [06:54.080 --> 07:02.380] weird XXT plus custom obfuscation layer random things. Basically the app had a hard coded key [07:02.380 --> 07:07.380] that obfuscated and sent to the router. The router encrypted a new key and sent it back. But it was [07:07.380 --> 07:13.440] all reversible. So we were able to go from the hard coded key and generate our own ones to be able to [07:13.440 --> 07:21.540] talk to it. Which made it really easy to start once we were able to get the source for it, start [07:21.540 --> 07:31.520] sending messages back and forth and exploit some of our some of the things we found. So then we [07:31.520 --> 07:37.000] needed still needed to get the firmware off of it. We saw that there was a flash memory chip of the [07:37.000 --> 07:44.380] model on the slide. We tried some software utilities and they only gave us bad data. So then we got this [07:44.380 --> 07:51.060] Salie logic analyzer and then it just worked. We just hooked it up, we fired up their software, we [07:51.060 --> 07:56.780] turned the router on, we got all of the SPI data straight to their software and then we could just [07:56.780 --> 08:01.380] decode it and there was the binary and we extracted the firmware and then we had everything that was [08:01.380 --> 08:06.860] on the router just like that. We spent about a month getting to this point trying all sorts of [08:06.860 --> 08:11.380] different stuff and like literally it took us about two hours and then we had everything on it [08:11.380 --> 08:20.080] the moment we plugged this in. So this is just a look at what that SPI data looked like in the [08:20.080 --> 08:26.360] software. It was super easy once we had it. We have a more technical deep dive on exactly what [08:26.360 --> 08:33.520] that is and the Python scripts we use to translate this into the binary on the GitHub. Yep, so check [08:33.520 --> 08:38.820] out the GitHub if you want to see more about how that's done. At this point we had the firmware, we [08:38.820 --> 08:44.600] had accomplished goal number one, now we wanted to look for vulnerabilities and establish a shell. [08:44.600 --> 08:49.500] So before you start looking for vulnerabilities it's usually a good idea to figure out how to [08:49.500 --> 08:57.140] emulate the firmware on your own machine. This specific device had a 32-bit little endian MIPS [08:57.140 --> 09:03.180] processor so that's what all the the binaries were compiled to be using. Most of us have x86 [09:03.180 --> 09:07.820] or even ARM machines and so that's not something that we can run natively so we decided to use [09:07.820 --> 09:14.320] QEMU which was statically compiled along with chroot and some precise GDB breakpoints that we [09:14.320 --> 09:19.400] had figured out after some reverse engineering in Ghidra in order to actually emulate the firmware [09:19.400 --> 09:24.560] and get it running on one of our machines. This makes it significantly easier to fuzz for [09:24.560 --> 09:31.320] vulnerabilities, to test things out, to create exploits once you find a vulnerability. In addition [09:31.320 --> 09:36.780] we wanted the ability to compile our own executables that we can place on the device [09:36.780 --> 09:41.500] and run them because a lot of these embedded devices do not have the executables that you [09:41.500 --> 09:46.940] would like to have on there, for example Netcat or whatnot. This one didn't even have WhoAmI [09:47.480 --> 09:54.100] and so we wanted to be able to create our own stuff. Now this device used UCLibc as its libc [09:54.100 --> 10:00.220] library. UCLibc was actually pretty much discontinued or unmaintained since 2012 [10:00.220 --> 10:07.560] and so someone created a fork called it UCLibc-NG or next generation and so that is what we used [10:07.560 --> 10:12.760] along with Buildroot to build a toolchain so that we could compile our own executables. It worked [10:13.340 --> 10:18.240] for the most part, not all the time. The Bindshell that we had created and used for [10:18.240 --> 10:23.900] one of our exploits worked just fine. We were able to compile GDB server but every time we [10:23.900 --> 10:29.120] tried to connect to it remotely it kept segfaulting. It could be because we're using [10:29.120 --> 10:34.680] UCLibc-NG. It could just be a skill issue on our part. I'm not sure. Something happened there. [10:35.480 --> 10:40.960] This is what it looks like when you actually have it emulated. So like I said we're using chroot [10:40.960 --> 10:47.100] to mount the file system so that the executable can find the libraries that it's looking for [10:47.100 --> 10:52.860] at the hardcoded path that it has. Then we have a statically compiled QEMU which runs it. [10:52.860 --> 10:58.360] Now you can see a "-g1234". If you're not super familiar with QEMU or GDB, [10:58.360 --> 11:05.360] this opens up a remote debugging session on the local port 1234. Which means on a separate [11:05.360 --> 11:12.540] terminal than what you see here, you can open up GDB server or GDB multi-arch and then connect [11:12.540 --> 11:17.920] to that local port and now you're running the firmware here but you can debug it with your [11:17.920 --> 11:23.180] own GDB setup in another terminal. And then because this one opens up a socket and expects [11:23.180 --> 11:29.060] communication, you have to open up a third terminal to actually send data to this service. [11:29.060 --> 11:32.860] We got all that figured out. Again more details are in the GitHub repo if you would like to see [11:32.860 --> 11:39.960] how that's done. At this point we spent about a month and a half, approximately six weeks, [11:39.960 --> 11:45.300] looking for vulnerabilities in the VILO routers. Like we said the holy grail is pre-authentication [11:45.300 --> 11:51.540] RCE. We found nine vulnerabilities total in the the four months that we had for this project. [11:51.540 --> 11:56.620] Six of them were critical and three of them were medium. Out of those six critical vulnerabilities, [11:56.620 --> 12:01.520] four of them were pre-authentication buffer overflow vulnerabilities. Now we had only [12:01.520 --> 12:06.960] figured out how to exploit one of them because three of them were on a version of the firmware [12:06.960 --> 12:12.600] that had canaries enabled for that and so we weren't actually able to overwrite the instruction [12:12.600 --> 12:19.220] pointer and execute our own code, except for one of them we were able to. And while we were working [12:19.220 --> 12:24.800] on trying to develop exploits, see if we can get past these mitigations, we accidentally discovered [12:25.000 --> 12:30.100] a blind authenticated command injection. Now we're going to go over three specific vulnerabilities, [12:30.100 --> 12:35.500] the ones we found most entertaining for you guys today. I also want to note most of these bugs are [12:35.500 --> 12:41.300] present in the service, the custom service running on port 5432 that we talked a little bit about. [12:42.360 --> 12:46.820] These are the vulnerabilities up here. So you can see the four buffer overflows are at the top. [12:46.820 --> 12:51.400] They're all 9.6 criticals. There was an info leak and some lack of authentication. [12:51.680 --> 12:56.100] We have reserved CVE numbers through MITRE. They're not published yet since we just published [12:56.100 --> 13:01.200] our public repo earlier today, but we have reserved the numbers and they're in the same order that you [13:01.200 --> 13:08.840] see up here. Okay, the first vulnerability that I want to talk about today is the lack of authentication [13:08.840 --> 13:14.980] in this custom service. So as my team member said, most of the communications from the app [13:14.980 --> 13:21.340] to the router went through AWS, except if you're not connected to the internet, [13:21.340 --> 13:25.900] you need some way to set it up. So that goes through this service. The thing is, [13:25.900 --> 13:29.840] because it has hard-coded keys and there's really no authentication inside of it, [13:29.840 --> 13:37.260] anyone that is on the LAN and knows how to speak this protocol can control the router, [13:37.260 --> 13:41.600] pretty much. So anything that you can do, they can do. For example, you invite a friend over, [13:41.600 --> 13:46.140] give them the Wi-Fi password, they're now on the Wi-Fi, they can control the router the same way [13:46.140 --> 13:51.960] that you can. They can see and change your SSID, your password, PPPoE, username and password, [13:51.960 --> 13:56.600] they can reboot it, they can even exploit all of these vulnerabilities. That was very useful [13:56.600 --> 14:02.740] for us because then a lot of the buffer overflows that we found became unauthenticated RCE [14:02.740 --> 14:07.380] vulnerabilities and not authenticated RCE vulnerabilities. The other important thing to [14:07.380 --> 14:13.700] note is while this service was used for initial setup when the router didn't have internet access, [14:13.700 --> 14:19.300] it stayed up the whole time that the router was on, even if it did. So it was just always [14:19.300 --> 14:26.640] available no matter what. So we first found the first buffer overflow in this local app set router [14:26.640 --> 14:31.720] token function. We talked about how there are different messages that are differentiated by [14:31.720 --> 14:39.720] opcodes. So the opcode 0x3e updates a token and a time zone using an encrypted JSON object. [14:39.720 --> 14:43.860] Encryption coming from this weird XXT and obfuscation that we talked about. [14:44.040 --> 14:49.780] If you are familiar with C and memory corruption, you'll see this sscanf function immediately will [14:49.780 --> 14:56.360] stand out to you because it takes the token and pulls it into a fixed length buffer token, [14:56.360 --> 15:01.080] but it doesn't check the length of the string. So if token is, for example, only 16 bytes and [15:01.080 --> 15:06.280] you send a token that is 20 bytes, you now have a four byte overflow. Pretty obvious. [15:06.300 --> 15:10.620] So our next goal was, how can we actually exploit this? We don't want to just say, [15:10.620 --> 15:14.140] oh, this is a vulnerability. We want to prove impact. Plus it's kind of fun doing this. [15:15.280 --> 15:20.680] For mitigations, pi and canaries were disabled. Or at least that's what we thought. We had later [15:20.680 --> 15:26.040] learned that in the latest version of the firmware, canaries were enabled and this ended up [15:26.040 --> 15:29.820] not being exploitable, but we didn't know that we were dealing with an older version of the [15:29.820 --> 15:35.100] firmware. It was the newest one that we could get our hands on, but it still wasn't the latest one. [15:35.460 --> 15:39.620] So we were trying to figure out, how can we exploit this? We just have a generic buffer [15:39.620 --> 15:46.580] overflow vulnerability. If you're into binary exploitation, ROP probably comes to mind. ROP [15:46.580 --> 15:51.560] is a little bit difficult in MIPS because it doesn't have a return instruction. Yeah, [15:51.560 --> 15:56.520] you can still kind of get it, but it makes it significantly more difficult. As a side note, [15:57.160 --> 16:01.020] based off of what we had to do here, I decided to make a CTF challenge [16:01.020 --> 16:07.300] with very, very similar conditions that I wrote myself. We released it as a part of BYU CTF 2024. [16:07.660 --> 16:10.920] If you would like to do that yourself, give yourself a challenge, you can look it up. [16:10.940 --> 16:19.900] It's available on GitHub. So how do we exploit this? Well, we wanted to find kind of a one-shot [16:19.900 --> 16:23.520] gadget where we could just return there and then it would do everything for us and we didn't have [16:23.520 --> 16:29.400] to chain multiple gadgets together. Because of the overflow, we could control the RA register or [16:29.400 --> 16:34.960] the return address register and the S8 register, which is pretty much the stack pointer. So we [16:34.960 --> 16:41.600] figured if we can control S8 and point it to a user-controlled bash command and then set the [16:41.600 --> 16:47.500] instruction pointer to go to this gadget, win, right? You profit. ASLR is enabled, so we can't [16:47.500 --> 16:53.000] use stack values. But because PI is disabled, we know where all the global variables are. [16:53.000 --> 16:57.740] So we started looking through to see what global variables can we control that we can easily put [16:57.740 --> 17:04.560] our own command inside of it. So us being the intelligent people that we are, decided to put a [17:04.560 --> 17:09.540] semicolon reboot semicolon in there. We ran it and nothing happened. So we rebooted it just to make [17:09.540 --> 17:15.200] sure that we hadn't messed anything up and we ended up messing something up by doing that. [17:15.200 --> 17:19.880] The router just kept rebooting and it never actually got online. Turns out there's an [17:20.860 --> 17:24.360] authenticated command injection vulnerability that Ava will now go over. [17:25.220 --> 17:29.800] So after we found our accidental command injection vulnerability, we went back to find the code that [17:29.800 --> 17:35.740] was responsible for this. So we ended up finding it in the sysconf binary, which is run on boot. [17:35.900 --> 17:41.180] So as you can see here, it formats a UDHCPC bash command with several variables, [17:41.180 --> 17:46.260] including the router host name. And then it pipes that directly into the system function. [17:47.680 --> 17:54.100] And so because we can control the router host name through the viral app, we can get arbitrary [17:54.100 --> 17:59.020] RCE by just setting that host name to a bash command. So we can verify that this command [17:59.020 --> 18:04.000] actually has been run by looking at the boot output, which you can see here on the right. [18:04.000 --> 18:09.000] You can see the output of that command right there. We got this output from the UR interface [18:09.000 --> 18:14.240] that we had connected to initially. So there are a few limitations with this exploit, [18:14.240 --> 18:19.020] namely that the injected command is run only once on booting the router, as well as that the router [18:19.020 --> 18:26.060] host name is limited to a length of 30 characters. So as a result, we had to write our payload into [18:26.060 --> 18:31.300] several 30-byte sections, which what we ended up doing with that is write a script to the [18:31.300 --> 18:36.020] slash folly directory, which is one of the few directories that is both writable and persistent [18:36.020 --> 18:42.280] on the router. And so we wrote a script that itself then downloads a longer script from the [18:42.280 --> 18:49.720] using wget and runs that. Now, we also found that the router does not have an internet connection [18:49.720 --> 18:55.560] at the time of running the injected command. So we had to make our script or our payload wait [18:55.560 --> 19:03.080] 20 seconds before running our first script. So after we wrote our first payload, it then downloads [19:03.080 --> 19:09.300] and executes a second payload, which itself then downloads and executes a compiled cbind shell, [19:09.300 --> 19:14.240] which we can connect to via netcat. And so through this bind shell, we were able to gain our first [19:14.240 --> 19:19.800] shell on the router. So as you can see here, we're able to netcat into the router and find that we [19:19.800 --> 19:31.680] have gained a shell as the root user. Okay, so once April had come around, we had reached our [19:31.680 --> 19:35.980] four months, it was the end of the semester, we had to wrap up the project and we decided, [19:35.980 --> 19:39.740] you know, let's reach out to the vendor, try and get in contact, send them the details for [19:39.740 --> 19:44.320] the vulnerabilities, let's see if we can get this patched. It was actually pretty much like it was [19:44.800 --> 19:49.340] a pretty big pain to get in contact with them. They had an email address listed in their terms [19:49.340 --> 19:53.660] of service, but it didn't exist, it just bounced back. We reached out to a couple other email [19:53.660 --> 19:58.520] addresses on their website, we tried to guess the email addresses, none of that worked. We reached [19:58.520 --> 20:03.420] out over social media, they have YouTube, they have I think Facebook, maybe an Instagram, we [20:03.420 --> 20:08.160] didn't hear back from that. We filed a couple support tickets and eventually we got a response [20:08.160 --> 20:13.880] from them. They put us in contact with the actual developers and the developers said, hey, [20:13.880 --> 20:18.420] thank you for sending us this, we'll take a look at it, we'll get back to you on it. [20:19.340 --> 20:24.100] This is the overall timeline of what we did, so we started the project in January, [20:24.100 --> 20:30.080] we finished it up in early April, we reached out to them, and it took us a month before we actually [20:30.080 --> 20:34.320] got in contact, and we said, hey, here are the details for these nine vulnerabilities, [20:34.320 --> 20:38.360] we are giving you a 90-day deadline, we are happy to help if you have any questions, [20:38.360 --> 20:43.740] if you want us to elaborate, et cetera. We followed up a month later, didn't hear anything, [20:43.740 --> 20:47.600] followed up two weeks after that, we didn't hear anything, and as we had told them, [20:47.600 --> 20:52.500] we went ahead and filed CVE numbers from MITRE, we followed up two weeks later, and they said, [20:52.500 --> 20:56.560] we're working on it, we'll publish something pretty soon here, we'll get it out to you. [20:56.820 --> 21:01.380] So the 90-day disclosure deadline was a couple days ago, we timed this for our talk today, [21:01.380 --> 21:06.680] and the vendors actually reached out to us like the day before we left here for DEF CON and said, [21:06.680 --> 21:11.440] hey, we've pushed a new firmware update, can you check that, and we said, yes, just not right now. [21:11.440 --> 21:15.360] We haven't looked at it yet, we'll take a look at that there, but they have been [21:15.360 --> 21:18.440] somewhat responsive after we finally got in contact with them. [21:20.160 --> 21:25.920] Just a quick conclusion, we expected it to be a lot easier to get started, [21:25.920 --> 21:30.120] to get the firmware to find the initial vulnerability and get that initial root [21:30.120 --> 21:34.700] shell, it took us two months to get to that point, so we were a little surprised about that, [21:34.700 --> 21:39.040] that's also probably attributed to the lack of experience on our part, [21:39.040 --> 21:43.880] but then once we got in and we got the firmware, we were able to find a lot of bugs and not a lot [21:43.880 --> 21:48.820] of time, and we only looked at a very, very small portion of the attack surface, [21:48.820 --> 21:52.400] there is still a lot more space for bugs. If that's something that you're interested in looking [21:52.400 --> 21:56.760] for, go to the GitHub repo, you'll notice that there are holes in the documentation that we just [21:56.760 --> 22:03.760] didn't have time to fill in, and we've hacked into a couple other devices since then, and we found [22:03.760 --> 22:10.060] that the cheaper, lower quality devices, hacking them is very, very similar. IoT and embedded [22:10.060 --> 22:17.180] products still have a long, long way to go when it comes to security. So this is the QR code, [22:17.180 --> 22:20.540] if you want to go ahead and go to the GitHub repo and look at the details, [22:20.540 --> 22:26.240] if you would like to connect with us on LinkedIn, we also have our links up here, [22:26.920 --> 22:41.640] what time are we at? 53. Are there any questions? Yes. Yeah, feel free, come on up. [22:44.330 --> 22:49.570] I did not expect that. [22:58.470 --> 23:07.130] Sorry, can you repeat that? He said, like, what method do we use to find the vulnerabilities? [23:07.130 --> 23:13.150] Okay, so the question was, what method did you use to find the vulnerabilities? Was it fuzzing? [23:13.150 --> 23:19.710] Was it manual code analysis? We did not use any fuzzing. Fuzzing is a little bit more difficult, [23:19.710 --> 23:23.750] it's not impossible, but it's a little bit more difficult when you have a closed source binary. [23:23.930 --> 23:28.650] Normally you would compile source code with some sort of sanitizer and then fuzz it from there, [23:28.650 --> 23:32.730] but because it was closed source, and it was MIPS, and we're not super experienced with fuzzing, [23:32.730 --> 23:38.170] we went the manual route. So we just searched through the code by hand in Ghidra, decompiling [23:38.170 --> 23:49.400] it to find it. Thank you. Other questions? Going once, going twice. Yes, right here. [23:51.020 --> 23:52.300] Yeah, feel free to come up. [23:58.600 --> 24:02.880] And if you could speak that protocol, you could do basically any router administration. [24:02.960 --> 24:08.000] Could you not set the hostname of the router from there and trigger a reboot and make that [24:08.000 --> 24:13.340] authenticated hostname injection, hostname command injection to an unauthenticated injection because [24:13.340 --> 24:21.660] there's no credentials from that path? Perfect. So the question was, like, since that... [24:21.660 --> 24:27.820] how would you say that? Since the local service is unauthenticated, the question was about, [24:27.820 --> 24:33.420] can we use that to turn the router hostname injection to an unauthenticated command injection? [24:33.620 --> 24:38.080] I think the answer to that is no, kind of. At least not that we know of. Not that we know of, [24:38.080 --> 24:42.480] because the router hostname, the process of setting that actually goes through AWS. [24:42.800 --> 24:47.240] And so that was one area that we didn't have a lot of time to explore. There are some keys [24:47.240 --> 24:51.640] associated with logging into that AWS service, which it's possible that those itself are [24:51.640 --> 24:56.820] vulnerable in some way, but simply having access to the local service is not enough to set the [24:56.820 --> 25:02.880] router hostname. Yeah, so a large part of the mobile app was just dealing with the AWS API. [25:02.960 --> 25:06.660] We didn't have a whole lot of time to go through that. So it may be possible, but from what we had [25:06.660 --> 25:10.520] seen, we could only do that if you were authenticated, if you already had the app set up [25:10.520 --> 25:41.110] with the router. Thank you. I think we got one back there. So the question was, for someone who [25:41.110 --> 25:46.090] is new to hardware hacking and new to vulnerability research, do you think following these steps would [25:46.090 --> 25:50.350] be good to learn some hardware hacking and do you think springboarding off of the research that [25:50.350 --> 25:55.570] we've done would be a good way to get started? First off, I'm still kind of a noob, so I don't [25:55.570 --> 26:01.550] know that I have the best advice, but I would say this is something that you definitely can do for [26:01.550 --> 26:06.190] hardware hacking. This was kind of my first exposure to it. And I learned a lot. There's a lot [26:06.190 --> 26:11.130] of resources out there. DEF CON has their hardware hacking village. I think reproducing these steps [26:11.130 --> 26:16.630] and going through it would be very, very helpful. We do have some extensive write-ups specifically [26:16.630 --> 26:20.870] on the hardware part. We spent more time documenting that because it was newer for us, [26:20.870 --> 26:27.990] so hopefully it's helpful. As for finding CVEs, if you want to find CVEs and IoT devices, this is [26:27.990 --> 26:32.530] probably the easiest way to do it. It does take a little bit of knowledge when it comes to memory [26:32.530 --> 26:36.710] corruption and whatnot, but if you have an introduction to C and assembly and memory [26:36.710 --> 26:40.670] corruption and you want to find your own, it's just a matter of looking through the code. There [26:40.670 --> 26:45.310] is just so much code that we haven't even gone through. So I would absolutely recommend that. [26:45.310 --> 27:00.780] Yes. Any other questions? Yes. Okay, so the question is, how do you get future firmware [27:00.780 --> 27:06.980] updates? So this is kind of a tricky question. We looked into it a little bit. Initially, there was [27:06.980 --> 27:12.040] an API endpoint, just an HTTP web server, where you were able to say, hey, what is the latest [27:12.040 --> 27:17.820] firmware? Can you give me a link to it? The thing is, it didn't actually give you the latest firmware. [27:17.820 --> 27:22.620] We talked about one of the buffer overflows that we tried to exploit that did not have stack canaries. [27:22.640 --> 27:26.060] We thought that was the latest firmware version because we got it from that endpoint [27:26.620 --> 27:32.660] pretty early on in the process. But the actual device had later firmware that I think it gets [27:32.660 --> 27:42.280] through the AWS IoT. It uses encrypted MQTT communications, and so somehow it gets the [27:42.280 --> 27:47.400] update from that. We have not fully reverse engineered that process. We don't know how it is, [27:47.400 --> 27:54.860] but it is somewhere within the AWS MQTT sort of set up in there. Other questions? [27:57.280 --> 28:03.620] Going once. Going twice. All right. Thank you for coming to our talk. We appreciate it.