1 00:00:00,000 --> 00:00:01,140 Good afternoon. 2 00:00:01,140 --> 00:00:04,400 This title of this talk is What is Dead May Never Die. 3 00:00:04,400 --> 00:00:07,280 Ladies and gentlemen, Rohit and George. 4 00:00:11,840 --> 00:00:13,160 Thank you. 5 00:00:13,680 --> 00:00:14,400 Hello? 6 00:00:15,640 --> 00:00:16,760 Okay. 7 00:00:17,000 --> 00:00:19,360 Hello and welcome to our talk. 8 00:00:19,700 --> 00:00:23,100 The title of our talk is What is Dead May Never Die. 9 00:00:23,520 --> 00:00:25,220 We're so proud of the title, right? 10 00:00:25,220 --> 00:00:28,480 Such a cool, unique, clever name. 11 00:00:29,220 --> 00:00:40,420 And as we started making the slides, we realized that there is another talk with the same title at DEF CON at the same time. 12 00:00:41,260 --> 00:00:43,980 So bad news for some of you. 13 00:00:43,980 --> 00:00:48,580 If you're here for that talk, you want to go to that room. 14 00:00:49,380 --> 00:00:51,280 But it's level two, right? 15 00:00:51,280 --> 00:00:52,340 Bit of a walk. 16 00:00:52,340 --> 00:00:55,100 My suggestion, stay for this talk. 17 00:00:56,260 --> 00:00:59,040 We have amazing memes. 18 00:00:59,880 --> 00:01:01,980 Some really high quality presentation. 19 00:01:04,420 --> 00:01:05,560 Okay. 20 00:01:05,560 --> 00:01:07,420 Let's get right to it. 21 00:01:08,340 --> 00:01:34,400 What if we told you that all of these modern technologies, browsers, latest Office, AV, lots of components on the latest Windows, all of this modern stuff was really secured by something that was written in a hurry in the 1990s. 22 00:01:37,350 --> 00:01:41,910 Show of hands, how many of you remember or recognize this window? 23 00:01:42,670 --> 00:01:44,170 Yep, yep, pretty much all of you. 24 00:01:44,170 --> 00:01:45,650 All of you are old like me. 25 00:01:45,930 --> 00:01:48,070 That's the classic Internet Explorer, right? 26 00:01:48,870 --> 00:01:58,190 The technology that you see right here of these zones is pretty much what is powering all of these other modern stuff that we talked about. 27 00:02:00,110 --> 00:02:09,810 And now that we have your attention, right, your undivided attention, we're going to be talking about ourselves. 28 00:02:11,890 --> 00:02:14,950 So hey, my name is Rohit, I work for Microsoft. 29 00:02:15,450 --> 00:02:16,850 Uh, oh hey! 30 00:02:17,310 --> 00:02:22,070 I work for Microsoft Security Response Center, or MSRC. 31 00:02:22,510 --> 00:02:33,010 I started working in security many years ago, and um, when I started working, I was looking at Internet Explorer exploits, right, tearing them down, trying to figure out what's going on. 32 00:02:34,050 --> 00:02:38,710 Fast forward all these years, and I'm still talking about Internet Explorer, right? 33 00:02:38,930 --> 00:02:42,710 I would like to think that shows you I'm really persistent. 34 00:02:43,150 --> 00:02:45,970 But you could also argue that I'm kind of stuck in the past. 35 00:02:45,970 --> 00:02:49,250 I agree, Rohit, I think he is stuck in the past. 36 00:02:49,530 --> 00:02:58,030 My name is George, I also work in MSRC at Microsoft, and I love finding bugs in Windows, so that's what we're here to talk about today. 37 00:02:58,670 --> 00:03:00,690 Thank you for that wonderful introduction, George. 38 00:03:02,630 --> 00:03:08,450 Okay, so how does your typical security research talk, uh, process look like, right? 39 00:03:08,450 --> 00:03:13,470 You're an independent security researcher, what's the first thing that you do? 40 00:03:14,030 --> 00:03:15,930 Pick a target, right? 41 00:03:15,930 --> 00:03:21,190 Easier said than done, probably the hardest part of security research, just pick the right target. 42 00:03:21,670 --> 00:03:28,010 Then you develop some tools, hopefully find some bugs, and then you submit it to the vendor. 43 00:03:29,410 --> 00:03:34,390 At this point it's a bit of a black box, because you don't know what's going on with the vendor, right? 44 00:03:34,570 --> 00:03:40,570 Fingers crossed, after a while the vendor might be like, yeah, we're actually going to patch this, here's the CVE. 45 00:03:41,530 --> 00:03:50,330 And then once the patch is released, you might go reverse engineer the patch, figure out that the fix works, or doesn't work, and rinse and repeat. 46 00:03:50,330 --> 00:03:52,390 You go back to the first step, right? 47 00:03:52,390 --> 00:03:57,350 That's how your typical research process looks like when you're external researchers. 48 00:03:58,610 --> 00:04:11,990 So George and I are internal security researchers to Microsoft, and we wanted to shed some light on how the process looks like, the security research process looks like, from the inside, at least for our team. 49 00:04:12,490 --> 00:04:21,430 The first thing that's different, um, is obviously we have the great advantage of looking at all of the stuff that you send us, right? 50 00:04:21,430 --> 00:04:24,290 So we see all of those bugs, patterns, trends. 51 00:04:25,530 --> 00:04:32,410 And then the other thing is we have subject matter experts within the company who have been working on some features for a long time, right? 52 00:04:32,690 --> 00:04:37,450 Developers, architects, PMs, lots of people. 53 00:04:37,450 --> 00:04:45,010 So we have discussions and conversations with these experts, and we might identify a few issues of our own internally, right? 54 00:04:45,010 --> 00:04:50,050 And then we raise these issues with the engineering team, trying to get to fix them. 55 00:04:50,710 --> 00:05:01,010 The second thing at this point that's different, uh, when you're an internal security researcher is we get to review the fixes while they're in development, right? 56 00:05:01,010 --> 00:05:04,990 We're internal, so we don't have to wait for the fix to be public. 57 00:05:05,490 --> 00:05:12,910 So yeah, those two important distinctions I just wanted to highlight, that's what distinguishes, like, the internal security research process. 58 00:05:15,030 --> 00:05:19,630 Okay, why are we talking about Internet Explorer in 2025? 59 00:05:20,090 --> 00:05:22,190 Like, surely it's dead, right? 60 00:05:22,190 --> 00:05:23,190 Why do we care? 61 00:05:24,210 --> 00:05:27,410 Let's look at this CVE, and as you can see, it's from 2025. 62 00:05:29,390 --> 00:05:32,290 We look at the title, it says, map URL to zone. 63 00:05:32,290 --> 00:05:36,670 Okay, some of you might have noticed this in the title of our talk, so it's relevant. 64 00:05:36,670 --> 00:05:37,890 Let's keep going. 65 00:05:39,030 --> 00:05:45,130 And this long line basically just says, this issue affects Microsoft Windows. 66 00:05:45,490 --> 00:05:47,350 Okay, so far so good. 67 00:05:47,830 --> 00:05:57,530 Then you actually go to download the patches, and if you notice the second link at the bottom that says IE, that's Internet Explorer, right? 68 00:05:59,450 --> 00:06:04,230 Hold on, why are we downloading Internet Explorer updates? 69 00:06:04,250 --> 00:06:06,350 That looks really suspicious. 70 00:06:06,590 --> 00:06:11,590 Or as my Gen Z friend George here would say, that looks pretty sus, dude. 71 00:06:11,670 --> 00:06:14,250 That looks really sus. 72 00:06:16,130 --> 00:06:18,290 So what's the truth of the matter? 73 00:06:18,890 --> 00:06:25,670 Yes, Microsoft has retired Internet Explorer 11, the glorious browser back in the day, right? 74 00:06:25,670 --> 00:06:28,610 But it's still kind of present for legacy use cases. 75 00:06:28,730 --> 00:06:39,070 Moreover, the underlying HTML engine, the scripting engine, the helper utilities are still present on Windows and still used. 76 00:06:41,560 --> 00:06:48,220 So here's a screenshot of a DLL in system 32 folder on the latest Windows, right? 77 00:06:48,220 --> 00:06:50,440 Hopefully all of you can read the highlighted section. 78 00:06:50,440 --> 00:06:54,680 It says, runtime utility for Internet Explorer. 79 00:06:55,320 --> 00:06:57,100 Mind you, this is on the latest Windows. 80 00:06:57,100 --> 00:06:59,480 So clearly the binary still exists. 81 00:07:01,720 --> 00:07:07,260 Back to the good old Internet Explorer window that we looked at a couple of slides ago. 82 00:07:08,100 --> 00:07:24,340 So for those of you that are not familiar with what this window would do is, back when Internet Explorer was the browser of choice, you could actually go in and customize your security settings based on this concept of security zones. 83 00:07:25,260 --> 00:07:28,100 So like you can read some of them, right? 84 00:07:28,100 --> 00:07:30,940 The first is Internet, then there's local Internet, etc. 85 00:07:30,940 --> 00:07:43,920 So imagine you go and you customize it saying, hey Internet Explorer, if the website that I'm trying to visit is part of this Internet security zone, potentially dangerous, I don't trust it. 86 00:07:43,920 --> 00:07:45,900 Don't let me do any dangerous stuff. 87 00:07:45,900 --> 00:07:47,980 Or at least prompt, right? 88 00:07:47,980 --> 00:07:54,800 And then you could customize it further by saying, if the website that I'm visiting is trusted, it's fine. 89 00:07:54,800 --> 00:07:55,960 Let me do some crazy stuff. 90 00:07:55,960 --> 00:07:57,400 You don't have to prompt. 91 00:07:57,520 --> 00:07:59,260 That was the idea, right? 92 00:07:59,260 --> 00:08:03,200 Back in the 90s with this whole security zones with Internet Explorer. 93 00:08:04,340 --> 00:08:13,360 Even though you don't use Internet Explorer anymore, this fundamental security zones concept is super relevant even in Windows today. 94 00:08:13,580 --> 00:08:20,380 And a lot of the Windows applications have since adopted this technology to make security decisions on the system. 95 00:08:24,670 --> 00:08:26,530 Okay, so who's using this stuff? 96 00:08:26,530 --> 00:08:27,190 Right? 97 00:08:27,190 --> 00:08:28,570 On latest Windows. 98 00:08:29,530 --> 00:08:36,250 There's Mark of the Web that various applications use, Windows Shell, File Explorer, your AV. 99 00:08:37,630 --> 00:08:42,150 Office is a great example that a lot of you might be familiar with. 100 00:08:42,150 --> 00:08:59,070 If you're opening Office documents that you've downloaded from the web, and you open it, Office will look at essentially like the zone information and if it's coming from an Internet or untrusted zone, it will open the document in a restricted environment. 101 00:08:59,070 --> 00:09:02,610 Meaning a lot of the potentially dangerous features are disabled. 102 00:09:03,090 --> 00:09:03,410 Right? 103 00:09:03,410 --> 00:09:08,950 Some of you might remember this, when you open the doc, you have to go up top and click enable editing. 104 00:09:09,150 --> 00:09:12,290 Until you do that, you can't really interact with a lot of features. 105 00:09:12,670 --> 00:09:14,030 So that's what's going on. 106 00:09:16,070 --> 00:09:21,450 And so yeah, all of these things on Windows rely fundamentally on this security zones thing. 107 00:09:22,030 --> 00:09:31,110 At this point you might be wondering, okay, how do I really determine what security zone a file or a resource really belongs to? 108 00:09:31,390 --> 00:09:32,490 That's a great question. 109 00:09:32,490 --> 00:09:38,210 And as you see on there, the API on Windows to do that is called Map URL to Zone. 110 00:09:40,350 --> 00:09:42,030 So what is this API? 111 00:09:42,430 --> 00:09:44,490 It's a user mode API. 112 00:09:45,330 --> 00:09:47,830 We lovingly call it MUDs. 113 00:09:47,830 --> 00:09:49,030 Kind of a weird name. 114 00:09:49,030 --> 00:09:52,370 But Map URL to Zone, that's too much to say. 115 00:09:52,370 --> 00:09:57,470 So if George and I keep saying MUDs throughout the presentation, know we're talking about this API. 116 00:09:58,330 --> 00:10:01,870 The functionality is split between these two DLLs. 117 00:10:02,690 --> 00:10:03,650 And what does it do? 118 00:10:03,650 --> 00:10:16,070 As the name suggests, if you pass it a URL or a path, it will map it to one of those security zones that we just looked at from that classic Internet Explorer window, right? 119 00:10:18,270 --> 00:10:24,770 That's a list of the values that MUDs or Map URL to Zone will return if you call it passing it a URL. 120 00:10:25,570 --> 00:10:35,250 I just want to emphasize these values that you see, 0, 1, 2, 3, 4, these are just numerical mappings of the actual zones that we saw before in that IE window, right? 121 00:10:35,250 --> 00:10:38,430 Internet zone, intranet zone, etc. 122 00:10:40,670 --> 00:10:45,310 So long story short, it's a pretty security critical API in Windows. 123 00:10:45,310 --> 00:10:53,730 You might not be calling it directly, but if you're using Windows, this is being called under the hood by many applications many times a day. 124 00:10:56,080 --> 00:10:57,100 Cool. 125 00:10:57,220 --> 00:11:10,540 So hopefully we've convinced most of you that this IE security zones concept, this API, Map URL to Zone, is still pretty much alive and kicking on Windows, right? 126 00:11:10,540 --> 00:11:11,960 Even the latest Windows. 127 00:11:12,420 --> 00:11:16,000 And a natural question is, well, why do we care? 128 00:11:16,000 --> 00:11:17,280 What's the impact? 129 00:11:17,280 --> 00:11:21,880 What's really the worst case scenario if something goes wrong with this API? 130 00:11:24,080 --> 00:11:27,280 And to do that, we need to talk about this bug. 131 00:11:27,280 --> 00:11:31,900 Go two years back to 2023, and you can see a CVE on there. 132 00:11:32,600 --> 00:11:39,700 This bug affected Outlook, the mail client, and the story of this bug starts with a sound file. 133 00:11:41,020 --> 00:11:42,620 What are sound files? 134 00:11:43,140 --> 00:11:52,140 So if you're on Windows and you go to C Windows Media, this folder, you'll see a bunch of default sounds that Windows plays when certain actions happen. 135 00:11:53,000 --> 00:11:58,800 Highlighted here on the screen, you'll see it says Windows notify email dot wave file, right? 136 00:11:59,200 --> 00:11:59,980 Pretty evident. 137 00:11:59,980 --> 00:12:01,940 When does this wave file get displayed? 138 00:12:02,220 --> 00:12:07,460 When you receive an email, Windows will notify you by playing this particular sound. 139 00:12:07,460 --> 00:12:08,760 It's a default sound. 140 00:12:11,860 --> 00:12:12,740 Okay. 141 00:12:13,240 --> 00:12:15,060 So let's get to the bug. 142 00:12:15,300 --> 00:12:16,820 What was going on? 143 00:12:17,100 --> 00:12:22,580 Turns out in Outlook, the mail client, you can actually create reminders. 144 00:12:22,580 --> 00:12:25,140 These are reminder tasks, right? 145 00:12:25,160 --> 00:12:27,200 For yourself or other users. 146 00:12:27,540 --> 00:12:34,680 And if you see that little bell icon, if you click that, by default, there's a wave file sound that plays. 147 00:12:34,680 --> 00:12:40,460 So you can imagine when the reminder fires, that particular wave file will be played to notify you. 148 00:12:42,040 --> 00:12:45,780 Well, actually it turns out you can overwrite that. 149 00:12:45,780 --> 00:12:50,400 And you can say, play this custom sound file, not the default one. 150 00:12:51,400 --> 00:13:01,940 Moreover, hopefully most of you can read the highlighted section, the custom file that you're providing, the custom sound file, does not have to be local to the machine. 151 00:13:02,320 --> 00:13:08,740 You can actually point it to a network share and say, hey, Outlook, play that sound file from that network share. 152 00:13:11,680 --> 00:13:17,220 So this CVE was a zero click, no user interaction attack vector. 153 00:13:17,320 --> 00:13:26,620 Back in 2023, this was exploited in the wild by a nation state threat actor that's tracked this forest blizzard. 154 00:13:28,600 --> 00:13:30,560 So how did the attack work? 155 00:13:30,560 --> 00:13:31,960 Just visually, right? 156 00:13:32,640 --> 00:13:36,660 The attacker would create a reminder task in Outlook. 157 00:13:37,420 --> 00:13:42,380 They'll override the default sound that will be played when the reminder triggers. 158 00:13:42,820 --> 00:13:47,940 And instead, they'll say, hey, play this file from a network share that I control. 159 00:13:48,400 --> 00:13:50,620 And the attacker will send that to the victim. 160 00:13:54,200 --> 00:13:57,560 There's no user interaction needed from the victim side. 161 00:13:57,560 --> 00:13:59,440 You don't have to interact with the reminder. 162 00:13:59,440 --> 00:14:00,380 You don't have to look at it. 163 00:14:00,380 --> 00:14:08,940 As long as your Outlook mail client is running, even if in the background, the victim's Outlook mail client will get the reminder. 164 00:14:08,940 --> 00:14:17,860 And once the reminder fires or triggers, it's going to reach out to the attacker control network share to fetch that sound file we talked about. 165 00:14:18,280 --> 00:14:23,900 In this process, Windows will authenticate to the attacker control server using NTLM. 166 00:14:23,900 --> 00:14:32,320 And the attacker can use this NTLM hash to relate against a vulnerable exchange server. 167 00:14:32,680 --> 00:14:33,980 What happens at that point? 168 00:14:33,980 --> 00:14:40,160 The attacker can essentially authenticate on your behalf to that vulnerable exchange server, right? 169 00:14:40,160 --> 00:14:46,220 And all of this, just to highlight again, happens with zero clicks. 170 00:14:46,220 --> 00:14:47,500 No user interaction. 171 00:14:47,500 --> 00:14:49,580 Pretty much the worst case scenario. 172 00:14:51,980 --> 00:14:52,580 Okay. 173 00:14:52,580 --> 00:14:53,600 We talked about this bug. 174 00:14:53,600 --> 00:14:54,320 It's really cool. 175 00:14:54,320 --> 00:14:57,560 How does it relate to mods or map your older zone? 176 00:14:58,180 --> 00:15:02,060 And for that, we need to talk about how this was fixed back in 2023. 177 00:15:02,320 --> 00:15:13,800 The core fix was Outlook and exchange server would just drop this reminder sound file property on any new reminders that you would get after you patched. 178 00:15:13,800 --> 00:15:14,180 Right? 179 00:15:14,180 --> 00:15:20,000 So, like your Outlook client would just not respect the custom sound file that you pass. 180 00:15:20,040 --> 00:15:21,320 It's all fine. 181 00:15:22,000 --> 00:15:36,700 They did leave that one corner case where if you imagine, what if you got the reminder before you patched and the reminder trigger time or expiration time was set to a date far out in the future? 182 00:15:37,720 --> 00:15:38,420 Right? 183 00:15:38,420 --> 00:15:46,140 In that particular case, Outlook actually added a mods call, a map your older zone call on the custom reminder sound file. 184 00:15:46,140 --> 00:15:47,400 What was the logic? 185 00:15:47,480 --> 00:15:53,120 Check the security zone of this file that we're going to try and connect to, reach out to. 186 00:15:53,220 --> 00:15:58,120 And if it's coming from an internet or untrusted zone, don't reach out. 187 00:15:59,980 --> 00:16:02,640 We made additional mitigations for this. 188 00:16:02,640 --> 00:16:09,040 It involved other components like exchange server, but that's not really relevant for our discussion here. 189 00:16:09,720 --> 00:16:15,000 What I want to emphasize again is this answers the question that we asked a couple of slides ago. 190 00:16:15,000 --> 00:16:20,640 What's the worst case that can happen if there's bugs with map your older zone or mods? 191 00:16:20,720 --> 00:16:21,540 Right? 192 00:16:21,560 --> 00:16:28,620 This API we're relying on in a security critical code path in a zero click attack vector. 193 00:16:34,540 --> 00:16:42,000 And at this point, we get to the hero of the talk, which I wish was me, but that doesn't look like me. 194 00:16:42,060 --> 00:16:46,500 In fact, that looks like you George without the mustache though. 195 00:16:46,720 --> 00:16:48,040 That's not me Rohit. 196 00:16:48,060 --> 00:16:49,960 You've known me for five years. 197 00:16:49,980 --> 00:16:52,460 He's going to be in my wedding and he doesn't even know what I look like. 198 00:16:52,460 --> 00:16:53,520 Come on now, bud. 199 00:16:53,600 --> 00:16:57,380 This is a researcher by the name of Ben Barnia. 200 00:16:57,860 --> 00:17:11,820 Ben was one of the people who really started to think critically about map your older zone because he's one of the first external researchers that realized we'd added the call to mutts in Outlook as a part of the fix for this issue. 201 00:17:11,980 --> 00:17:25,520 And when Ben started looking into this, he discovered some key differences in canonicalization between how create file canonicalizes a file versus how map your older zone canonicalizes that same file path. 202 00:17:25,980 --> 00:17:29,580 And I'm going to be using the term canonicalization quite a bit today. 203 00:17:29,620 --> 00:17:40,360 For those of you that don't know what canonicalization is, you can just think of it as how the operating system collapses a path into something more readable that we'll then use to open. 204 00:17:40,820 --> 00:17:50,140 So this first example that Ben created is a really good example of something we all know and love in canonicalization, which is path traversal characters. 205 00:17:50,480 --> 00:17:57,080 In this example, he uses a path that starts with slash slash localhost slash dot dot. 206 00:17:57,080 --> 00:18:08,500 And you might expect what would happen is exactly what does happen, which is create file will see those dot dot characters, it will remove localhost from the start of the path. 207 00:18:08,500 --> 00:18:13,260 And as a result, we reach out to Akamai.com to make a request. 208 00:18:13,660 --> 00:18:16,340 However, Mutz doesn't do that. 209 00:18:16,440 --> 00:18:19,460 Mutz thinks that the host name is localhost. 210 00:18:19,460 --> 00:18:23,140 So therefore Mutz classifies this as a local path. 211 00:18:23,140 --> 00:18:33,400 And this is a key difference, because we're able to provide a path to something like create file, but Mutz thinks that it's local despite it actually being a remote path. 212 00:18:34,260 --> 00:18:37,440 So Ben continued to do quite a bit of research in this area. 213 00:18:37,680 --> 00:18:43,100 He ended up releasing a four part blog series on his research into map url to zone. 214 00:18:43,440 --> 00:18:47,520 And in total, Ben found three ways to bypass map url to zone. 215 00:18:47,520 --> 00:18:50,440 And he also found a double free vulnerability. 216 00:18:50,940 --> 00:18:54,020 And I think that this double free vulnerability is super interesting. 217 00:18:54,020 --> 00:18:57,420 It's something we're going to get into a little bit later in the presentation. 218 00:18:58,460 --> 00:19:05,880 Now Ben really made us rethink how we thought about canonicalization in Mutz internally at Microsoft. 219 00:19:06,100 --> 00:19:16,480 And a lot of the research that Ben did really served as the springboard for our own research, because it showed some really interesting things about canonicalization. 220 00:19:16,740 --> 00:19:21,240 And so that's when Rohit and I started looking into map url to zone. 221 00:19:21,340 --> 00:19:27,560 Now here's where I would love to tell you all about some of the really interesting research methodology that we had. 222 00:19:27,560 --> 00:19:32,140 Here's where I'd love to tell you about the complex tooling, the fuzzers we built. 223 00:19:32,260 --> 00:19:37,380 Actually Rohit did build a fuzzer , but unfortunately that fuzzer did not find anything. 224 00:19:37,720 --> 00:19:45,340 So instead we had to go with the tried and true handy dandy way of throwing a bunch of paths at map url to zone and seeing what stuck. 225 00:19:45,820 --> 00:19:48,060 Obviously I'm simplifying a little bit here. 226 00:19:48,060 --> 00:19:55,380 We did also do quite a bit of code review since we're internal, we have the ability to look through source code and find some of these as well. 227 00:19:56,760 --> 00:20:07,220 Okay, so we ended up finding so many different vulnerabilities with this technique that we actually had to classify these into four main categories. 228 00:20:07,460 --> 00:20:15,600 These categories are path prefixes, host name misclassification, canonicalization, again, and miscellaneous. 229 00:20:16,080 --> 00:20:20,460 So let's run through the first category, which is path prefixes. 230 00:20:20,520 --> 00:20:24,560 Now path prefixes are pretty interesting, but they're not always applicable. 231 00:20:24,880 --> 00:20:31,700 And the reason why is because the attacker doesn't always have the ability to control the start of the path in this way. 232 00:20:31,740 --> 00:20:40,520 For example, when create a file tries to open a file, if you control the start of the path, the scheme in this case, create a file won't be able to open that file. 233 00:20:40,520 --> 00:20:43,500 It only opens paths starting with file colon. 234 00:20:43,780 --> 00:20:48,480 However, there are other API's that do let you control the start of the path. 235 00:20:48,480 --> 00:20:50,280 And so that's what these apply to. 236 00:20:50,520 --> 00:20:56,620 In this case, we noted some interesting behavior with the shell colon scheme. 237 00:20:56,740 --> 00:21:06,820 Specifically, what we noted is that every path we passed in to map your autozone that started with shell colon, we always say that it was a local path. 238 00:21:07,140 --> 00:21:11,820 However, there's a trick you can use to actually specify a remote path. 239 00:21:11,820 --> 00:21:14,020 And this is exactly the trick that we use. 240 00:21:14,020 --> 00:21:16,400 We use the network places folder. 241 00:21:16,540 --> 00:21:23,620 And then you can put in three slashes immediately after and put in any IP address, your website, whatever it might be. 242 00:21:24,020 --> 00:21:29,040 But MUTs will classify this as a local path, despite it clearly being a remote path. 243 00:21:29,380 --> 00:21:30,640 Well, why is that? 244 00:21:30,640 --> 00:21:38,160 It turns out that in Windows, there's this registry that has some defaults, some protocol defaults. 245 00:21:38,220 --> 00:21:42,280 MUTs will go to these protocol defaults and try to run a quick query. 246 00:21:42,620 --> 00:21:52,020 Basically, what it's saying is, hey, do you know what the default value should be for the scheme that starts with shell or known folder or something like that? 247 00:21:52,300 --> 00:21:56,700 And in this case, you'll see that the default value for shell is zero. 248 00:21:56,780 --> 00:22:01,500 Zero, if you're paying attention to Rohit earlier, maps to the local machine. 249 00:22:02,340 --> 00:22:04,020 So MUTs completely stops. 250 00:22:04,020 --> 00:22:06,200 It says, hey, I know what this is going to be. 251 00:22:06,480 --> 00:22:10,600 The operating system tells me that the default should always be local machine. 252 00:22:10,640 --> 00:22:12,680 Therefore, this path must be local. 253 00:22:12,720 --> 00:22:14,240 But it's not a local path. 254 00:22:14,240 --> 00:22:15,900 Create file treats this differently. 255 00:22:16,900 --> 00:22:22,720 The next category of vulnerabilities I want to talk about are hostname misclassification vulnerabilities. 256 00:22:23,180 --> 00:22:33,980 And these, I think, are a little bit more interesting than the last set, because they're generally more applicable than the path prefix vulnerabilities, because we don't need to control the scheme of the path. 257 00:22:37,700 --> 00:22:45,820 I'm But before I do that, we need to understand a little bit about how hostname misclassification vulnerabilities actually work. 258 00:22:45,920 --> 00:22:50,900 And you might have guessed it, it happens when MUTs is trying to classify the hostname. 259 00:22:51,240 --> 00:23:01,450 What it's specifically trying to do is decide if a hostname is either IPv6, IPv4, or a DNS address if it's an IP address. 260 00:23:01,930 --> 00:23:05,950 What this means in practice is there's a little bit of a problem here. 261 00:23:06,030 --> 00:23:14,890 Because if we can figure out a way to fool either is IPv6 or is IPv4, it will return that it's a DNS address. 262 00:23:15,110 --> 00:23:19,970 And this is a really key thing, because we then have to do a DNS lookup, right? 263 00:23:19,970 --> 00:23:23,830 MUTs has to figure out, is this on the local internet? 264 00:23:24,370 --> 00:23:26,730 Or is this on the wider internet? 265 00:23:27,530 --> 00:23:30,110 So there's two main things we have to do here. 266 00:23:30,310 --> 00:23:41,110 The first thing we have to do, the first requirement we have to satisfy for hostname misclassification is we need to figure out a way to fool either is IPv4 or is IPv6. 267 00:23:41,390 --> 00:23:48,610 And what I mean by this is we have to pass in an IP address, but MUTs is going to say it's not an IP address. 268 00:23:49,170 --> 00:23:53,910 The second thing we need to satisfy is we can't use any dots inside the hostname. 269 00:23:53,930 --> 00:24:00,430 Because what ends up happening is when the DNS lookup takes place, it will try to look for that hostname. 270 00:24:00,570 --> 00:24:05,230 If it's something like rohit.com, that's clearly part of the wider internet. 271 00:24:05,230 --> 00:24:13,450 However, if it's something like rohit-PC, which does not have a dot in the path, that's something that's part of the local intranet. 272 00:24:14,450 --> 00:24:15,350 Okay. 273 00:24:15,350 --> 00:24:21,490 So this second requirement is pretty easy to satisfy with IPv6 paths. 274 00:24:21,510 --> 00:24:25,670 The reason being, IPv6 does not use periods. 275 00:24:25,750 --> 00:24:26,030 Right? 276 00:24:26,030 --> 00:24:27,750 It uses colons as a separator. 277 00:24:27,750 --> 00:24:37,450 So this is a first place that we started to look for ways that we could convince Map Bureau to zone to return that it was an intranet path, not an internet path. 278 00:24:38,070 --> 00:24:41,770 Now, this is an actual way that we were able to bypass Map Bureau zone. 279 00:24:42,130 --> 00:24:44,970 There are three main components to this path. 280 00:24:45,170 --> 00:24:48,570 The first is the IPv6 address of the target. 281 00:24:48,570 --> 00:24:48,730 Right? 282 00:24:48,730 --> 00:24:51,230 So we have the slash slash and then the IP address. 283 00:24:51,570 --> 00:24:54,570 Immediately after, we have the interface being used. 284 00:24:54,750 --> 00:25:02,110 If you've ever used IPv6 before, you know that you can specify which interface you're going to make a request on. 285 00:25:02,110 --> 00:25:08,790 In this case, we're telling create file, hey, I want to make this request over interface number 12. 286 00:25:09,830 --> 00:25:13,530 Finally, we have a path to a file name at the end of this. 287 00:25:13,910 --> 00:25:18,010 And you'll notice something a little weird about the second part of this path. 288 00:25:18,010 --> 00:25:20,270 There's a lot of zeros at the start of it. 289 00:25:20,550 --> 00:25:23,550 And create file doesn't care about these zeros. 290 00:25:23,610 --> 00:25:31,830 When we try to open this file, just chops off all these zeros, sees the 12 and says, okay, I'm going to make this request over interface number 12. 291 00:25:31,930 --> 00:25:33,610 And everything is totally fine. 292 00:25:34,750 --> 00:25:38,010 However, map your order zone does not do that. 293 00:25:38,270 --> 00:25:48,990 The reason why is because the underlying APIs that are used in is IPv6 fail when the interface ID was longer than eight characters long. 294 00:25:49,110 --> 00:25:56,970 And this is really key because now the is IPv6 IPv6 call is going to fail, meaning that this is a DNS address. 295 00:25:57,190 --> 00:26:05,710 And when we do the DNS lookup, well, there's no dots in the hostname, meaning that this must be on the local internet in Mutz's mind. 296 00:26:06,070 --> 00:26:07,510 And this is the key difference, right? 297 00:26:07,510 --> 00:26:11,870 Now we figured out a way to convince Mutz that something is local, right? 298 00:26:11,870 --> 00:26:12,950 It's very nearby. 299 00:26:13,030 --> 00:26:15,450 But this is clearly on the wider internet. 300 00:26:15,450 --> 00:26:17,170 This is something very far away. 301 00:26:18,690 --> 00:26:25,670 The second example of hostname misclassification I'm going to be sharing with you all is in IPv4 parsing. 302 00:26:26,010 --> 00:26:30,330 So in this case, once again, we have three main components to this path. 303 00:26:30,330 --> 00:26:33,170 We start out with the IPv4 address. 304 00:26:33,310 --> 00:26:34,630 And this might look a little bit weird. 305 00:26:34,630 --> 00:26:36,090 I'm going to get to this in a second. 306 00:26:36,490 --> 00:26:39,250 The second part of this path is the port. 307 00:26:39,410 --> 00:26:42,470 This is the port that we're going to be making the request over. 308 00:26:42,790 --> 00:26:45,330 And then finally, once again, we have the file path. 309 00:26:45,590 --> 00:26:49,990 You'll notice, again, there's a little something weird about the second part of this path. 310 00:26:49,990 --> 00:26:54,050 Once again, there's a preceding zero in the port number. 311 00:26:54,470 --> 00:26:56,950 And createFile does exactly what you would expect. 312 00:26:56,950 --> 00:27:06,550 When we try to open this file, it once again strips off the preceding zero, treats this as port 80, and makes this request over port 80. 313 00:27:06,870 --> 00:27:11,390 However, Mutz does something really, really interesting here. 314 00:27:11,830 --> 00:27:17,290 Instead, it thinks that the user is trying to use octal notation for the port. 315 00:27:17,290 --> 00:27:19,150 This blew my mind when I saw this. 316 00:27:19,150 --> 00:27:27,110 This is something similar to maybe using hexadecimal notation and providing a 0x80 at the start of the path. 317 00:27:27,110 --> 00:27:31,290 Instead, we provide 080 for the port number. 318 00:27:32,010 --> 00:27:37,570 However, you may have noticed, 8 is not a valid octal character. 319 00:27:37,570 --> 00:27:40,270 Valid octal characters are 0 through 7. 320 00:27:40,550 --> 00:27:43,710 As a result, Mutz says, this isn't a real port. 321 00:27:44,290 --> 00:27:47,810 So therefore, I don't think that this is an IPv4 address. 322 00:27:47,810 --> 00:27:49,710 It must be a DNS address. 323 00:27:49,990 --> 00:27:52,170 So instead, we have to do a DNS lookup. 324 00:27:52,190 --> 00:27:57,070 We do the DNS lookup on the hexadecimal thing at the start of this path. 325 00:27:57,410 --> 00:28:03,190 And since there's no dots in it, we happen to return that this is on the local internet, once again. 326 00:28:03,930 --> 00:28:06,790 Now, this comes back to what I alluded to a little bit earlier. 327 00:28:06,790 --> 00:28:09,110 There's no dots in the IP address. 328 00:28:09,110 --> 00:28:13,450 And this is to get around the second requirement of hostname misclassification bugs. 329 00:28:13,710 --> 00:28:16,930 We can't use a dot inside of the hostname. 330 00:28:17,130 --> 00:28:24,450 And therefore, we use what's called a dotless TLD or hexadecimal notation for the IP address that we want to reach out to. 331 00:28:26,090 --> 00:28:32,030 Okay, the next set of vulnerabilities I'm going to get into are some of my favorites. 332 00:28:32,030 --> 00:28:34,290 And these are canonicalization. 333 00:28:34,290 --> 00:28:38,370 The reason that these are some of my favorites is twofold. 334 00:28:38,370 --> 00:28:45,790 First of all, most prior research, like Ben Varney's research, focused on canonicalization bugs. 335 00:28:46,150 --> 00:28:49,530 What that means is a lot of the low-hanging fruit is gone. 336 00:28:49,590 --> 00:28:54,750 So most of the bugs that we found are a little bit more complicated, and to me, a little bit more interesting. 337 00:28:55,170 --> 00:29:01,550 The second reason I really am interested in canonicalization-based vulnerabilities is they are ubiquitous. 338 00:29:01,550 --> 00:29:03,810 They'll work in every single location. 339 00:29:04,270 --> 00:29:12,490 And secondly, you'll convince MUTs to return that it's a local path on the local machine, not part of the local internet. 340 00:29:12,490 --> 00:29:16,790 And this makes this even more interesting and useful for an attacker. 341 00:29:17,950 --> 00:29:26,090 So let's get into the first example of a MapView AutoZone bypass that we found using a canonicalization trick. 342 00:29:26,090 --> 00:29:28,490 This is a bit of a more complicated path. 343 00:29:28,490 --> 00:29:31,370 There are five main components to this path. 344 00:29:31,370 --> 00:29:34,650 You'll notice this starts with slash, slash, dot, slash. 345 00:29:34,650 --> 00:29:39,390 That just tells the operating system we're going to be using the device namespace to make this request. 346 00:29:39,830 --> 00:29:41,430 Then we have C colon, right? 347 00:29:41,430 --> 00:29:43,270 That's our local C drive. 348 00:29:43,330 --> 00:29:46,270 We have a question mark, which we're going to be getting to in a little bit. 349 00:29:47,010 --> 00:29:51,090 Followed by two sets of path traversal characters. 350 00:29:51,410 --> 00:29:58,410 What createFile does, as a bit of a spoiler alert, is it knocks off the first two parts of this directory. 351 00:29:58,630 --> 00:30:01,870 And it ends up just treating the rest of the path as the full path. 352 00:30:02,110 --> 00:30:05,970 So createFile will end up reaching out to a remote path. 353 00:30:05,970 --> 00:30:10,570 It'll end up reaching out to that IP address and then that file path that we have at the end. 354 00:30:12,130 --> 00:30:17,070 However, Mutz gets a little bit tripped up on the second part of this path. 355 00:30:17,070 --> 00:30:19,090 And again, I think this is really interesting. 356 00:30:19,270 --> 00:30:27,290 Mutz sees the question mark that's a part of this path and assumes that the question mark is part of an HTTP query. 357 00:30:27,350 --> 00:30:34,610 So it's expecting that everything that comes after the question mark are parameters that we're providing in an HTTP query. 358 00:30:34,610 --> 00:30:36,210 However, that's not the case. 359 00:30:36,210 --> 00:30:38,090 This is not an HTTP path. 360 00:30:38,090 --> 00:30:41,830 CreateFile does not treat this as an HTTP path. 361 00:30:42,290 --> 00:30:53,490 When doing canonicalization, MapUrlToZone canonicalizes this path down to slash slash dot slash C colon because it thinks that after the question mark, everything doesn't matter. 362 00:30:53,770 --> 00:31:00,630 And this is a way to bypass MapUrlToZone because Mutz will clearly treat this path on the local machine. 363 00:31:01,010 --> 00:31:02,510 Really, really cool, George. 364 00:31:02,510 --> 00:31:05,150 I'm curious, how did you find this? 365 00:31:05,610 --> 00:31:13,530 Well, Rohit, I tried a bunch of paths and I tried a bunch of characters in that specific spot because I thought that specific spot would be interesting. 366 00:31:13,890 --> 00:31:19,130 And I basically pressed every single button on the keyboard until question mark fell out and I was able to find a bypass. 367 00:31:19,190 --> 00:31:20,470 Super impressive. 368 00:31:20,670 --> 00:31:24,250 Let's go on to a bypass that Rohit won't make fun of me for. 369 00:31:24,250 --> 00:31:26,930 This is another canonicalization-based bypass. 370 00:31:26,930 --> 00:31:30,470 This one uses what's called a Landman Redirector. 371 00:31:30,630 --> 00:31:37,570 If you don't know what a Landman Redirector is, just ignore it in your mind and just move on to the next part, which is the IP address. 372 00:31:37,710 --> 00:31:42,670 All the Landman Redirector is really doing is saying, hey, I want to use SMB to make this request. 373 00:31:42,670 --> 00:31:51,670 We then have two slashes immediately after the Redirector, followed by the IP address we're going to be reaching out to and the file share. 374 00:31:52,330 --> 00:32:01,290 CreateFile sees these two slashes, doesn't care about it, knocks them down to one single slash and makes the request out to a remote path. 375 00:32:01,290 --> 00:32:06,790 However, Mutts gets a little bit tripped up with these two slashes. 376 00:32:07,030 --> 00:32:11,490 Specifically, it does not do the canonicalization first. 377 00:32:11,630 --> 00:32:16,290 So it's actually looking for a host name in between the two slashes. 378 00:32:16,630 --> 00:32:24,450 Therefore, there's nothing inside of these two slashes and Mutts happens to default to returning that this is a local path. 379 00:32:24,450 --> 00:32:28,510 And I thought this was really interesting because this is a pretty subtle thing, right? 380 00:32:28,510 --> 00:32:36,230 We've only added a single slash to a normal path, yet using this, we were able to bypass MapViewer AutoZone. 381 00:32:37,290 --> 00:32:42,810 Now for this next example, I'm going to be asking for some audience participation here, so get ready. 382 00:32:43,330 --> 00:32:47,670 You'll notice that the only difference between these two paths is a single slash. 383 00:32:47,670 --> 00:32:50,490 In the first one, we only have one slash before local host. 384 00:32:50,490 --> 00:32:53,610 In the second one, we have two slashes before local host. 385 00:32:53,610 --> 00:33:00,130 How many people think that when we open this file, CreateFile will treat these two paths differently? 386 00:33:00,130 --> 00:33:01,150 Show of hands. 387 00:33:02,830 --> 00:33:04,430 Okay, I see a few hands. 388 00:33:04,430 --> 00:33:10,110 How many people think that CreateFile will treat these two paths the same when we try to open them? 389 00:33:10,610 --> 00:33:12,510 Okay, I see a lot more hands. 390 00:33:12,510 --> 00:33:15,250 This is exactly what I thought, right? 391 00:33:15,250 --> 00:33:18,910 I mean, we only added a single additional slash in here. 392 00:33:18,910 --> 00:33:20,710 And we just saw an example. 393 00:33:20,710 --> 00:33:25,550 The last example I showed you had two slashes after the landman redirector. 394 00:33:25,550 --> 00:33:27,570 CreateFile didn't care. 395 00:33:27,830 --> 00:33:35,570 However, when I tested this out, I found that CreateFile actually does treat these two paths differently. 396 00:33:35,570 --> 00:33:41,930 And that's because when we do the canonicalization, there's an order of operations that takes place. 397 00:33:41,930 --> 00:33:49,190 So in this first example, when I try to use this path, what happens is the canonicalization logic is a little bit weird. 398 00:33:49,530 --> 00:33:53,890 So when we have the dot dot, local host remains the host name. 399 00:33:53,890 --> 00:33:55,390 It doesn't go away. 400 00:33:55,590 --> 00:34:02,210 And so we end up making a request out to local host looking for a share that's named an IP address. 401 00:34:02,350 --> 00:34:08,210 There's no share named an IP address on the local machine, so CreateFile can't find that file. 402 00:34:08,210 --> 00:34:13,670 However, when we use the second slash, the order of operations changes. 403 00:34:13,870 --> 00:34:16,330 As a result, local host goes away. 404 00:34:16,370 --> 00:34:21,950 And we end up making a request out to the remote IP address, to that share, and to that file. 405 00:34:21,950 --> 00:34:25,450 And we're able to open it up totally fine using CreateFile. 406 00:34:26,030 --> 00:34:29,130 And this is something that's really fundamental to this talk. 407 00:34:29,130 --> 00:34:34,570 Is that map URL to zone has a really, really difficult problem to solve. 408 00:34:34,570 --> 00:34:40,750 This is an incredibly tiny nuance that I think most people wouldn't expect to happen. 409 00:34:40,830 --> 00:34:45,670 Yet it's something that map URL to zone has to be able to handle in every single case. 410 00:34:45,670 --> 00:34:49,050 Or else we'll be in that worst case scenario that Rohit was talking about. 411 00:34:49,630 --> 00:34:52,450 So let's take a look at exactly what this path does. 412 00:34:52,450 --> 00:34:55,450 Once again, I'll break it down into its component parts. 413 00:34:55,450 --> 00:35:00,290 So first we have the landman redirector, followed by two slashes. 414 00:35:00,290 --> 00:35:04,430 Then I have local host, followed by the path traversal characters. 415 00:35:04,430 --> 00:35:08,190 We just showed with CreateFile that local host will go away. 416 00:35:08,350 --> 00:35:14,270 Leading us to end up reaching out to the remote IP address, followed by the file path. 417 00:35:14,910 --> 00:35:22,350 What happens in map URL to zone is it always does what CreateFile did in that first example. 418 00:35:22,570 --> 00:35:24,950 It simply will reach out to local host. 419 00:35:25,450 --> 00:35:28,250 Notice that local host must be the host name. 420 00:35:28,310 --> 00:35:34,030 And as a result, Mutz thinks that the path actually starts with slash slash local host. 421 00:35:34,030 --> 00:35:36,310 That's clearly a local path. 422 00:35:36,310 --> 00:35:39,090 And as a result, Mutz says, hey, this is local. 423 00:35:39,090 --> 00:35:43,610 Despite it being something that's actually treated by the OS as remote. 424 00:35:44,410 --> 00:35:50,330 The final example of a Mutz bypass I want to share with you is one of my personal favorites. 425 00:35:50,330 --> 00:35:56,930 And it's one of my favorites because it is the only vulnerability I've ever discovered while I was in bed. 426 00:35:57,270 --> 00:36:02,030 And basically the way that this worked is I was reading through Ben Barnea's research blogs. 427 00:36:02,070 --> 00:36:05,190 And I noticed this kind of throwaway thought that he had. 428 00:36:05,190 --> 00:36:07,630 And I love it when people do this sort of thing. 429 00:36:07,630 --> 00:36:09,590 I love it when they have these throwaway thoughts. 430 00:36:09,590 --> 00:36:14,230 Because it's a direct link into their minds to see what they're thinking at the time. 431 00:36:14,510 --> 00:36:20,870 And he noticed some weird behavior around paths that started with slash slash dot slash UNC. 432 00:36:21,350 --> 00:36:32,650 Specifically what he noticed was that if a path starts with that prefix and then immediately after there's a C colon, it will always return zero, which is on the local machine. 433 00:36:33,010 --> 00:36:36,330 Now, he wasn't able to figure out anything that he could do with this. 434 00:36:36,330 --> 00:36:43,150 Because as he says here, no network provider that he found was able to handle a path with a colon in it. 435 00:36:43,150 --> 00:36:47,710 And I was in bed reading this and I was like, what about IPv6? 436 00:36:48,170 --> 00:36:49,990 IPv6 can handle paths with colons in it. 437 00:36:49,990 --> 00:36:51,970 It's literally the point of IPv6. 438 00:36:52,170 --> 00:36:57,090 And after a very fitful night of sleep, I ran downstairs, I tried out this path. 439 00:36:57,090 --> 00:36:59,310 And indeed, this does actually get around mutts. 440 00:36:59,450 --> 00:37:03,050 So you just need an IPv6 address that starts with C colon. 441 00:37:03,610 --> 00:37:08,150 Admittedly, it's probably a little bit hard to actually buy an IPv6 address starting with C colon. 442 00:37:08,430 --> 00:37:10,910 But I thought this was a really interesting example. 443 00:37:11,090 --> 00:37:13,950 And I also really want to say, you know, thank you to Ben for his research. 444 00:37:14,210 --> 00:37:18,890 Because it served us so much more than just fixing the bugs that he came up with. 445 00:37:18,890 --> 00:37:22,190 Because what it meant is that we're able to do so much more work. 446 00:37:22,270 --> 00:37:26,990 Figure out what's going on under the hood with mutts and find more bugs like this one. 447 00:37:27,730 --> 00:37:33,910 The final thing I want to talk about is a double free vulnerability that we found inside of MapYourAlta Zone. 448 00:37:34,450 --> 00:37:36,630 And this happened when we were doing some testing. 449 00:37:36,630 --> 00:37:40,710 So as Rohit alluded to earlier, we don't just leave our engineering teams out to dry. 450 00:37:40,710 --> 00:37:41,510 We help them out. 451 00:37:41,510 --> 00:37:42,530 We bring them along. 452 00:37:42,530 --> 00:37:45,210 We try to think like a security researcher would. 453 00:37:45,530 --> 00:37:47,890 And we tried this very simple path. 454 00:37:47,890 --> 00:37:53,170 So we tried to put together a fix for one of the canonicalization vulnerabilities I talked about earlier. 455 00:37:53,210 --> 00:37:57,290 And we noticed when we tried this path, mutts would crash. 456 00:37:57,390 --> 00:38:00,990 And the reason it was crashing is because we were trying to be good citizens. 457 00:38:01,010 --> 00:38:07,230 We tried to add in an additional cleanup call, an additional deletion or free here on this property field. 458 00:38:07,230 --> 00:38:11,790 But it turns out there's actually a dangling reference to this property somewhere else. 459 00:38:11,790 --> 00:38:15,930 And when that cleanup took place, it ended up having a double free. 460 00:38:15,930 --> 00:38:23,470 And I think that double frees or memory safety issues in general are really, really interesting in mutts. 461 00:38:23,770 --> 00:38:28,070 That's because if you have a memory safety issue, you can immediately go after that. 462 00:38:28,070 --> 00:38:31,030 You can immediately try to exploit that vulnerability. 463 00:38:31,090 --> 00:38:36,610 You don't need to do any of the NTLM stuff that Rohit was talking about earlier if you have a memory safety bug. 464 00:38:36,610 --> 00:38:39,230 So we really want to find stuff like this. 465 00:38:40,310 --> 00:38:51,270 Okay, so in total, I was able to find two path prefix vulnerabilities, four hostname misclassification vulnerabilities, four canonicalization vulnerabilities, and two miscellaneous bugs. 466 00:38:51,330 --> 00:38:53,570 Ways to bypass Map your AutoZone. 467 00:38:53,570 --> 00:38:59,650 So in total, I was able to find 12 different CVEs that have been fixed since January in Map your AutoZone. 468 00:38:59,850 --> 00:39:01,370 Hold up, hold up, wait. 469 00:39:01,370 --> 00:39:05,150 Sorry, I think you meant to say bugs that we found. 470 00:39:05,150 --> 00:39:07,430 Well, let's check the CVE then, huh? 471 00:39:07,430 --> 00:39:11,510 Okay, I mean, sure, there's this one CVE that has just your name. 472 00:39:11,510 --> 00:39:13,490 That doesn't mean anything, right? 473 00:39:13,550 --> 00:39:16,010 See, there's another one with my name. 474 00:39:16,050 --> 00:39:20,530 I don't know why the color's off, but this is legit coming straight from the advisory. 475 00:39:22,410 --> 00:39:29,510 I just wanted to say, in our team, we really value collaboration, and we always share credits, right? 476 00:39:29,510 --> 00:39:32,490 There's absolutely no room for jealousy. 477 00:39:32,570 --> 00:39:33,530 None. 478 00:39:37,330 --> 00:39:39,630 Okay, so coming to the fixes, right? 479 00:39:39,850 --> 00:39:45,110 I mentioned this earlier, and George alluded to this too. 480 00:39:45,310 --> 00:39:50,330 One of the unique advantages that we have is, we're looking at the fixes when they're in development. 481 00:39:51,050 --> 00:39:56,390 So when we're seeing these trends and patterns of issues, we want to get ahead of the curve. 482 00:39:56,390 --> 00:40:06,870 Not just do point fixes, but really try to find that one common theme across all the categories of issues that George talked about to try and mitigate it, right? 483 00:40:06,870 --> 00:40:08,830 Prevent it from happening again in the future. 484 00:40:09,850 --> 00:40:19,590 So then the question becomes, what is that one common theme of issues, like really the root cause across all of these different categories that we talked about? 485 00:40:20,290 --> 00:40:26,450 If you were paying attention to the talk for the last 25 minutes, you already know the answer. 486 00:40:28,780 --> 00:40:32,620 As George mentioned many, many times throughout his talk, right? 487 00:40:32,900 --> 00:40:43,660 The fundamental issue is that these two APIs, create mods, which does security-sensitive stuff, and create file, which actually does the connection. 488 00:40:44,420 --> 00:40:49,400 The problem is parsing differences between these two crucial APIs. 489 00:40:49,960 --> 00:41:00,620 Sometimes subtle, but sometimes not so subtle differences in how the paths that you pass to these API get canonicalized or collapsed. 490 00:41:02,540 --> 00:41:05,720 So what has changed since early 2025? 491 00:41:05,720 --> 00:41:14,780 We work with teams within Microsoft to change MapRule-to-Zone to use this API. 492 00:41:15,760 --> 00:41:17,400 What does this do? 493 00:41:17,400 --> 00:41:25,030 This goes down the same code path for canonicalizing paths or collapsing paths that create file uses. 494 00:41:25,480 --> 00:41:33,720 Essentially, we eliminated the parsing differences between MapRule-to-Zone and create file in these special scenarios. 495 00:41:35,920 --> 00:41:41,360 As you can imagine, right, this is decades old coming from Internet Explorer's time. 496 00:41:41,360 --> 00:41:51,040 And as with any API that has tons and tons of legacy dependencies and decisions built into it, there's obviously going to be regressions. 497 00:41:51,200 --> 00:41:55,260 So we faced some of those and added some special case logic to handle those. 498 00:41:55,260 --> 00:42:10,940 It's a whole other talk to get into every single regression, but ultimately what I want to emphasize is, since January 2025, we have a version of mods that under the hood uses the same canonicalization or collapsing that create file uses. 499 00:42:12,280 --> 00:42:18,300 Another cool benefit of this mitigation is this actually reduces complexity. 500 00:42:18,580 --> 00:42:32,300 You can imagine over the years as we started making these point fixes to mods or MapRule-to-Zone, the implementation just diverged quite a bit from how create file handles the canonicalization or collapsing. 501 00:42:32,300 --> 00:42:38,580 But by getting both of them on par, we actually reduced a lot of the complexity and the code size. 502 00:42:40,360 --> 00:42:42,340 Okay, to wrap it up. 503 00:42:42,380 --> 00:42:43,960 What are the takeaways? 504 00:42:44,060 --> 00:42:52,420 We found a bunch of issues with mods built upon the work of external security researchers who sent us their awesome research. 505 00:42:52,420 --> 00:43:01,180 We developed a mitigation for the security critical API mods or MapRule-to-Zone, and it has been active since January 2025. 506 00:43:03,400 --> 00:43:14,660 Finally, I would like to emphasize, and this is something we talked about a couple of times, a lot of the code here is old, complex, and quite a bit of the context has been lost over the years. 507 00:43:14,920 --> 00:43:23,560 So if you're working on this area of research and you have any fixed ideas, whether they be point fixes or systemic fixes, please do send it to us. 508 00:43:23,560 --> 00:43:30,280 We'd love to incorporate your ideas and actually think about how we can get ahead of the problem and do a full holistic mitigation. 509 00:43:34,260 --> 00:43:40,640 Most of the work that we presented here is thanks to the support of a lot of teams and people within Microsoft. 510 00:43:41,380 --> 00:43:46,940 Too many to name, but special shout-out to these fine folks that you see on the slide here. 511 00:43:47,420 --> 00:43:53,420 I will also say, if your first name is Ben, you have a natural inclination to this line of research. 512 00:43:53,600 --> 00:43:55,640 Ben Barnia, hero of the talk. 513 00:43:55,640 --> 00:44:00,820 We also have two amazing Bens internal to Microsoft, so special shout-out to them as well. 514 00:44:01,560 --> 00:44:07,200 And, yeah, finally, thank you to those who actually chose our talk. 515 00:44:07,200 --> 00:44:08,320 Thank you for coming. 516 00:44:08,340 --> 00:44:11,640 And to those who accidentally ended up here but still decided to stay. 517 00:44:11,640 --> 00:44:12,460 Thank you.