1 00:00:00,000 --> 00:00:00,900 Hey, everyone. 2 00:00:00,900 --> 00:00:01,760 Can you hear me? 3 00:00:02,160 --> 00:00:02,660 All right. 4 00:00:02,660 --> 00:00:03,380 We're good to go. 5 00:00:03,380 --> 00:00:04,960 Welcome, everyone, to DEF CON. 6 00:00:05,560 --> 00:00:06,400 Yeah. 7 00:00:06,880 --> 00:00:07,400 Yeah. 8 00:00:07,400 --> 00:00:11,300 So I'm super excited to be back here at DEF CON speaking again. 9 00:00:11,760 --> 00:00:12,860 I'm Farzan Karimi. 10 00:00:12,860 --> 00:00:14,840 I'm an offensive security researcher. 11 00:00:15,400 --> 00:00:17,020 And this is my talk. 12 00:00:17,020 --> 00:00:17,460 My session. 13 00:00:17,460 --> 00:00:18,300 Paywall optional. 14 00:00:18,300 --> 00:00:20,240 Stream for free with a new technique. 15 00:00:20,240 --> 00:00:22,000 Recursive request exploits. 16 00:00:22,700 --> 00:00:24,560 Little bit of cross talk that I'm hearing. 17 00:00:24,560 --> 00:00:26,520 Hopefully you're not hearing that too bad. 18 00:00:26,520 --> 00:00:30,440 So anyways, this is my session. 19 00:00:30,480 --> 00:00:33,980 Why did I choose a title focused on bypassing paywalls? 20 00:00:34,300 --> 00:00:38,840 So the important thing here is you really have to know your audience here at DEF CON. 21 00:00:38,840 --> 00:00:44,120 And when you say something like stream for free, you really rally all the cheapskates into one room. 22 00:00:44,500 --> 00:00:45,380 Yeah. 23 00:00:45,860 --> 00:00:47,440 And I mean that as a compliment. 24 00:00:47,740 --> 00:00:49,880 Because I'm one of you. 25 00:00:50,040 --> 00:00:51,700 And we speak the same language. 26 00:00:51,700 --> 00:00:53,120 So thank you for being here. 27 00:00:53,400 --> 00:00:58,160 In all seriousness, the title really understands some of the broader implications of this session. 28 00:00:58,160 --> 00:01:04,980 So I'm going to be talking about a new technique I'm going to be releasing called RRE, short for recursive request exploits. 29 00:01:05,040 --> 00:01:18,020 And with this technique, I was able to target a specific area of AppSec that allowed me to automate exploitation of basically a business logic of flaws that get you entitlement grant bypasses. 30 00:01:18,020 --> 00:01:19,540 So we're going to be talking about that. 31 00:01:19,540 --> 00:01:21,560 Two major areas of impact. 32 00:01:21,560 --> 00:01:27,900 One, I was able to leverage this technique to target a sports streaming service to get all their content for free. 33 00:01:28,100 --> 00:01:35,520 I also was able to target another major streaming service to access over 1,800 internal company meetings. 34 00:01:35,540 --> 00:01:39,240 Videos for internal company all hands, global town halls, et cetera. 35 00:01:39,260 --> 00:01:40,880 So the pattern works. 36 00:01:41,020 --> 00:01:43,280 And I just recently discovered this. 37 00:01:43,280 --> 00:01:47,120 So I'm still feeling like I'm just scratching the surface now. 38 00:01:47,200 --> 00:01:48,820 So we're going to talk about all that. 39 00:01:48,820 --> 00:01:50,460 A little background on me. 40 00:01:50,620 --> 00:01:58,520 I've been a red team manager at a number of different organizations, such as Google, where I manage the Android red team, EA, as well as Moderna. 41 00:01:58,600 --> 00:02:04,580 Right now, Moderna, I also manage security operations, incident response, security engineering, as well as red team. 42 00:02:04,600 --> 00:02:09,180 So the scope expanded a little bit, and it just makes the day-to-day more fun. 43 00:02:09,260 --> 00:02:23,920 I've been here in previous DEF CONs talking with my former Android red team on how we were able to exploit the Pixel 6, as well as attacking devices over cellular communications via a no-click over-the-air RCE that we delivered through an SMS message. 44 00:02:24,040 --> 00:02:25,420 And I know what you're all thinking. 45 00:02:25,600 --> 00:02:26,840 Bravo, Farzan. 46 00:02:27,140 --> 00:02:28,260 Well done. 47 00:02:28,300 --> 00:02:29,440 Let's get on with it. 48 00:02:29,440 --> 00:02:30,380 Enough of your intro. 49 00:02:30,380 --> 00:02:31,760 We just want free streaming. 50 00:02:32,440 --> 00:02:35,620 So here's our session agenda. 51 00:02:35,620 --> 00:02:44,320 Before we get into what RRE is, I wanted to quickly touch on this paywall problem, as well as the concept of entitlement grant bypasses. 52 00:02:44,320 --> 00:02:45,260 So quick definition. 53 00:02:45,260 --> 00:02:49,620 When I say entitlement, I mean any digital asset that's tied to you, the customer. 54 00:02:49,800 --> 00:02:52,680 So that should be bound to your identity as well. 55 00:02:52,680 --> 00:02:54,960 And that's essentially the paywall problem here. 56 00:02:54,960 --> 00:03:06,360 So whether it's client-side scripts that you can manipulate, or cookies that you can tamper with, there's very weak authentication on applications that favor user experience over security. 57 00:03:06,360 --> 00:03:09,840 So think of news article sites, streaming sites, et cetera. 58 00:03:10,660 --> 00:03:12,980 So that's essentially the paywall problem. 59 00:03:12,980 --> 00:03:17,800 Then we're going to cover a couple of other paywall bypass techniques just for comprehensive analysis. 60 00:03:17,940 --> 00:03:22,780 So that's just four traditional bypass methods coupled with RRE. 61 00:03:22,820 --> 00:03:26,900 So you're going to get five here, techniques to bypass paywalls in 20 minutes or less. 62 00:03:27,400 --> 00:03:33,900 And then we're going to flow into our RRE technique, coupled that with a real world exploit targeting our sports streaming provider. 63 00:03:34,000 --> 00:03:39,600 And we'll be releasing a tool at the end of this to help automate it for everyone here. 64 00:03:40,440 --> 00:03:43,200 So quickly level set on the traditional bypass methods. 65 00:03:43,200 --> 00:03:46,560 I'm not going to talk about these here because we're just going to get into it for time sake. 66 00:03:47,000 --> 00:03:53,720 By the way, before I talk about this first method, it's pretty public knowledge you can YouTube how to do this to get around some paywalls. 67 00:03:53,840 --> 00:03:58,720 Basically, let's say you're really interested in a news article about dancing nuns. 68 00:03:58,720 --> 00:04:05,840 You don't want to pay the $5.99 a month or whatever the newspaper article charges you, the publisher charges you. 69 00:04:05,840 --> 00:04:07,160 So what's a way around it? 70 00:04:07,160 --> 00:04:12,520 And the quick way here is I'm just going to refresh this page so you can see the paywall opens up. 71 00:04:13,760 --> 00:04:15,280 You can't see it. 72 00:04:17,800 --> 00:04:19,380 There's nothing on the screen? 73 00:04:21,040 --> 00:04:25,480 Has it always been a black screen? 74 00:04:25,900 --> 00:04:26,800 Shit. 75 00:04:26,800 --> 00:04:27,500 Okay. 76 00:04:33,820 --> 00:04:35,040 That's great. 77 00:04:35,640 --> 00:04:36,240 Okay. 78 00:04:36,240 --> 00:04:37,340 Working on it. 79 00:04:38,220 --> 00:04:38,720 Yeah. 80 00:04:38,720 --> 00:04:42,960 It's really hard to show you demos when you don't have anything to look at. 81 00:04:44,180 --> 00:04:48,900 So I'll just give the technical team here a minute to figure that out and we'll jump back in. 82 00:04:49,420 --> 00:04:50,880 Just go? 83 00:04:51,920 --> 00:04:53,100 It's all demos. 84 00:04:53,100 --> 00:04:54,020 It's all demos. 85 00:04:59,060 --> 00:04:59,560 Okay. 86 00:04:59,560 --> 00:05:00,300 Well, you know what? 87 00:05:00,400 --> 00:05:08,720 Let me see if I can go to something here that I could talk about and voice track a little bit of what I'm doing with RRE as a whole. 88 00:05:12,940 --> 00:05:15,880 I'm trying to keep my cool, but this kind of sucks, to be honest. 89 00:05:18,000 --> 00:05:24,780 So to understand what's being exploited with RRE, and by the way, hoot and holler if you actually see something at some point. 90 00:05:25,760 --> 00:05:26,680 You need to think about it. 91 00:05:26,680 --> 00:05:28,840 I think about it with this quick mental model. 92 00:05:29,260 --> 00:05:31,860 And I call it the APSEC principle of first reference. 93 00:05:31,860 --> 00:05:37,660 It's something cheesy I made up with, but the intent actually helps with explaining what this concept is doing. 94 00:05:37,660 --> 00:05:48,080 So this principle talks about basically we need to identify the first point where a sensitive value in a web app is introduced upstream. 95 00:05:48,300 --> 00:05:49,080 Okay? 96 00:05:49,080 --> 00:05:56,020 So this is often where trust assumptions are the strongest, but actual authentication and authorization is the weakest. 97 00:05:56,020 --> 00:06:01,420 So think of it as a chain of API calls that generate a secret, an entitlement. 98 00:06:01,740 --> 00:06:07,560 And in that chain of API calls, there's interdependencies between them that are not obvious. 99 00:06:07,600 --> 00:06:12,200 But if everything there is doing a good claims check or an authentication check, then that's good. 100 00:06:12,200 --> 00:06:16,440 That's considered a high trust input at each step of the chain. 101 00:06:16,480 --> 00:06:28,160 Now, if there's anything in that chain that talks about that basically generates a secret from metadata or an identifier or something that's not a claim, then you got some problems. 102 00:06:28,160 --> 00:06:42,320 So that's the concept here and what the attack is basically automating is recursively going back through that API chain or the endpoint chain, whatever it is, and finding points where there could be low trust inputs that let you hijack the authentication stream, 103 00:06:42,320 --> 00:06:43,660 if that makes sense. 104 00:06:43,660 --> 00:06:45,180 Again, I had visuals. 105 00:06:45,200 --> 00:06:46,500 I wish I could show them to you. 106 00:06:46,500 --> 00:06:48,240 I promise there's stuff here. 107 00:06:48,600 --> 00:06:50,020 But that's sort of the high level. 108 00:06:50,020 --> 00:06:54,960 The attacker's goal here is to just recursively walk that chain, but in an automated fashion. 109 00:06:56,460 --> 00:07:05,640 The challenge here is with modern apps and asynchronous APIs, that you don't have the ability to scale well if you do this manually. 110 00:07:05,640 --> 00:07:11,680 It's a high-cost effort for a pen tester to do this, and automation really helps here. 111 00:07:12,000 --> 00:07:22,660 So I'll kind of talk about this, again, sucks without the visual, but imagine a fictitious streaming site where you're searching for a video, and let's say you're looking for Fight Club. 112 00:07:22,860 --> 00:07:25,360 And you put that in the search prompt. 113 00:07:25,500 --> 00:07:29,140 There's a search API that returns a bunch of metadata back to you. 114 00:07:29,320 --> 00:07:39,200 In that metadata may be information about the movies, a synopsis, a summary, et cetera, what it scored on Rotten Tomatoes, as well as metadata about the actors involved. 115 00:07:39,200 --> 00:07:40,980 So Brad Pitt, Edward Norton. 116 00:07:40,980 --> 00:07:41,720 Great. 117 00:07:41,780 --> 00:07:51,780 Now you look through the entire app, again, the APIs, and see if there's something where you can fit some of that identifier info to a new API to generate something else that's interesting. 118 00:07:51,940 --> 00:08:04,640 And let's say there's an actors API, and you pass it Brad Pitt, and now you get information about his background, also all the movies he played in, maybe some movie identifiers, TV shows and TV show identifiers, et cetera. 119 00:08:04,640 --> 00:08:06,440 You keep searching, rinse, repeat. 120 00:08:06,440 --> 00:08:11,340 You look for an episode API that gives you more information about the episode. 121 00:08:11,440 --> 00:08:14,380 Maybe there's a video identifier in there tied to the episode. 122 00:08:14,380 --> 00:08:17,580 Now you're working, again, all unauthenticated. 123 00:08:18,040 --> 00:08:26,740 And then you get to this point in the chain where maybe that video identifier, if you find the right API, can actually fetch you a full network stream URL. 124 00:08:27,220 --> 00:08:29,520 So that's sort of what I'm talking about visually. 125 00:08:29,640 --> 00:08:32,980 And this is a great challenge for me to do this without a visual, again. 126 00:08:32,980 --> 00:08:35,060 So I hope that's tracking a little bit. 127 00:08:35,060 --> 00:08:36,220 Does that make sense? 128 00:08:36,600 --> 00:08:37,200 Cool. 129 00:08:37,200 --> 00:08:37,920 Awesome. 130 00:08:39,320 --> 00:08:49,040 So if I were to define what RRE is, it is basically a methodology for recursively tracing interdependent web requests in reverse. 131 00:08:49,040 --> 00:08:56,200 So you got to start with the secret, so you're cheating a little bit, but then you do this in reverse to then identify how you can go back unauthenticated. 132 00:08:56,320 --> 00:09:03,300 And once you do that, you can rinse, repeat and replay and hit every video on the network streaming service for free, because you can discover them. 133 00:09:03,480 --> 00:09:05,720 So that's what I'm doing with this technique. 134 00:09:06,780 --> 00:09:13,700 In other words, the question I'm asking myself with this technique is, where was this parameter generated from? 135 00:09:13,700 --> 00:09:17,180 And asking that question again and again and again and again. 136 00:09:17,780 --> 00:09:18,580 Yes! 137 00:09:21,000 --> 00:09:22,940 I am so happy right now. 138 00:09:24,360 --> 00:09:26,680 Because actually I had nothing else to say. 139 00:09:28,700 --> 00:09:29,420 You know what? 140 00:09:29,420 --> 00:09:42,480 We're just going to continue with this flow of RRE, and if we have time, I'll go back to show some cool other exploit demos, because I had a conversation with the legal team yesterday at one of the providers I was able to exploit with this, and they said you can't go on and talk about this. 141 00:09:42,480 --> 00:09:48,900 Within 17 hours ago, I gave them responsible disclosure months ago. 142 00:09:49,320 --> 00:09:54,480 And so, of course, there's a little bit of, yeah, last minute attention that they're providing me. 143 00:09:54,480 --> 00:09:56,420 So we'll save time if we can go back to that. 144 00:09:56,420 --> 00:09:57,060 Great. 145 00:09:57,220 --> 00:09:57,980 Here is RRE. 146 00:09:57,980 --> 00:10:02,340 This is a manual flow of a demo of a manual flow of RRE. 147 00:10:02,340 --> 00:10:06,540 In this version, this is version one of my tool. 148 00:10:06,700 --> 00:10:07,360 Okay? 149 00:10:07,360 --> 00:10:10,160 So I'm not implementing any recursion just yet. 150 00:10:10,380 --> 00:10:10,860 Right? 151 00:10:10,860 --> 00:10:12,480 So just to show how this works. 152 00:10:12,480 --> 00:10:15,180 And then we're going to get into the recursive bit in the next demo. 153 00:10:15,320 --> 00:10:22,900 So the goal here is to trace back a video stream that user legitimately accessed and see how it could be discovered by an unauthenticated attacker. 154 00:10:23,220 --> 00:10:26,780 So I'm going to start by searching for a football game on the sports streaming service. 155 00:10:26,780 --> 00:10:30,160 Since I'm not logged in, the video doesn't play, so that's a good sign. 156 00:10:30,980 --> 00:10:34,960 Now I'm going to log in as a valid user and repeat that same search. 157 00:10:34,960 --> 00:10:36,520 All right. 158 00:10:36,520 --> 00:10:40,360 Now in BERT by CD API response includes a video stream URL. 159 00:10:40,380 --> 00:10:41,620 That's a protected value. 160 00:10:41,620 --> 00:10:43,100 I had to log in to get it. 161 00:10:43,560 --> 00:10:47,660 Now test if I can replay that stream link in a media player like VLC. 162 00:10:48,260 --> 00:10:52,260 And we can see here in just a minute, the video plays. 163 00:10:52,460 --> 00:10:54,520 That's a great start for an attacker, right? 164 00:10:54,520 --> 00:10:57,740 Because you've circumvented the web app at this point entirely. 165 00:10:57,740 --> 00:10:59,400 There's no session off anymore. 166 00:11:00,100 --> 00:11:02,840 Now I want to know where that video stream came from initially. 167 00:11:03,180 --> 00:11:08,780 So it looks like it was returned from this V2 VODs API or video on demand API. 168 00:11:08,820 --> 00:11:12,020 And it depends on this parameter called VOD, whatever that means. 169 00:11:12,020 --> 00:11:21,420 So I'm going to run my extension, this RE extension manually to trace where that originally, that VOD value originally generated my entire HTTP trace, my history. 170 00:11:21,580 --> 00:11:26,900 And it was turned out it was generated by another API call that used that VOD ID. 171 00:11:27,040 --> 00:11:31,180 And it's generated by this call that uses GAM. 172 00:11:31,180 --> 00:11:32,300 So what's GAM? 173 00:11:32,300 --> 00:11:32,980 I have no idea. 174 00:11:32,980 --> 00:11:34,360 Let's inspect that call. 175 00:11:34,800 --> 00:11:37,020 And you don't have to really watch the video anymore. 176 00:11:37,020 --> 00:11:38,660 Just listen to the narration. 177 00:11:38,660 --> 00:11:40,340 Now that I've gotten better about that. 178 00:11:41,100 --> 00:11:48,240 Really, we're just going back and doing this rinse and repeat to go back and identify the source of the call. 179 00:11:48,240 --> 00:11:52,640 And that GAM ID map to the game I was searching for in my search prompt initially. 180 00:11:52,640 --> 00:11:54,460 So again, all unauthenticated. 181 00:11:54,520 --> 00:11:59,460 And I was able to leverage this technique to trace back and see what was the originating call. 182 00:11:59,700 --> 00:12:03,080 Yes, manually, which is why I'm going to get into the next bit here. 183 00:12:03,420 --> 00:12:06,660 So just visualizing that chain, what I was able to do in that video. 184 00:12:07,480 --> 00:12:09,020 So I was at the very top. 185 00:12:09,020 --> 00:12:10,940 We have our video secret. 186 00:12:11,320 --> 00:12:18,240 And then everything else is a hop and a trace doing RRE step by step to see what API call generates the next. 187 00:12:18,240 --> 00:12:23,460 So VOD generates the load media, the URL stream, the M3 link. 188 00:12:23,820 --> 00:12:27,620 The GAM parameter generated the VOD call. 189 00:12:27,620 --> 00:12:32,060 And our original call was just an unauthenticated search, right, for the event. 190 00:12:32,060 --> 00:12:35,080 So we're just attacking metadata here, if that makes sense. 191 00:12:35,540 --> 00:12:37,380 So what's the problem? 192 00:12:37,380 --> 00:12:39,500 What challenge did I run using this technique? 193 00:12:39,500 --> 00:12:40,900 I couldn't scale it. 194 00:12:40,900 --> 00:12:44,220 Because I'm still manually clicking through API call, every API. 195 00:12:44,380 --> 00:12:48,160 So I need to find a way to make this recurse effectively. 196 00:12:48,400 --> 00:12:49,500 And that's a challenge, right? 197 00:12:49,500 --> 00:12:54,300 Because, again, these are asynchronous APIs, and I don't know what API connects to what. 198 00:12:55,020 --> 00:12:56,840 So what's the solution there? 199 00:12:56,880 --> 00:12:57,620 Entropy. 200 00:12:57,820 --> 00:13:13,760 So all I implemented here was an entropy check that goes back and, you know, my version 1 was looking and correctly finding the source originating API that calls the next API that calls the next API, but it had trouble finding that magic parameter that generated the next sequence, 201 00:13:13,760 --> 00:13:14,900 if that makes sense. 202 00:13:15,140 --> 00:13:17,920 So if you implement entropy here, I use Shannon entropy. 203 00:13:18,940 --> 00:13:25,440 I looked it up on chat GPT, what entropy should I use, and it just said Shannon, and it sounded good to me. 204 00:13:25,440 --> 00:13:26,520 There's no real preference here. 205 00:13:26,520 --> 00:13:28,460 You can use any entropy check of your choice. 206 00:13:28,500 --> 00:13:32,680 What's interesting or what's more important is I was able to also implement a threshold. 207 00:13:32,780 --> 00:13:50,620 So you can do a sliding bar based on the app you're testing, whether you're testing an app that generates secrets from, like, GUIDs, which are highly entropic, but they're enumerable, discoverable, but they're so weak as an authentication mechanism, all the way down to, 208 00:13:50,620 --> 00:13:58,260 like, a very low entropy parameter like actor ID or whatever, right? 209 00:13:58,260 --> 00:14:02,900 So with that, this is the logic to show the threshold code. 210 00:14:02,900 --> 00:14:09,620 All of this is going to be... I have less than five minutes left, so I'll just reference material for anybody that watches this later. 211 00:14:10,220 --> 00:14:12,160 So this is the version with recursion. 212 00:14:12,160 --> 00:14:15,660 So this shows everything works in one package, one 40-second demo. 213 00:14:15,720 --> 00:14:19,740 What you'll see here is the sum of all the parts we demonstrated so far in this presentation. 214 00:14:19,840 --> 00:14:28,900 Everything we did manually, we built recursion now, coupled with logic that prompts or pinpoints those candidate parameters based on these entropy checks, right? 215 00:14:28,900 --> 00:14:39,860 So here we're going to go load a baseball game on the sports streaming service, capture the request, and this is version two of the RRE tool to run our full trace discovery. 216 00:14:39,860 --> 00:14:46,040 So I'm going to right-click that video stream link parameter and go back and say RRE, give me the full chain. 217 00:14:46,960 --> 00:14:53,360 And in just a couple seconds, you'll see all the results nicely and neatly populated for you right here. 218 00:14:53,360 --> 00:14:56,460 So this is the entire grant flow for your target secret. 219 00:14:56,680 --> 00:14:59,160 The video stream chained back to each API call. 220 00:14:59,160 --> 00:15:01,100 You don't have to discover this anymore yourself. 221 00:15:01,120 --> 00:15:03,020 It maps it for you. 222 00:15:03,420 --> 00:15:04,620 Does that make sense? 223 00:15:04,780 --> 00:15:05,200 Yeah? 224 00:15:05,200 --> 00:15:05,940 Cool. 225 00:15:06,200 --> 00:15:11,860 And if none of these values are required off, cool, none of these values are required off, you're cooking. 226 00:15:11,980 --> 00:15:21,960 And this normally would be if you give a pretty decent pen tester or red teamer hours of work, maybe days of work, depending on who's testing the application. 227 00:15:21,960 --> 00:15:23,800 We just did this in a couple seconds. 228 00:15:24,040 --> 00:15:25,920 So that's the value of the tool. 229 00:15:27,840 --> 00:15:29,720 So again, this is just for reference. 230 00:15:29,720 --> 00:15:30,480 Thank you. 231 00:15:31,940 --> 00:15:39,540 Right here is just a culmination final hurrah video that demonstrates this at scale, targeting this sports streaming service. 232 00:15:39,540 --> 00:15:45,380 I took that API sequence from the results of my RRE chain before and pointed it to this streaming service all in one day. 233 00:15:45,820 --> 00:15:47,680 So you're going to see a bunch of videos up here. 234 00:15:47,680 --> 00:15:54,400 This is literally me pulling down every live stream from this sports streaming service, every highlight, over and over again. 235 00:15:54,700 --> 00:15:58,940 What's interesting is you may see some empty stadiums and empty arenas. 236 00:15:58,940 --> 00:16:00,240 And this is really interesting. 237 00:16:00,240 --> 00:16:02,360 Because it's a cherry on top finding. 238 00:16:02,780 --> 00:16:04,580 If I move to the next slide. 239 00:16:04,640 --> 00:16:06,400 Why are there empty arenas? 240 00:16:08,020 --> 00:16:09,360 Because... what's that? 241 00:16:09,880 --> 00:16:11,280 Live streams. 242 00:16:11,280 --> 00:16:16,200 Because there's this concept, and I don't know how big of a problem this is, and this is sort of new territory with live stream. 243 00:16:16,200 --> 00:16:18,200 There could be always on live streams. 244 00:16:18,200 --> 00:16:22,840 And they may not be advertised by the application for a specific window. 245 00:16:23,140 --> 00:16:28,000 But if you can hit the APIs with the right parameters, you can just tap into those cameras at any time. 246 00:16:28,480 --> 00:16:30,740 So it's a big privacy nightmare, right? 247 00:16:30,800 --> 00:16:33,280 Depending on who the live stream provider is. 248 00:16:33,280 --> 00:16:40,720 And I think there's a whole area to discover here that I'm just kind of just scratching the surface for myself. 249 00:16:40,720 --> 00:16:43,340 But I'm interested if anybody else dives into this as well. 250 00:16:43,340 --> 00:16:44,840 Feel free to reach out. 251 00:16:46,300 --> 00:16:51,360 So of course, as with any good red teamer, I've left one minute for the remediation slide. 252 00:16:51,360 --> 00:16:55,240 And so I don't have to talk about it too much. 253 00:16:55,240 --> 00:17:02,180 But the TLDR here is if you're doing stuff with multiple APIs, this informs good claim checks. 254 00:17:02,440 --> 00:17:04,700 DRM if you're doing streaming. 255 00:17:05,340 --> 00:17:07,480 Time bound session tokens. 256 00:17:07,540 --> 00:17:12,360 And this whole always on live stream concept, turn off the cameras. 257 00:17:12,360 --> 00:17:13,520 Unplug those cameras. 258 00:17:13,520 --> 00:17:14,120 Do whatever. 259 00:17:14,120 --> 00:17:16,620 Don't have always on live content. 260 00:17:17,260 --> 00:17:23,560 I'm so sorry I couldn't get to the team meeting compromise, which was a whole five-minute spiel. 261 00:17:24,180 --> 00:17:25,060 But yeah. 262 00:17:25,060 --> 00:17:25,900 I have three minutes. 263 00:17:25,900 --> 00:17:27,420 So I can go back a little bit. 264 00:17:27,840 --> 00:17:28,420 Great. 265 00:17:28,420 --> 00:17:30,040 Quick wrap up on this RRE. 266 00:17:30,040 --> 00:17:32,780 If you have any questions, hit up the QR code. 267 00:17:32,780 --> 00:17:36,100 That GitHub link, I managed to do it post this live. 268 00:17:36,100 --> 00:17:37,080 It's public now. 269 00:17:37,080 --> 00:17:38,240 I did it from safe internet. 270 00:17:38,240 --> 00:17:39,300 Not around here. 271 00:17:39,400 --> 00:17:40,940 So you can access it. 272 00:17:41,360 --> 00:17:42,500 And then, yeah. 273 00:17:42,500 --> 00:17:43,800 Feel free to hit me up with any questions. 274 00:17:43,800 --> 00:17:45,620 I'm going to go back really quick. 275 00:17:48,680 --> 00:17:51,600 And this will take a good minute of my time just going back. 276 00:17:52,820 --> 00:17:58,540 So this is this was also discovered by RRE, but it was an IDOR bug. 277 00:17:58,540 --> 00:18:02,540 So IDOR, you're like, eh. 278 00:18:02,540 --> 00:18:05,220 But it is another use case for RRE. 279 00:18:05,640 --> 00:18:09,960 So what you see here, and this is just redacted material, obviously. 280 00:18:09,960 --> 00:18:15,640 On the right is a company town hall, internal town hall that I had legitimate access to. 281 00:18:15,640 --> 00:18:20,980 And what you see on the left in my burp suite is the get request that generates that video. 282 00:18:21,340 --> 00:18:21,960 Okay? 283 00:18:21,960 --> 00:18:24,180 You can see where this is going to go, right? 284 00:18:24,180 --> 00:18:29,200 But there's identifiers, there's an account's identifier, an event's identifier, a video's identifier. 285 00:18:29,580 --> 00:18:34,200 But they come with seven to nine digit sequence IDs. 286 00:18:34,440 --> 00:18:37,140 So to unlock a video, forget about auth for a second. 287 00:18:37,140 --> 00:18:40,820 To unlock this video, you're going to have to guess the right sequence. 288 00:18:41,080 --> 00:18:44,260 And that's nearly impossible with all the permutations out there. 289 00:18:44,260 --> 00:18:47,900 So how do you go about trying to bypass this sequence? 290 00:18:48,060 --> 00:18:51,340 And guess the access? 291 00:18:51,440 --> 00:18:57,680 What you do is you just strip the entire call to its root, and you just have to guess one ID. 292 00:18:57,840 --> 00:19:02,560 And instead of getting an access denied error, you get metadata on the right. 293 00:19:02,860 --> 00:19:07,800 And this leaks interesting information that, hey, this is something internal, internal live media content. 294 00:19:07,840 --> 00:19:11,780 You scroll down, and that metadata also leaks event information. 295 00:19:12,620 --> 00:19:12,840 All right? 296 00:19:12,840 --> 00:19:13,660 What are we going to do with that? 297 00:19:13,660 --> 00:19:16,420 We're going to plop it over to the get request. 298 00:19:17,240 --> 00:19:20,860 And now we see a reference to a town hall with a redacted company. 299 00:19:21,020 --> 00:19:21,140 All right? 300 00:19:21,140 --> 00:19:32,580 So this was the automation that basically allowed me to enumerate through sequencing through millions of IDs, getting to 1,800 validated internal meetings for different companies. 301 00:19:32,860 --> 00:19:34,040 Did it again. 302 00:19:34,120 --> 00:19:38,020 And you scroll down, you see a video identifier that loads the actual video. 303 00:19:38,180 --> 00:19:39,800 Put it in a get request. 304 00:19:39,800 --> 00:19:40,700 So one other step. 305 00:19:40,700 --> 00:19:41,200 I'm skipping. 306 00:19:41,200 --> 00:19:41,840 Sorry. 307 00:19:42,080 --> 00:19:45,620 It generates a video stream, but it also gives you an off token. 308 00:19:47,000 --> 00:19:47,660 That's nice. 309 00:19:47,660 --> 00:19:49,520 That's a very helpful API. 310 00:19:50,020 --> 00:19:50,420 Right? 311 00:19:50,900 --> 00:19:53,160 So at this point, you have off. 312 00:19:53,280 --> 00:19:54,940 And you didn't need off to begin with. 313 00:19:54,940 --> 00:19:58,720 And you have the full sequence enumerated for you by a very helpful API. 314 00:19:58,760 --> 00:20:03,840 Because there's a chaining of events here, the RRE trace also works for this as well. 315 00:20:04,140 --> 00:20:07,440 So I'll stop because I'm getting the countdown here. 316 00:20:07,680 --> 00:20:12,660 Just really thank you all, DEF CON, for having me up on stage and talking to you a little bit about this pet project. 317 00:20:12,660 --> 00:20:14,160 I really appreciate the time. 318 00:20:14,160 --> 00:20:14,760 Thanks.