[00:02.190 --> 00:05.350] Hello, hello, hello. Yeah, so this talk, just to kind of [00:05.350 --> 00:08.270] lightly introduce it, is kind of a two-series talk. [00:08.730 --> 00:11.830] So the first part of this talk is, uh, a few years ago [00:11.830 --> 00:13.590] my modem gets hacked, and the second part of this talk [00:13.590 --> 00:15.550] is, like, actually going and hacking the ISP. [00:15.610 --> 00:17.610] So there's, like, a bit of a break in the mid part of it. [00:18.830 --> 00:20.410] Yeah, as people kind of filter in just a little bit, [00:20.410 --> 00:21.530] we'll go ahead and kick it off. [00:23.230 --> 00:25.390] We still have three minutes, so we're a little early. [00:30.420 --> 00:32.020] What's the deal with airline food? [00:40.280 --> 00:42.320] Yeah, so Southwest is doing assigned seating now, [00:42.320 --> 00:44.500] which is kind of, I don't know, how do you guys feel about that? [00:50.610 --> 00:52.110] Cool, so I think most people kind of came in, [00:52.110 --> 00:53.250] so we'll go ahead and just kick it off. [00:54.590 --> 00:56.290] So it's, like, a really quick who am I. [00:56.850 --> 00:59.030] My background's just, like, really heavy in, like, web security. [00:59.030 --> 01:00.510] It's, like, my one thing I'm, like, really, really serious, [01:00.510 --> 01:04.150] like, love about. So all my passion, like, last, like, six years [01:04.150 --> 01:05.830] is just, like, nonstop, like, bug bounty consulting [01:05.830 --> 01:07.570] and, like, kind of web sec research. [01:07.570 --> 01:09.570] One thing I'm really proud of is, like, the Port Swigger [01:09.570 --> 01:11.810] top ten web hacking techniques. We've kind of hit that, like, [01:11.810 --> 01:13.550] every year for some sort of research. [01:14.010 --> 01:16.330] But, yeah, some kind of thanks here at the bottom, [01:16.330 --> 01:18.710] just to a lot of people who have, over the last few years, [01:18.710 --> 01:21.450] like, really helped with running, like, blog posts, [01:21.450 --> 01:23.170] doing, like, really good research, and just kind of helping [01:23.170 --> 01:25.130] with any questions. Specifically, yeah, [01:25.130 --> 01:28.750] Justin Reinhart, Alden, Phillip, Brett, Ian, Nathaniel, Mike, [01:28.750 --> 01:30.550] Shubs, Joel, and William, thank you. [01:37.390 --> 01:39.690] Yeah, so our story begins in 2022. [01:39.850 --> 01:42.530] And in 2022, I was on a pen test, [01:42.530 --> 01:44.370] and I was kind of working from my home network. [01:44.590 --> 01:46.870] And when I was working on this pen test, I had to spin up a box, [01:46.870 --> 01:50.010] like on AWS, to log requests for an HTTP server [01:50.010 --> 01:51.550] for an XXE vulnerability. [01:52.070 --> 01:54.770] So when I was doing it, I sent, like, a test request [01:54.770 --> 01:57.570] from my home network to see if that web server was live. [01:57.670 --> 02:00.250] And when I sent hello, everything worked expectedly. [02:00.410 --> 02:02.250] There was, you know, git slash hello in the log file, [02:02.250 --> 02:03.370] and everything was good to go. [02:03.670 --> 02:06.050] But just a few minutes later, after I tabbed back into the screen, [02:06.050 --> 02:08.090] I saw this really, really weird IP address [02:08.090 --> 02:11.170] that had replayed the exact same HTTP request that I had sent. [02:11.170 --> 02:12.630] And this was kind of freaky to me, [02:12.630 --> 02:14.950] because I just spun up this AWS account, [02:14.950 --> 02:17.410] and it probably meant my computer had been hacked. [02:17.710 --> 02:19.610] But, like, in order to actually research it, [02:19.610 --> 02:21.870] I kind of pulled up other devices on my network. [02:21.870 --> 02:24.290] So I loaded it from my phone, my laptop, [02:24.290 --> 02:27.170] even the smart TV in my, like, guest bedroom, [02:27.170 --> 02:30.250] and then the, uh, everything was, like, [02:30.250 --> 02:32.430] resending the exact same HTTP request. [02:32.690 --> 02:37.230] So my network had been compromised somewhere along the kind of flow. [02:37.270 --> 02:38.870] And I assumed it was my modem, because, you know, [02:38.870 --> 02:40.190] that's, like, the easiest thing to pop. [02:40.190 --> 02:42.630] But I really didn't know at the time, so I was just really curious. [02:43.850 --> 02:45.710] So part one of this is just really quick, [02:45.710 --> 02:46.990] who hacked my modem, right? [02:47.470 --> 02:50.730] And the IP resolves to, like, this weird DigitalOcean IP. [02:50.910 --> 02:52.570] And the reason I say it's weird is because [02:52.970 --> 02:54.730] if you look at the history of the IP, [02:54.730 --> 02:57.490] there's all these, like, really weird ops that it does, right? [02:57.570 --> 02:59.050] So there's, like, these phishing domains, [02:59.050 --> 03:01.870] and, like, this really weird domain format they've done. [03:01.870 --> 03:03.650] So at one point in time, [03:03.650 --> 03:05.510] the IP address pinged back to all these different domains [03:05.510 --> 03:06.870] as, like, a host provider. [03:06.870 --> 03:09.370] So, for me, it's weird, because it's, like, [03:09.370 --> 03:12.270] you know, if you hack me, you're gonna run, like, C2 from that IP. [03:12.490 --> 03:15.750] But these domains are, like, websites with, like, you know, [03:15.750 --> 03:18.190] uh, beef and, like, hook.js, right? [03:18.190 --> 03:20.010] And, like, so they're doing, like, targeted phishing campaigns [03:20.010 --> 03:21.050] against these websites. [03:21.150 --> 03:22.170] And it was really weird. [03:22.170 --> 03:24.350] And one of the websites, uh, was... [03:24.350 --> 03:26.070] I'll go forward, I think, a little bit. [03:26.070 --> 03:27.490] Oh, maybe I deleted the slide, but... [03:27.490 --> 03:28.850] ISG LATAM, right? [03:28.870 --> 03:32.230] And ISG LATAM is, like, this South American cybersecurity company. [03:32.470 --> 03:34.930] So it's really weird that, like, this IP address [03:34.930 --> 03:37.930] was, like, also hacking this South American cybersecurity company. [03:37.930 --> 03:39.510] So I was, like, super intrigued, right? [03:39.610 --> 03:42.250] Because, like, you know, if one person pops here to, like, [03:42.250 --> 03:43.870] hit somebody offline on, like, a botnet or something, [03:43.870 --> 03:44.830] it's, like, oh, that's cool. [03:44.830 --> 03:48.170] But, like, who is, like, hacking South American cybersecurity companies [03:48.170 --> 03:50.370] but also, like, random modems? [03:50.430 --> 03:51.570] I was really curious. [03:52.310 --> 03:54.950] And something that, uh, a few friends, Phillip and Alden [03:54.950 --> 03:56.570] and Justin helped me with later on is, like, [03:56.570 --> 03:59.010] we looked into it and we realized that, like, [03:59.010 --> 04:01.670] at one point in time, this really weird, uh, [04:01.670 --> 04:04.250] DGA, or, like, Domain Generation Algorithm domains [04:04.250 --> 04:05.870] were pointed at the IP address. [04:06.010 --> 04:07.230] So they had, like, this really weird format [04:07.230 --> 04:08.830] and there was, like, thousands of these domains [04:08.830 --> 04:11.810] that somebody had bought and, like, rotated for this malware. [04:12.110 --> 04:13.390] So whoever had hacked the modem was, like, [04:13.390 --> 04:15.750] doing this really sophisticated thing but also, like, [04:15.750 --> 04:17.530] doing, like, normal human ops where they're, like, [04:17.530 --> 04:18.590] running phishing sites. [04:18.610 --> 04:21.910] And this is all just kind of from, like, historical, uh, [04:21.910 --> 04:23.290] history of that IP address. [04:23.290 --> 04:25.590] So I was, like, okay, very, very strange. [04:27.010 --> 04:29.950] So I tried some tricks with this, right? [04:30.510 --> 04:31.770] I kind of thought, like, okay, [04:31.770 --> 04:34.490] if this person has, like, planted malware on my device [04:34.490 --> 04:36.170] and, like, they're somewhere in between, [04:36.170 --> 04:38.190] maybe we could, like, command inject the curl request [04:38.190 --> 04:38.930] that they're sending. [04:39.470 --> 04:40.390] Because it's really weird, right? [04:40.390 --> 04:42.590] Like, if you're passively monitoring someone's traffic, [04:42.590 --> 04:44.030] it's, like, that's one thing, but, like, [04:44.030 --> 04:46.550] replaying the HTTP request is really bizarre, right? [04:46.650 --> 04:48.090] Like, the only thing I think is, like, [04:48.090 --> 04:50.050] if they've, like, built a SAS dashboard [04:50.050 --> 04:52.390] for, like, their hacked devices and they're, like, [04:52.390 --> 04:54.310] taking screenshots or something, I don't know. [04:54.310 --> 04:56.710] It was really weird, but no luck here. [04:56.710 --> 04:58.490] Like, we couldn't figure out any redirect [04:58.490 --> 05:00.190] or, like, finding some way to control [05:00.190 --> 05:01.590] that malicious IP address. [05:03.030 --> 05:05.390] Yeah, so Cox Communications is the name of the ISP. [05:05.770 --> 05:07.930] And we, uh, took the device. [05:07.930 --> 05:09.330] I took it back to the store, and I was, like, [05:09.330 --> 05:11.370] hey, you know, like, I think my device is hacked. [05:11.370 --> 05:14.110] I want to keep it, but I want to get, like, a second modem. [05:14.210 --> 05:16.590] And they're, like, yeah, you actually rent that device. [05:16.590 --> 05:17.610] You have to give it to us. [05:17.770 --> 05:19.890] So the dude just took it, and I was really sad. [05:19.890 --> 05:21.750] Because, like, at that point in time, [05:21.750 --> 05:23.450] like, there's nothing you can really do, you know? [05:23.450 --> 05:25.490] Like, the actual compromised device is gone. [05:25.870 --> 05:29.290] So, really sadly, you know, two years later, [05:30.210 --> 05:32.670] no device, but I was helping a buddy move. [05:32.890 --> 05:34.310] And this little guy is me on the phone. [05:34.790 --> 05:36.930] And, uh, my buddy, he was setting up his modem [05:36.930 --> 05:38.090] at, like, a new house, right? [05:38.250 --> 05:39.570] And I called the tech support. [05:39.570 --> 05:40.530] I'm, like, yo, you know, like, [05:40.530 --> 05:42.810] we need to get this new device hooked on fiber. [05:42.810 --> 05:43.690] How does that work? [05:43.730 --> 05:45.210] Like, can you do it for me? [05:45.410 --> 05:46.710] And the dude on the phone is just, like, [05:46.710 --> 05:48.690] yeah, you know, like, we can hook you up to fiber [05:48.690 --> 05:49.990] and, like, do everything remotely. [05:49.990 --> 05:51.810] And I was, like, whoa, that's, like, really interesting. [05:51.810 --> 05:53.990] You can manage, like, more than just, like, [05:53.990 --> 05:55.170] Wi-Fi password or whatever. [05:55.670 --> 05:57.090] And I looked into a little bit of, like, [05:57.090 --> 05:58.950] how the ISP tech support actually does it. [05:58.950 --> 06:00.090] And there's this protocol that, like, [06:00.110 --> 06:01.190] a lot of people are probably familiar with [06:01.190 --> 06:03.790] called TR-69 or TR-069. [06:03.950 --> 06:05.590] And this protocol is, like, super researched. [06:05.590 --> 06:07.530] There's actually a few really cool DEF CON talks about it [06:07.530 --> 06:09.990] where people have actually popped the protocol itself. [06:09.990 --> 06:11.230] But the thing that's really interesting to me [06:11.230 --> 06:14.150] is that, like, this protocol isn't accessible [06:14.150 --> 06:15.550] from the internet, right? [06:15.550 --> 06:17.350] And I wasn't externally exposing this protocol, [06:17.350 --> 06:19.450] so, like, I probably wasn't hacked like this. [06:19.570 --> 06:21.910] However, there exists this really cool, like, [06:21.910 --> 06:23.710] API or some sort of functionality [06:23.710 --> 06:26.530] between the call center and the ACS. [06:26.530 --> 06:29.470] So, if you're, like, a tech support person, [06:29.470 --> 06:30.730] there's probably some, like, internal API [06:30.730 --> 06:32.710] that they've built to, like, manage a device. [06:33.190 --> 06:35.630] And I was really curious, like, what exists there? [06:35.630 --> 06:36.970] And, like, can we look into it? [06:37.730 --> 06:39.590] So this kind of kicks off part two, right? [06:39.590 --> 06:40.990] The hacking millions of modems. [06:41.470 --> 06:44.050] And so, again, I kind of had a thought here [06:44.050 --> 06:46.170] where it's, like, okay, if I wanted to, like, [06:46.170 --> 06:47.910] hack my modem and I wanted to do it [06:47.910 --> 06:50.470] through this, like, weird, like, process [06:50.470 --> 06:52.530] of going through the ISP because, you know, [06:52.530 --> 06:54.090] in that way, like, you've got, like, [06:54.090 --> 06:55.510] so much more exposed and there's such a rich [06:55.510 --> 06:56.990] attack surface where, like, if you pop [06:56.990 --> 06:59.330] the support agent, I was, like, well, [06:59.330 --> 07:00.890] the business portal is, like, the second [07:00.890 --> 07:03.130] best thing to the actual tech support [07:03.130 --> 07:04.150] portal that they're using. [07:04.210 --> 07:05.790] If you have, like, a residential customer [07:05.790 --> 07:07.290] account, it's, like, okay, you can, like, [07:07.290 --> 07:09.130] reset your device and it's pretty boring, [07:09.130 --> 07:10.910] right? Like, but the business side of [07:10.910 --> 07:12.430] things, it's, like, manage VLAN, manage [07:12.430 --> 07:14.930] security group, manage everything, right? [07:15.290 --> 07:17.190] So I kind of looked into it and I didn't [07:17.190 --> 07:18.810] have an account, so I was just, like, [07:18.810 --> 07:20.350] pilfering the JavaScript like a beggar, [07:20.350 --> 07:22.010] you know? I was grabbing all these endpoints [07:22.010 --> 07:25.950] and, uh, there's this whole, like, API [07:25.950 --> 07:28.470] CBMA format. So, like, every single API [07:28.470 --> 07:29.990] call for the Cox business site was [07:29.990 --> 07:32.890] prefixed with this, like, API CBMA and I [07:32.890 --> 07:35.390] thought this was really cool because, like, [07:35.390 --> 07:36.550] I did a lot of research on, like, you [07:36.550 --> 07:38.910] know, reverse proxies and stuff and, like, [07:38.910 --> 07:40.630] API CBMA was behaving, like, so much [07:40.630 --> 07:42.030] differently than, like, any other request [07:42.030 --> 07:43.390] on the site, so I thought, like, you know, [07:43.390 --> 07:45.010] there's a chance that that's some, like, [07:45.010 --> 07:46.390] internal API that we can kind of dig [07:46.390 --> 07:48.610] into. So I started playing with it a bit [07:48.610 --> 07:49.630] and you can kind of see the format of [07:49.630 --> 07:51.870] this request here. If it's too small, it's [07:51.870 --> 07:53.010] basically just, like, a registration [07:53.010 --> 07:55.890] request. And with this request, there's a [07:55.890 --> 07:58.430] few headers, API key, client ID, and then [07:58.430 --> 08:00.790] just, like, the path itself, right? And it [08:00.790 --> 08:02.930] works really good, but one thing I was [08:02.930 --> 08:03.730] curious is, like, where are these [08:03.730 --> 08:07.190] endpoints actually at, right? So the [08:07.190 --> 08:08.170] really easy thing to do is just, like, [08:08.170 --> 08:10.170] look for, like, actuators or swagger [08:10.490 --> 08:11.930] files. And I was really stoked because, [08:11.930 --> 08:13.830] like, I couldn't find actuators, but I [08:13.830 --> 08:15.970] did find the swagger UI. But something [08:15.970 --> 08:18.150] kind of annoying for us, very sad face, [08:18.150 --> 08:21.030] right, is, like, the JavaScript and, like, [08:21.030 --> 08:22.750] every static resource on that page [08:22.750 --> 08:24.890] wasn't loading. And the reason this was [08:24.890 --> 08:26.950] happening is because the static [08:26.950 --> 08:29.870] resources, even though the API CBMA [08:29.870 --> 08:31.110] route was, like, proxying to that [08:31.110 --> 08:34.370] internal API, anything like .js, .css, [08:34.370 --> 08:36.910] .html was being normally sent to the [08:36.910 --> 08:38.390] front end web server as it was, like, a [08:38.390 --> 08:40.130] static resource. So in order to actually, [08:40.130 --> 08:42.010] like, load the resources from that [08:42.010 --> 08:44.370] backend server, if we just chucked in a [08:44.370 --> 08:46.350] %2F or, like, a slash at the end of it, [08:46.350 --> 08:47.710] it would actually still carry that [08:47.710 --> 08:49.550] request to that reverse proxy. And this [08:49.550 --> 08:50.650] was really fun for us because now it's [08:50.650 --> 08:52.370] just, like, happy face, right? We can [08:52.370 --> 08:54.830] load the swagger. Um, these reverse [08:54.830 --> 08:55.990] proxies are, like, super, super [08:55.990 --> 08:57.950] interesting and, like, a really good [08:57.950 --> 08:59.690] point of research, I think. But to kind [08:59.690 --> 09:01.870] of continue on a little bit, this [09:01.870 --> 09:04.030] swagger file had, like, 700 different [09:04.030 --> 09:06.030] routes, right? So to kind of go through [09:06.030 --> 09:07.410] each of these is, like, really [09:07.410 --> 09:08.870] interesting, but there's a few that were, [09:08.870 --> 09:10.470] like, really, really cool to me, right? [09:10.470 --> 09:11.730] Like, data internet gateway and, like, [09:11.730 --> 09:13.950] account equipment, right? Because even [09:13.950 --> 09:17.030] though, like, the site itself was just [09:17.030 --> 09:18.590] for, like, business management, it still [09:18.590 --> 09:19.590] seemed to have, like, a lot more [09:19.590 --> 09:21.230] functionality than, like, what needed to [09:21.230 --> 09:22.810] be exposed for that. So I assume maybe [09:22.810 --> 09:25.510] there's, like, some extra stuff here. So [09:25.970 --> 09:27.910] the easiest thing for us or for me to do [09:27.910 --> 09:29.390] here is just, like, chuck it in an [09:29.390 --> 09:30.670] intruder and, like, try to send a get [09:30.670 --> 09:31.910] request or, like, post request or [09:31.910 --> 09:34.930] whatever to these endpoints. And, um, I [09:34.930 --> 09:37.290] realize that very, like, kind of oddly, [09:37.290 --> 09:39.910] there's this pattern, right? And this [09:39.910 --> 09:41.650] pattern is strange because, like, instead [09:41.650 --> 09:44.190] of, like, categories of API endpoints, [09:44.190 --> 09:45.410] like, being unauthenticated or [09:45.410 --> 09:47.250] authenticated, it was just, like, a [09:47.250 --> 09:48.850] percentage of them, you know, and, like, [09:48.850 --> 09:50.530] there's nothing discernible about, like, [09:50.530 --> 09:51.950] which API endpoints were or weren't [09:51.950 --> 09:54.330] authenticated. And it was around, like, 50 [09:54.330 --> 09:55.970] percent gave you an authorization error, [09:55.970 --> 09:57.790] 35 percent bad requests, and, like, 15 [09:57.790 --> 09:59.490] percent were success. And it's, like, [09:59.490 --> 10:01.790] okay, you know, like, kind of strange as [10:01.790 --> 10:03.250] there's no pattern for, like, what is or [10:03.250 --> 10:05.390] isn't authenticated. So I kind of, I [10:05.390 --> 10:06.850] continued around a little bit and what I [10:06.850 --> 10:08.150] found was this endpoint that had [10:08.150 --> 10:10.530] originally returned 200, if I just kept [10:10.530 --> 10:12.370] sending it over and over again, it would [10:12.370 --> 10:13.390] give me, like, different authorization [10:13.390 --> 10:15.030] errors. So my immediate thought is, like, [10:15.030 --> 10:16.210] okay, there's, like, a weird load [10:16.210 --> 10:17.950] balancer here and, like, the [10:17.950 --> 10:19.310] authorization just seems, like, proper [10:19.310 --> 10:22.830] broken, right? So profile search, it looked [10:22.830 --> 10:25.110] like it took a parameter via the URI, so [10:25.110 --> 10:26.210] I went ahead and just, like, chucked in, [10:26.210 --> 10:27.450] like, a funny test string and I just [10:27.450 --> 10:32.650] wrote, like, FBI. And, uh, the results, [10:33.490 --> 10:35.410] it's, uh, like, it gave me just, like, 30 [10:35.410 --> 10:39.250] FBI field offices. And it was cool, too, [10:39.250 --> 10:41.050] because, uh, yeah, like, it had the [10:41.050 --> 10:42.410] address, so I could just Google and be, [10:42.410 --> 10:44.390] like, oh, like, that's, like, a proper, you [10:44.390 --> 10:46.190] know, customer. And at this point, it's, [10:46.190 --> 10:46.910] like, all right, we're going to start [10:46.910 --> 10:48.790] drafting the report, but we, you know, you [10:48.790 --> 10:50.070] Google a bit and you find the building, [10:50.070 --> 10:52.710] right? And for us, it's cool, it's, like, [10:52.710 --> 10:55.150] okay, like, clearly this API is a little [10:55.150 --> 10:57.090] broken, right? And you can access, like, [10:57.090 --> 10:58.910] some customer records, but, like, the [10:58.910 --> 10:59.890] thing that was really interesting for us, [10:59.890 --> 11:01.030] something I was curious, like, how do we [11:01.030 --> 11:03.370] access, like, device stuff, right? So I [11:03.370 --> 11:05.970] went back to that API and I found this [11:05.970 --> 11:07.910] really, really simple HTTP request in the [11:07.910 --> 11:09.710] API docs and it took a parameter called [11:09.710 --> 11:11.530] MAC address. So I went to the back of my [11:11.530 --> 11:13.230] modem and I took my MAC address from it [11:13.230 --> 11:15.010] and I just threw in this API and it [11:15.010 --> 11:18.110] returned my current IPV4 address. And [11:18.110 --> 11:19.370] this is really, really, really cool for [11:19.370 --> 11:21.410] us because as a residential customer [11:21.410 --> 11:23.550] accessing through, like, the business API, [11:23.550 --> 11:25.790] I'm able to hit my own device, right? So [11:25.790 --> 11:27.050] it confirms that there's, like, this [11:27.050 --> 11:29.290] ecosystem and I'm, like, being ported [11:29.290 --> 11:31.470] internally and can, like, actually hit my [11:31.470 --> 11:35.290] device. So really cool for us, you know, [11:35.290 --> 11:36.950] and it made me want to keep digging a [11:36.950 --> 11:40.250] little bit, right? So the second thing I [11:40.250 --> 11:41.910] did is, like, all right, how do I get [11:41.910 --> 11:43.310] someone else's MAC address? And there's [11:43.310 --> 11:44.890] this endpoint to retrieve, like, a user [11:44.890 --> 11:46.430] account via, like, email or you could [11:46.430 --> 11:47.750] just, like, search via, like, name or [11:47.750 --> 11:49.570] whatever. And it's going to return, like, [11:49.570 --> 11:50.690] the user ID of the account and then [11:50.690 --> 11:52.510] really simply you can just pull out the [11:52.510 --> 11:54.210] equipment on the account. So every [11:54.210 --> 11:56.270] single connected device, like iPhone, TV, [11:56.270 --> 11:57.610] whatever is connected to the internet, [11:57.610 --> 11:59.230] you could just pull here passively. [11:59.410 --> 12:00.690] There's no, like, triggers or, like, [12:00.690 --> 12:02.510] notifications to the account holder when [12:02.510 --> 12:04.230] you access this data. So it's really [12:04.230 --> 12:05.350] cool because it's just, like, oh, you [12:05.350 --> 12:07.250] know, my neighbor has, like, a new TV or [12:07.250 --> 12:12.170] something. Very nice. But cool, like, at [12:12.170 --> 12:13.910] this point it's, like, it's a pretty bad [12:13.910 --> 12:15.750] bug, but, like, you know, it's just, like, [12:15.750 --> 12:17.270] PII and, like, there's some interesting [12:17.270 --> 12:18.510] things. But, yeah, it's, like, how do we [12:18.510 --> 12:20.690] escalate this, right? There was a lot of, [12:20.690 --> 12:22.230] like, cool endpoints, like, voicemails, [12:22.230 --> 12:25.190] emails, things like that. Like, Cox is a [12:25.190 --> 12:26.630] pretty big, like, broadband provider and [12:26.630 --> 12:28.750] they do a bunch of different things. So [12:28.750 --> 12:30.010] the question we now have is, like, how do [12:30.010 --> 12:33.590] we actually update devices? So there's [12:33.590 --> 12:35.230] this parameter I kept saying called [12:35.230 --> 12:36.790] encrypted value, right? And encrypted [12:36.790 --> 12:38.450] value is kind of annoying because it's, [12:38.450 --> 12:40.370] like, as an unauthenticated user who [12:40.370 --> 12:41.410] can't actually use the app, it's, like, [12:41.410 --> 12:42.870] how do we figure out what this value is, [12:42.870 --> 12:45.070] right? And when we would query it, it [12:45.070 --> 12:46.570] would give this sort of sale error and [12:46.570 --> 12:47.970] the sale error was kind of weird because [12:47.970 --> 12:49.950] it's, like, I have no idea what sale is [12:49.950 --> 12:52.170] or kind of how it works. So I did some [12:52.170 --> 12:56.190] amazing OSINT and found out someone on [12:56.190 --> 12:58.410] LinkedIn was really happy to share what [12:58.410 --> 13:01.350] sale was with us. And sale turns out to [13:01.350 --> 13:02.770] be what I think is just, like, the [13:02.770 --> 13:04.890] internal Cox communications, like, device [13:04.890 --> 13:07.150] communications stuff, right? So, you know, [13:07.150 --> 13:09.070] if you built, like, a new website, you [13:09.070 --> 13:10.470] use and leverage this, like, sale [13:10.470 --> 13:12.710] protocol internally and then that's how [13:12.710 --> 13:14.450] you kind of, like, talk to devices, right? [13:14.530 --> 13:16.570] Because if we go back to, like, TR69, [13:16.570 --> 13:17.850] there's basically, like, a point of [13:17.850 --> 13:19.830] authentication, like, at the two device [13:20.350 --> 13:22.130] communications. So, like, if you wanted to [13:22.130 --> 13:23.550] make that simpler, you just build this, [13:23.550 --> 13:25.050] like, infrastructure that, like, leverages [13:25.050 --> 13:27.030] that and has the secrets. So sale itself [13:27.030 --> 13:29.030] was, like, this authenticated internal [13:29.030 --> 13:30.850] thing from the sounds of it as, like, an [13:30.850 --> 13:33.890] external person. So we kind of dug [13:33.890 --> 13:35.010] through the JavaScript and the [13:35.010 --> 13:36.130] JavaScript was really cool because it [13:36.130 --> 13:37.850] referenced this encrypted value a bunch [13:37.850 --> 13:40.530] and I kind of traced it a while and [13:40.530 --> 13:41.970] eventually found out that there was this [13:41.970 --> 13:44.790] function to, like, encrypt or decrypt a [13:44.790 --> 13:46.650] string but it was, like, this really [13:46.650 --> 13:48.090] weird kind of, like, run time thing and [13:48.090 --> 13:49.430] we could have extracted it and ran it [13:49.430 --> 13:50.950] but I thought the easiest thing to do [13:50.950 --> 13:54.250] here is just to toss it, uh, find the [13:54.250 --> 13:55.890] point in the app where, like, it uses [13:55.890 --> 13:56.990] this function and do, like, a break [13:56.990 --> 13:59.670] point. So there's this end point to, like, [13:59.670 --> 14:01.290] register and there's a four digit pen and [14:01.290 --> 14:02.830] the four digit pen is, like, encrypted [14:02.830 --> 14:04.650] client side. So if you just, like, set a [14:04.650 --> 14:06.630] break point here and then throw it in [14:06.630 --> 14:08.290] the console, you can actually just, like, [14:08.290 --> 14:09.710] go ahead and encrypt or decrypt the [14:09.710 --> 14:11.950] values. So here's, like, an example of [14:12.250 --> 14:14.430] a cool string, right? Now this string is [14:14.430 --> 14:16.070] cool because, like, it shows kind of the [14:16.070 --> 14:18.150] whole format of how it works and we just [14:18.150 --> 14:20.190] encrypted the value, like, 8042 and I [14:20.190 --> 14:22.150] pass it in to the end point for device [14:22.150 --> 14:23.770] management. And it was really, really [14:23.770 --> 14:25.170] cool because, like, the sale error it [14:25.170 --> 14:28.630] gave was, like, one for error, you know, [14:28.630 --> 14:29.970] we've decrypted it successfully but we [14:29.970 --> 14:31.030] really don't know what to do with it. [14:31.030 --> 14:32.710] Like, it's now, like, a different error [14:32.710 --> 14:34.190] which means that, like, on the back end [14:34.190 --> 14:35.450] sale stuff they're using that same [14:35.450 --> 14:37.250] encryption which is huge because it's, [14:37.250 --> 14:38.770] like, now we can, like, hit those device [14:38.770 --> 14:41.590] end points, right? So I hit up a friend [14:41.590 --> 14:43.850] and they run, like, a small MSP in Omaha, [14:43.850 --> 14:45.730] Nebraska and they're, like, hey, you know, [14:45.730 --> 14:46.870] I'm a Cox business customer, do you want [14:46.870 --> 14:49.710] to, like, sign my account? So I did and [14:51.290 --> 14:52.610] happy to do that and, you know, and [14:52.610 --> 14:54.050] pilfer a little bit and we found that [14:54.050 --> 14:56.330] there's, like, the actual, like, example [14:56.330 --> 14:58.450] parameter encrypted value. And when you [14:58.450 --> 15:00.070] decrypt that parameter you get, like, this [15:00.070 --> 15:02.030] kind of string below and actually deep [15:02.030 --> 15:04.230] dive that string you have, like, the [15:04.230 --> 15:06.330] following values in the decrypted value. [15:06.950 --> 15:08.570] So you have, like, the account number, [15:08.570 --> 15:10.350] device ID, device name and all this [15:10.350 --> 15:11.410] random stuff but the thing that was [15:11.410 --> 15:12.830] really interesting to us is, like, [15:12.830 --> 15:14.810] there's this MAC address parameter, right? [15:14.990 --> 15:16.310] And I was kind of scared at this point [15:16.310 --> 15:18.870] because it's, like, well, if I'm an [15:18.870 --> 15:20.430] attacker and I want to, like, pop somebody, [15:20.430 --> 15:21.610] I just want to do it, like, via MAC [15:21.610 --> 15:23.610] address. So, like, if there's any way to, [15:23.610 --> 15:24.790] like, just do it with only the MAC [15:24.790 --> 15:26.130] address it'd be the easiest. So I just [15:26.130 --> 15:27.830] went ahead and, like, signed a bunch of [15:27.830 --> 15:30.650] data with a MAC address and everything [15:30.650 --> 15:32.710] else being, like, junk data and after I [15:32.710 --> 15:37.430] did that it worked perfect, right? So we [15:37.430 --> 15:40.370] sent this request and this is my own [15:40.370 --> 15:43.030] Wi-Fi with an encrypted MAC address and [15:43.030 --> 15:44.490] I went and sent it and it returned, like, [15:44.490 --> 15:46.450] this success error and I was, like, okay [15:46.450 --> 15:47.870] what does that mean? So I, like, resent [15:47.870 --> 15:49.550] the request again but I realized, like, my [15:49.550 --> 15:53.230] whole network was offline. So this update [15:53.230 --> 15:55.070] request, like, actually kind of, like, [15:55.070 --> 15:56.670] just took my, it updated my device [15:56.670 --> 15:58.690] configuration, took the device offline [15:58.690 --> 16:03.090] and rebooted it. And yeah, so, like, I was [16:03.090 --> 16:05.210] able to just update my thing here which [16:05.210 --> 16:06.330] is kind of, like, the boom where it's, [16:06.330 --> 16:07.230] like, you can actually push these [16:07.230 --> 16:08.950] configuration settings and, like, that [16:08.950 --> 16:11.050] underlying TR69 protocol, you can do, [16:11.050 --> 16:12.110] like, whatever you want, right? You have [16:12.110 --> 16:14.090] the same permissions as, like, a support [16:14.090 --> 16:16.390] agent. So, like, updating Wi-Fi password, [16:16.390 --> 16:18.310] viewing connected devices, you know, [16:18.310 --> 16:19.570] basically, like, using a device as a [16:19.570 --> 16:21.490] proxy essentially, like, opening ports, [16:21.490 --> 16:22.850] you know, anything you could normally do [16:22.930 --> 16:24.290] as a support agent you could do via this, [16:24.290 --> 16:26.590] right? So it's, like, GG for that. You [16:26.590 --> 16:27.990] could, I think the actual route if you [16:27.990 --> 16:29.510] want to get RCE via this is there's, like, [16:29.510 --> 16:31.890] a push, pushing a configuration or, like, [16:31.890 --> 16:34.590] a new package for the device. And it's, [16:34.590 --> 16:36.090] it's, it's interesting because it's, like, [16:36.770 --> 16:38.730] you know, this kill chain, right, where [16:38.730 --> 16:40.330] it's, like, one, find someone's account [16:40.330 --> 16:42.990] ID, two, you know, get their MAC address, [16:42.990 --> 16:44.730] and, like, three, you can just, like, do a [16:44.730 --> 16:45.830] bunch of random hardware stuff that's [16:45.830 --> 16:48.310] really fun. But, like, now what? You know, [16:48.310 --> 16:50.910] like, it's, it's kind of scary because [16:50.910 --> 16:52.150] what actually kicked off all this [16:52.150 --> 16:55.050] research is, uh, there's this really [16:55.050 --> 16:56.110] interesting, like, point of [16:56.110 --> 16:58.450] centralization for, like, all ISPs, right? [16:58.450 --> 17:00.070] So even if you use, like, Cox or a [17:00.070 --> 17:01.810] smaller ISP, there's a few, like, really [17:01.810 --> 17:04.270] big ISPs like Comcast. And Comcast [17:04.270 --> 17:05.670] actually, like, develops a lot of [17:05.670 --> 17:07.570] software for all these different ISPs, [17:07.570 --> 17:08.590] right? So if you open your, like, you [17:08.590 --> 17:10.110] know, Cox app, you'd think it's going [17:10.110 --> 17:12.090] through the servers, right? And the thing [17:12.090 --> 17:14.050] is, like, it actually talks to, like, [17:14.050 --> 17:17.530] Comcast to authenticate, right? So this [17:17.530 --> 17:19.570] one, like, single HP server, it's, like, [17:19.570 --> 17:22.150] dh.something.comcast.net has, like, [17:22.150 --> 17:23.810] hundreds of millions of devices behind, [17:23.810 --> 17:25.970] like, a single web server, right? So if [17:25.970 --> 17:27.330] somebody popped this, it's just bizarre [17:27.330 --> 17:29.150] because, yeah, ten petabytes of data a [17:29.150 --> 17:31.030] day or something like that, they're [17:31.030 --> 17:32.850] collecting this insane, like, whatever, [17:32.850 --> 17:34.590] you know, and, like, uh, with, like, FISA [17:35.250 --> 17:36.490] authorization or FISA, however you say [17:36.490 --> 17:38.070] it, um, I'm sorry, I'm not Edward Snowden [17:38.070 --> 17:43.450] or whatever, but the FISA, uh, it's kind [17:43.450 --> 17:44.870] of scary because, like, it's just, like, [17:44.870 --> 17:46.550] an easy gateway to just, like, passively [17:46.550 --> 17:48.630] monitor, like, all this random metadata. [17:48.770 --> 17:50.490] Because I think, like, ten years ago, you [17:50.490 --> 17:52.410] know, maybe they're not logging, like, the [17:52.410 --> 17:53.830] actual names of devices connected to [17:53.830 --> 17:55.230] your network, but, like, now it's just, [17:55.230 --> 17:56.550] like, a crazy amount of metadata that's [17:56.550 --> 17:58.810] being stored on, like, one system, right? [18:00.390 --> 18:02.110] And here's, like, this is totally [18:02.110 --> 18:04.610] unreadable, by the way, so I'm sorry [18:04.610 --> 18:06.550] about that. Um, this is just an HP request [18:06.550 --> 18:08.410] to Comcast, like, when you actually [18:08.410 --> 18:10.150] authenticate to your app through the [18:10.150 --> 18:11.850] Cox app, so, like, you know, Cox is just [18:11.850 --> 18:13.330] levering this for authentication, so it [18:13.330 --> 18:15.250] just demonstrates, like, hey, you pop, [18:15.250 --> 18:17.370] like, this one API, it's GG for hundreds [18:17.370 --> 18:21.390] of millions of devices. And, yeah, kind [18:21.390 --> 18:23.470] of a shorter talk, and I think the whole [18:23.470 --> 18:24.770] idea of this is just kind of go through, [18:24.770 --> 18:26.770] like, this point is, like, very, very [18:26.770 --> 18:28.470] interesting, where it's, like, these [18:28.470 --> 18:29.550] single points of failure with, like, [18:29.550 --> 18:31.730] massive impact. And, uh, just a really [18:31.730 --> 18:34.310] quick summary, like, Cox was, like, super, [18:34.310 --> 18:35.650] super quick, but it confirmed, like, hey, [18:35.650 --> 18:38.210] you know, this, uh, vulnerability you [18:38.210 --> 18:39.370] found isn't actually the one you got [18:39.370 --> 18:40.890] hacked by because we introduced it later [18:40.890 --> 18:43.070] in time, right? But the possibility there [18:43.070 --> 18:44.770] of, like, you know, someone hacking at, [18:44.770 --> 18:46.550] like, an ISP level, these, like, APIs [18:46.550 --> 18:48.130] built on TR69 is, like, really, really [18:48.130 --> 18:50.510] fascinating. And they did confirm, too, [18:50.510 --> 18:51.890] like, that DigitalOcean IP is, like, not [18:51.890 --> 18:53.410] there at all. So, like, somebody did own [18:53.410 --> 18:55.470] the modem, but it's, like, not via that. [18:55.970 --> 18:58.210] And, uh, just, like, a really quick, you [18:58.210 --> 19:00.690] know, thanks for watching. There's a ton [19:02.910 --> 19:04.510] Oh, somebody said there'd be some bleed [19:04.510 --> 19:10.270] from the rooms, yeah. But, uh, I'm sorry. [19:10.470 --> 19:12.230] I'm just so curious what, what's going on. [19:12.230 --> 19:16.650] But, uh, yeah, there's some really great, [19:16.650 --> 19:18.510] like, references for this. And, like, I [19:18.510 --> 19:20.170] really, I'm really hopeful for, like, more [19:20.170 --> 19:21.690] research here in the future. But there's [19:22.010 --> 19:23.510] a lot of the things that, like, people can [19:23.510 --> 19:25.590] find vulnerabilities in are, like, behind, [19:25.590 --> 19:27.430] like, a VDP with, like, a non-disclosure [19:27.430 --> 19:29.190] terms. So I think people have probably [19:29.190 --> 19:30.810] found, like, similar issues before. And [19:30.810 --> 19:31.810] I'm really, really curious to see what [19:31.810 --> 19:33.150] kind of comes out of things like this. [19:33.430 --> 19:34.650] But, yeah, here's a few links to Cox [19:34.650 --> 19:36.350] stuff. And I really, really appreciate [19:36.350 --> 19:37.270] you guys coming to this really short [19:37.270 --> 19:39.390] talk. And, uh, I hope it kind of shows [19:39.390 --> 19:40.830] some light on, like, this specific [19:40.830 --> 19:54.300] vector. And I think we, we probably have [19:54.380 --> 19:55.520] a bunch of time for, like, QA, if [19:55.520 --> 19:56.960] anybody has anything in particular. But, [19:57.740 --> 19:59.700] um, are we going to do mics or just, [20:02.140 --> 20:03.660] like... Oh, yeah, happy to yell. Feel [20:03.660 --> 20:08.200] free. Oh, working with Cox was great. [20:08.200 --> 20:10.300] Big fan. They were honestly, like, a [20:10.300 --> 20:12.460] really good team. Like, they did the [20:12.460 --> 20:13.620] thing where, like, every message they [20:13.620 --> 20:15.320] responded with was, like, legally [20:15.320 --> 20:16.860] verified, it felt like. Like, they [20:16.860 --> 20:17.920] copied and pasted it in a bunch of [20:17.920 --> 20:22.400] different formats. But really good team. [20:22.400 --> 20:29.900] They did. Yeah. Um, yeah. [20:29.900 --> 20:33.700] Yeah, so... honestly, like, Python [20:33.700 --> 20:34.860] scripts and, like, bash scripts and [20:35.360 --> 20:37.500] stuff, like, chatDBT is so good for, uh, [20:37.500 --> 20:39.640] random stuff like that. But, yeah. [20:41.460 --> 20:48.350] Oh, sorry. Yeah, so, I haven't [20:48.350 --> 20:49.230] actually looked at, like, any of the [20:49.230 --> 20:50.990] other ONTs on the market. But, like, [20:50.990 --> 20:52.110] they're really fascinating. Like, [20:52.110 --> 20:53.970] setting up that little fiber thing. Um, [20:54.170 --> 20:55.250] a lot of people I know who work at [20:55.250 --> 20:56.250] ISPs, like, you should definitely [20:56.250 --> 20:57.150] dig into that. It's, like, really [20:57.150 --> 20:59.610] messed up. But, yeah. Let me see if [20:59.610 --> 21:01.310] there's any... [21:05.090 --> 21:05.970] Yeah, it's, like, really interesting [21:05.970 --> 21:06.930] because, like, this is, like, something [21:06.930 --> 21:09.650] that, like, grows and adds, like... [21:09.650 --> 21:11.850] Oh, sorry. Yeah, so, Spectres asks, [21:11.850 --> 21:13.850] like, if there's anything, like, uh, any [21:13.850 --> 21:14.770] other vulnerabilities that exist in [21:14.770 --> 21:16.250] that ecosystem. And it's, like, 100%, [21:16.250 --> 21:17.530] right? Like, this is, like, an ecosystem [21:17.530 --> 21:19.770] that, like, grows and changes and, like, [21:19.770 --> 21:21.190] updates and stuff. So, people are going [21:21.190 --> 21:23.070] to find more stuff. But, yeah. Sorry, [21:23.070 --> 21:29.450] could I, uh, Hermit? Yeah, working with [21:29.450 --> 21:31.050] ISPs and, like, telcos, I feel like, for [21:31.050 --> 21:33.210] vulnerability disclosures, like, they're [21:33.210 --> 21:36.390] very, uh, like, more government legal [21:36.390 --> 21:37.670] feeling than, like, many other [21:37.670 --> 21:38.930] organizations. Because if you have, like, [21:38.930 --> 21:40.470] Silicon Valley, like, Robin Hood, it's, [21:40.470 --> 21:42.050] like, pretty chill, you know? But, like, [21:42.050 --> 21:43.550] with them, it's, like, such a structured [21:43.550 --> 21:44.930] organization. It's, like, going to the [21:45.490 --> 21:52.810] 2000s America. Yeah, so, it's, it was [21:52.810 --> 21:54.230] actually, like, a Comcast device, I think. [21:54.230 --> 21:57.310] It's, like, the Cox Panoramic Wi-Fi. But, [21:58.330 --> 22:03.270] yeah. Oh, yeah, Nitspookie? All right. [22:08.310 --> 22:11.090] Yeah, so, adding the customer data to the [22:11.090 --> 22:13.030] blockchain, I think, is, uh, could help [22:13.030 --> 22:14.830] secure it, you know? Like, less, uh, attack [22:14.830 --> 22:18.990] factors. Yeah. So, if, uh, you have a [22:18.990 --> 22:20.650] question, there's a microphone here, so [22:20.650 --> 22:22.570] everybody in the audience can hear you. [22:22.570 --> 22:26.690] Oh, yeah, Derek, if you want to, yeah. [22:26.690 --> 22:28.930] So, did you ever figure out how they [22:28.930 --> 22:30.710] were mirroring your traffic? Yeah, I [22:30.710 --> 22:32.010] don't know. It's, it's really interesting [22:32.010 --> 22:33.650] because, like, the, the actual review [22:33.650 --> 22:36.210] process, like, I never found the malware, [22:36.210 --> 22:37.670] like, I turned in that copy of the device, [22:37.670 --> 22:42.510] but it's, like, probably, I'm not, I don't [22:42.510 --> 22:43.650] even know. Just some, like, middle part [22:43.650 --> 22:46.890] they throw in there. Wait, sorry. I'm [22:46.890 --> 22:49.750] sorry, but the schedule says you have 45 [22:49.750 --> 22:51.870] minutes, but you only presented 20. Did [22:51.870 --> 22:55.210] you cut anything? Yeah, so, there was a [22:55.210 --> 22:58.810] lot of, like, there's some revisions. Um, I [22:58.810 --> 23:00.410] worked really close with the team a bit [23:00.410 --> 23:02.670] with Cox and stuff. So, some of the [23:02.670 --> 23:05.330] content was, uh, they didn't specifically [23:05.330 --> 23:07.270] ask that anything be removed, but, like, [23:07.270 --> 23:08.850] it was an agreement for, like, certain [23:08.850 --> 23:11.970] content. Yeah, so, definitely a shorter [23:11.970 --> 23:14.110] talk, but hopefully it's more chill than, [23:14.110 --> 23:15.610] you know, nobody falls asleep or [23:15.610 --> 23:21.150] something. When, when you asked if you [23:21.150 --> 23:23.050] could keep your modem, did they look at [23:23.050 --> 23:25.330] you weird? Were they, like, why would you [23:25.330 --> 23:27.770] want to keep this? That's insanity. Yeah, [23:27.770 --> 23:30.170] so, like, the, I think I used the word [23:30.170 --> 23:32.010] reverse engineer and they thought it was, [23:32.010 --> 23:34.510] like, a trade secret thing. Oh. Yeah, so [23:34.510 --> 23:38.510] they didn't really like that, yeah. Yeah, [23:40.030 --> 23:47.870] sorry. Um, so, I work with Spectrum, [23:47.870 --> 23:51.250] actually. Oh, cool. So, um, one of the [23:51.250 --> 23:53.050] things I've noticed with us, and I think [23:53.050 --> 23:55.710] it's for similar reasons to this, is that [23:55.710 --> 23:58.110] we've stopped providing modems and [23:58.110 --> 24:00.090] routers that you can log into. Yep. [24:00.090 --> 24:02.850] That's completely out of the question. [24:02.850 --> 24:04.830] You have to go through our website and [24:04.830 --> 24:07.790] we only give you a couple options, like, [24:07.790 --> 24:10.550] whatever. Have you noticed that with many [24:10.910 --> 24:13.330] providers? Like, seen that before? Yeah, [24:13.330 --> 24:16.190] 100%. So, the, the, like, [24:16.590 --> 24:18.050] internetization of, like, modems just [24:18.050 --> 24:19.490] feels like this weird byproduct of, like, [24:19.490 --> 24:20.570] everything moving. It's like, oh, we're [24:20.570 --> 24:21.990] going to do new features. Like, we're [24:21.990 --> 24:23.050] going to add this security gateway and [24:23.050 --> 24:24.750] all this stuff. So, yeah, it does, it [24:24.750 --> 24:25.890] definitely feels like devices are moving [24:25.890 --> 24:28.590] towards, like, less management, like, [24:28.590 --> 24:29.810] locally on the network and, like, more [24:29.810 --> 24:31.430] management on the cloud, which is, like, [24:31.430 --> 24:32.770] maybe more accessible to people. But, [24:32.770 --> 24:33.650] like, it, yeah, it does create that [24:33.650 --> 24:37.050] centralization problem. Was Ian also [24:37.050 --> 24:38.750] involved in this research? [24:39.210 --> 24:41.430] Ian Carroll did a lot of review for the [24:41.430 --> 24:47.310] slides. Very happy. Yeah. Cheers. And, [24:47.310 --> 24:48.690] yeah, thank you for coming and sorry if [24:48.690 --> 24:51.890] you're expecting 45 minutes. Yeah, yeah. [24:52.270 --> 24:53.230] Cheers.