WEBVTT

00:00.000 --> 00:01.140
Good afternoon.

00:01.140 --> 00:04.400
This title of this talk is What is Dead May Never Die.

00:04.400 --> 00:07.280
Ladies and gentlemen, Rohit and George.

00:11.840 --> 00:13.160
Thank you.

00:13.680 --> 00:14.400
Hello?

00:15.640 --> 00:16.760
Okay.

00:17.000 --> 00:19.360
Hello and welcome to our talk.

00:19.700 --> 00:23.100
The title of our talk is What is Dead May Never Die.

00:23.520 --> 00:25.220
We're so proud of the title, right?

00:25.220 --> 00:28.480
Such a cool, unique, clever name.

00:29.220 --> 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.

00:41.260 --> 00:43.980
So bad news for some of you.

00:43.980 --> 00:48.580
If you're here for that talk, you want to go to that room.

00:49.380 --> 00:51.280
But it's level two, right?

00:51.280 --> 00:52.340
Bit of a walk.

00:52.340 --> 00:55.100
My suggestion, stay for this talk.

00:56.260 --> 00:59.040
We have amazing memes.

00:59.880 --> 01:01.980
Some really high quality presentation.

01:04.420 --> 01:05.560
Okay.

01:05.560 --> 01:07.420
Let's get right to it.

01:08.340 --> 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.

01:37.350 --> 01:41.910
Show of hands, how many of you remember or recognize this window?

01:42.670 --> 01:44.170
Yep, yep, pretty much all of you.

01:44.170 --> 01:45.650
All of you are old like me.

01:45.930 --> 01:48.070
That's the classic Internet Explorer, right?

01:48.870 --> 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.

02:00.110 --> 02:09.810
And now that we have your attention, right, your undivided attention, we're going to be talking about ourselves.

02:11.890 --> 02:14.950
So hey, my name is Rohit, I work for Microsoft.

02:15.450 --> 02:16.850
Uh, oh hey!

02:17.310 --> 02:22.070
I work for Microsoft Security Response Center, or MSRC.

02:22.510 --> 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.

02:34.050 --> 02:38.710
Fast forward all these years, and I'm still talking about Internet Explorer, right?

02:38.930 --> 02:42.710
I would like to think that shows you I'm really persistent.

02:43.150 --> 02:45.970
But you could also argue that I'm kind of stuck in the past.

02:45.970 --> 02:49.250
I agree, Rohit, I think he is stuck in the past.

02:49.530 --> 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.

02:58.670 --> 03:00.690
Thank you for that wonderful introduction, George.

03:02.630 --> 03:08.450
Okay, so how does your typical security research talk, uh, process look like, right?

03:08.450 --> 03:13.470
You're an independent security researcher, what's the first thing that you do?

03:14.030 --> 03:15.930
Pick a target, right?

03:15.930 --> 03:21.190
Easier said than done, probably the hardest part of security research, just pick the right target.

03:21.670 --> 03:28.010
Then you develop some tools, hopefully find some bugs, and then you submit it to the vendor.

03:29.410 --> 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?

03:34.570 --> 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.

03:41.530 --> 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.

03:50.330 --> 03:52.390
You go back to the first step, right?

03:52.390 --> 03:57.350
That's how your typical research process looks like when you're external researchers.

03:58.610 --> 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.

04:12.490 --> 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?

04:21.430 --> 04:24.290
So we see all of those bugs, patterns, trends.

04:25.530 --> 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?

04:32.690 --> 04:37.450
Developers, architects, PMs, lots of people.

04:37.450 --> 04:45.010
So we have discussions and conversations with these experts, and we might identify a few issues of our own internally, right?

04:45.010 --> 04:50.050
And then we raise these issues with the engineering team, trying to get to fix them.

04:50.710 --> 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?

05:01.010 --> 05:04.990
We're internal, so we don't have to wait for the fix to be public.

05:05.490 --> 05:12.910
So yeah, those two important distinctions I just wanted to highlight, that's what distinguishes, like, the internal security research process.

05:15.030 --> 05:19.630
Okay, why are we talking about Internet Explorer in 2025?

05:20.090 --> 05:22.190
Like, surely it's dead, right?

05:22.190 --> 05:23.190
Why do we care?

05:24.210 --> 05:27.410
Let's look at this CVE, and as you can see, it's from 2025.

05:29.390 --> 05:32.290
We look at the title, it says, map URL to zone.

05:32.290 --> 05:36.670
Okay, some of you might have noticed this in the title of our talk, so it's relevant.

05:36.670 --> 05:37.890
Let's keep going.

05:39.030 --> 05:45.130
And this long line basically just says, this issue affects Microsoft Windows.

05:45.490 --> 05:47.350
Okay, so far so good.

05:47.830 --> 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?

05:59.450 --> 06:04.230
Hold on, why are we downloading Internet Explorer updates?

06:04.250 --> 06:06.350
That looks really suspicious.

06:06.590 --> 06:11.590
Or as my Gen Z friend George here would say, that looks pretty sus, dude.

06:11.670 --> 06:14.250
That looks really sus.

06:16.130 --> 06:18.290
So what's the truth of the matter?

06:18.890 --> 06:25.670
Yes, Microsoft has retired Internet Explorer 11, the glorious browser back in the day, right?

06:25.670 --> 06:28.610
But it's still kind of present for legacy use cases.

06:28.730 --> 06:39.070
Moreover, the underlying HTML engine, the scripting engine, the helper utilities are still present on Windows and still used.

06:41.560 --> 06:48.220
So here's a screenshot of a DLL in system 32 folder on the latest Windows, right?

06:48.220 --> 06:50.440
Hopefully all of you can read the highlighted section.

06:50.440 --> 06:54.680
It says, runtime utility for Internet Explorer.

06:55.320 --> 06:57.100
Mind you, this is on the latest Windows.

06:57.100 --> 06:59.480
So clearly the binary still exists.

07:01.720 --> 07:07.260
Back to the good old Internet Explorer window that we looked at a couple of slides ago.

07:08.100 --> 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.

07:25.260 --> 07:28.100
So like you can read some of them, right?

07:28.100 --> 07:30.940
The first is Internet, then there's local Internet, etc.

07:30.940 --> 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.

07:43.920 --> 07:45.900
Don't let me do any dangerous stuff.

07:45.900 --> 07:47.980
Or at least prompt, right?

07:47.980 --> 07:54.800
And then you could customize it further by saying, if the website that I'm visiting is trusted, it's fine.

07:54.800 --> 07:55.960
Let me do some crazy stuff.

07:55.960 --> 07:57.400
You don't have to prompt.

07:57.520 --> 07:59.260
That was the idea, right?

07:59.260 --> 08:03.200
Back in the 90s with this whole security zones with Internet Explorer.

08:04.340 --> 08:13.360
Even though you don't use Internet Explorer anymore, this fundamental security zones concept is super relevant even in Windows today.

08:13.580 --> 08:20.380
And a lot of the Windows applications have since adopted this technology to make security decisions on the system.

08:24.670 --> 08:26.530
Okay, so who's using this stuff?

08:26.530 --> 08:27.190
Right?

08:27.190 --> 08:28.570
On latest Windows.

08:29.530 --> 08:36.250
There's Mark of the Web that various applications use, Windows Shell, File Explorer, your AV.

08:37.630 --> 08:42.150
Office is a great example that a lot of you might be familiar with.

08:42.150 --> 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.

08:59.070 --> 09:02.610
Meaning a lot of the potentially dangerous features are disabled.

09:03.090 --> 09:03.410
Right?

09:03.410 --> 09:08.950
Some of you might remember this, when you open the doc, you have to go up top and click enable editing.

09:09.150 --> 09:12.290
Until you do that, you can't really interact with a lot of features.

09:12.670 --> 09:14.030
So that's what's going on.

09:16.070 --> 09:21.450
And so yeah, all of these things on Windows rely fundamentally on this security zones thing.

09:22.030 --> 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?

09:31.390 --> 09:32.490
That's a great question.

09:32.490 --> 09:38.210
And as you see on there, the API on Windows to do that is called Map URL to Zone.

09:40.350 --> 09:42.030
So what is this API?

09:42.430 --> 09:44.490
It's a user mode API.

09:45.330 --> 09:47.830
We lovingly call it MUDs.

09:47.830 --> 09:49.030
Kind of a weird name.

09:49.030 --> 09:52.370
But Map URL to Zone, that's too much to say.

09:52.370 --> 09:57.470
So if George and I keep saying MUDs throughout the presentation, know we're talking about this API.

09:58.330 --> 10:01.870
The functionality is split between these two DLLs.

10:02.690 --> 10:03.650
And what does it do?

10:03.650 --> 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?

10:18.270 --> 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.

10:25.570 --> 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?

10:35.250 --> 10:38.430
Internet zone, intranet zone, etc.

10:40.670 --> 10:45.310
So long story short, it's a pretty security critical API in Windows.

10:45.310 --> 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.

10:56.080 --> 10:57.100
Cool.

10:57.220 --> 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?

11:10.540 --> 11:11.960
Even the latest Windows.

11:12.420 --> 11:16.000
And a natural question is, well, why do we care?

11:16.000 --> 11:17.280
What's the impact?

11:17.280 --> 11:21.880
What's really the worst case scenario if something goes wrong with this API?

11:24.080 --> 11:27.280
And to do that, we need to talk about this bug.

11:27.280 --> 11:31.900
Go two years back to 2023, and you can see a CVE on there.

11:32.600 --> 11:39.700
This bug affected Outlook, the mail client, and the story of this bug starts with a sound file.

11:41.020 --> 11:42.620
What are sound files?

11:43.140 --> 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.

11:53.000 --> 11:58.800
Highlighted here on the screen, you'll see it says Windows notify email dot wave file, right?

11:59.200 --> 11:59.980
Pretty evident.

11:59.980 --> 12:01.940
When does this wave file get displayed?

12:02.220 --> 12:07.460
When you receive an email, Windows will notify you by playing this particular sound.

12:07.460 --> 12:08.760
It's a default sound.

12:11.860 --> 12:12.740
Okay.

12:13.240 --> 12:15.060
So let's get to the bug.

12:15.300 --> 12:16.820
What was going on?

12:17.100 --> 12:22.580
Turns out in Outlook, the mail client, you can actually create reminders.

12:22.580 --> 12:25.140
These are reminder tasks, right?

12:25.160 --> 12:27.200
For yourself or other users.

12:27.540 --> 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.

12:34.680 --> 12:40.460
So you can imagine when the reminder fires, that particular wave file will be played to notify you.

12:42.040 --> 12:45.780
Well, actually it turns out you can overwrite that.

12:45.780 --> 12:50.400
And you can say, play this custom sound file, not the default one.

12:51.400 --> 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.

13:02.320 --> 13:08.740
You can actually point it to a network share and say, hey, Outlook, play that sound file from that network share.

13:11.680 --> 13:17.220
So this CVE was a zero click, no user interaction attack vector.

13:17.320 --> 13:26.620
Back in 2023, this was exploited in the wild by a nation state threat actor that's tracked this forest blizzard.

13:28.600 --> 13:30.560
So how did the attack work?

13:30.560 --> 13:31.960
Just visually, right?

13:32.640 --> 13:36.660
The attacker would create a reminder task in Outlook.

13:37.420 --> 13:42.380
They'll override the default sound that will be played when the reminder triggers.

13:42.820 --> 13:47.940
And instead, they'll say, hey, play this file from a network share that I control.

13:48.400 --> 13:50.620
And the attacker will send that to the victim.

13:54.200 --> 13:57.560
There's no user interaction needed from the victim side.

13:57.560 --> 13:59.440
You don't have to interact with the reminder.

13:59.440 --> 14:00.380
You don't have to look at it.

14:00.380 --> 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.

14:08.940 --> 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.

14:18.280 --> 14:23.900
In this process, Windows will authenticate to the attacker control server using NTLM.

14:23.900 --> 14:32.320
And the attacker can use this NTLM hash to relate against a vulnerable exchange server.

14:32.680 --> 14:33.980
What happens at that point?

14:33.980 --> 14:40.160
The attacker can essentially authenticate on your behalf to that vulnerable exchange server, right?

14:40.160 --> 14:46.220
And all of this, just to highlight again, happens with zero clicks.

14:46.220 --> 14:47.500
No user interaction.

14:47.500 --> 14:49.580
Pretty much the worst case scenario.

14:51.980 --> 14:52.580
Okay.

14:52.580 --> 14:53.600
We talked about this bug.

14:53.600 --> 14:54.320
It's really cool.

14:54.320 --> 14:57.560
How does it relate to mods or map your older zone?

14:58.180 --> 15:02.060
And for that, we need to talk about how this was fixed back in 2023.

15:02.320 --> 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.

15:13.800 --> 15:14.180
Right?

15:14.180 --> 15:20.000
So, like your Outlook client would just not respect the custom sound file that you pass.

15:20.040 --> 15:21.320
It's all fine.

15:22.000 --> 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?

15:37.720 --> 15:38.420
Right?

15:38.420 --> 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.

15:46.140 --> 15:47.400
What was the logic?

15:47.480 --> 15:53.120
Check the security zone of this file that we're going to try and connect to, reach out to.

15:53.220 --> 15:58.120
And if it's coming from an internet or untrusted zone, don't reach out.

15:59.980 --> 16:02.640
We made additional mitigations for this.

16:02.640 --> 16:09.040
It involved other components like exchange server, but that's not really relevant for our discussion here.

16:09.720 --> 16:15.000
What I want to emphasize again is this answers the question that we asked a couple of slides ago.

16:15.000 --> 16:20.640
What's the worst case that can happen if there's bugs with map your older zone or mods?

16:20.720 --> 16:21.540
Right?

16:21.560 --> 16:28.620
This API we're relying on in a security critical code path in a zero click attack vector.

16:34.540 --> 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.

16:42.060 --> 16:46.500
In fact, that looks like you George without the mustache though.

16:46.720 --> 16:48.040
That's not me Rohit.

16:48.060 --> 16:49.960
You've known me for five years.

16:49.980 --> 16:52.460
He's going to be in my wedding and he doesn't even know what I look like.

16:52.460 --> 16:53.520
Come on now, bud.

16:53.600 --> 16:57.380
This is a researcher by the name of Ben Barnia.

16:57.860 --> 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.

17:11.980 --> 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.

17:25.980 --> 17:29.580
And I'm going to be using the term canonicalization quite a bit today.

17:29.620 --> 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.

17:40.820 --> 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.

17:50.480 --> 17:57.080
In this example, he uses a path that starts with slash slash localhost slash dot dot.

17:57.080 --> 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.

18:08.500 --> 18:13.260
And as a result, we reach out to Akamai.com to make a request.

18:13.660 --> 18:16.340
However, Mutz doesn't do that.

18:16.440 --> 18:19.460
Mutz thinks that the host name is localhost.

18:19.460 --> 18:23.140
So therefore Mutz classifies this as a local path.

18:23.140 --> 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.

18:34.260 --> 18:37.440
So Ben continued to do quite a bit of research in this area.

18:37.680 --> 18:43.100
He ended up releasing a four part blog series on his research into map url to zone.

18:43.440 --> 18:47.520
And in total, Ben found three ways to bypass map url to zone.

18:47.520 --> 18:50.440
And he also found a double free vulnerability.

18:50.940 --> 18:54.020
And I think that this double free vulnerability is super interesting.

18:54.020 --> 18:57.420
It's something we're going to get into a little bit later in the presentation.

18:58.460 --> 19:05.880
Now Ben really made us rethink how we thought about canonicalization in Mutz internally at Microsoft.

19:06.100 --> 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.

19:16.740 --> 19:21.240
And so that's when Rohit and I started looking into map url to zone.

19:21.340 --> 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.

19:27.560 --> 19:32.140
Here's where I'd love to tell you about the complex tooling, the fuzzers we built.

19:32.260 --> 19:37.380
Actually Rohit did build a fuzzer , but unfortunately that fuzzer did not find anything.

19:37.720 --> 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.

19:45.820 --> 19:48.060
Obviously I'm simplifying a little bit here.

19:48.060 --> 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.

19:56.760 --> 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.

20:07.460 --> 20:15.600
These categories are path prefixes, host name misclassification, canonicalization, again, and miscellaneous.

20:16.080 --> 20:20.460
So let's run through the first category, which is path prefixes.

20:20.520 --> 20:24.560
Now path prefixes are pretty interesting, but they're not always applicable.

20:24.880 --> 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.

20:31.740 --> 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.

20:40.520 --> 20:43.500
It only opens paths starting with file colon.

20:43.780 --> 20:48.480
However, there are other API's that do let you control the start of the path.

20:48.480 --> 20:50.280
And so that's what these apply to.

20:50.520 --> 20:56.620
In this case, we noted some interesting behavior with the shell colon scheme.

20:56.740 --> 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.

21:07.140 --> 21:11.820
However, there's a trick you can use to actually specify a remote path.

21:11.820 --> 21:14.020
And this is exactly the trick that we use.

21:14.020 --> 21:16.400
We use the network places folder.

21:16.540 --> 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.

21:24.020 --> 21:29.040
But MUTs will classify this as a local path, despite it clearly being a remote path.

21:29.380 --> 21:30.640
Well, why is that?

21:30.640 --> 21:38.160
It turns out that in Windows, there's this registry that has some defaults, some protocol defaults.

21:38.220 --> 21:42.280
MUTs will go to these protocol defaults and try to run a quick query.

21:42.620 --> 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?

21:52.300 --> 21:56.700
And in this case, you'll see that the default value for shell is zero.

21:56.780 --> 22:01.500
Zero, if you're paying attention to Rohit earlier, maps to the local machine.

22:02.340 --> 22:04.020
So MUTs completely stops.

22:04.020 --> 22:06.200
It says, hey, I know what this is going to be.

22:06.480 --> 22:10.600
The operating system tells me that the default should always be local machine.

22:10.640 --> 22:12.680
Therefore, this path must be local.

22:12.720 --> 22:14.240
But it's not a local path.

22:14.240 --> 22:15.900
Create file treats this differently.

22:16.900 --> 22:22.720
The next category of vulnerabilities I want to talk about are hostname misclassification vulnerabilities.

22:23.180 --> 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.

22:37.700 --> 22:45.820
I'm But before I do that, we need to understand a little bit about how hostname misclassification vulnerabilities actually work.

22:45.920 --> 22:50.900
And you might have guessed it, it happens when MUTs is trying to classify the hostname.

22:51.240 --> 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.

23:01.930 --> 23:05.950
What this means in practice is there's a little bit of a problem here.

23:06.030 --> 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.

23:15.110 --> 23:19.970
And this is a really key thing, because we then have to do a DNS lookup, right?

23:19.970 --> 23:23.830
MUTs has to figure out, is this on the local internet?

23:24.370 --> 23:26.730
Or is this on the wider internet?

23:27.530 --> 23:30.110
So there's two main things we have to do here.

23:30.310 --> 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.

23:41.390 --> 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.

23:49.170 --> 23:53.910
The second thing we need to satisfy is we can't use any dots inside the hostname.

23:53.930 --> 24:00.430
Because what ends up happening is when the DNS lookup takes place, it will try to look for that hostname.

24:00.570 --> 24:05.230
If it's something like rohit.com, that's clearly part of the wider internet.

24:05.230 --> 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.

24:14.450 --> 24:15.350
Okay.

24:15.350 --> 24:21.490
So this second requirement is pretty easy to satisfy with IPv6 paths.

24:21.510 --> 24:25.670
The reason being, IPv6 does not use periods.

24:25.750 --> 24:26.030
Right?

24:26.030 --> 24:27.750
It uses colons as a separator.

24:27.750 --> 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.

24:38.070 --> 24:41.770
Now, this is an actual way that we were able to bypass Map Bureau zone.

24:42.130 --> 24:44.970
There are three main components to this path.

24:45.170 --> 24:48.570
The first is the IPv6 address of the target.

24:48.570 --> 24:48.730
Right?

24:48.730 --> 24:51.230
So we have the slash slash and then the IP address.

24:51.570 --> 24:54.570
Immediately after, we have the interface being used.

24:54.750 --> 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.

25:02.110 --> 25:08.790
In this case, we're telling create file, hey, I want to make this request over interface number 12.

25:09.830 --> 25:13.530
Finally, we have a path to a file name at the end of this.

25:13.910 --> 25:18.010
And you'll notice something a little weird about the second part of this path.

25:18.010 --> 25:20.270
There's a lot of zeros at the start of it.

25:20.550 --> 25:23.550
And create file doesn't care about these zeros.

25:23.610 --> 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.

25:31.930 --> 25:33.610
And everything is totally fine.

25:34.750 --> 25:38.010
However, map your order zone does not do that.

25:38.270 --> 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.

25:49.110 --> 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.

25:57.190 --> 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.

26:06.070 --> 26:07.510
And this is the key difference, right?

26:07.510 --> 26:11.870
Now we figured out a way to convince Mutz that something is local, right?

26:11.870 --> 26:12.950
It's very nearby.

26:13.030 --> 26:15.450
But this is clearly on the wider internet.

26:15.450 --> 26:17.170
This is something very far away.

26:18.690 --> 26:25.670
The second example of hostname misclassification I'm going to be sharing with you all is in IPv4 parsing.

26:26.010 --> 26:30.330
So in this case, once again, we have three main components to this path.

26:30.330 --> 26:33.170
We start out with the IPv4 address.

26:33.310 --> 26:34.630
And this might look a little bit weird.

26:34.630 --> 26:36.090
I'm going to get to this in a second.

26:36.490 --> 26:39.250
The second part of this path is the port.

26:39.410 --> 26:42.470
This is the port that we're going to be making the request over.

26:42.790 --> 26:45.330
And then finally, once again, we have the file path.

26:45.590 --> 26:49.990
You'll notice, again, there's a little something weird about the second part of this path.

26:49.990 --> 26:54.050
Once again, there's a preceding zero in the port number.

26:54.470 --> 26:56.950
And createFile does exactly what you would expect.

26:56.950 --> 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.

27:06.870 --> 27:11.390
However, Mutz does something really, really interesting here.

27:11.830 --> 27:17.290
Instead, it thinks that the user is trying to use octal notation for the port.

27:17.290 --> 27:19.150
This blew my mind when I saw this.

27:19.150 --> 27:27.110
This is something similar to maybe using hexadecimal notation and providing a 0x80 at the start of the path.

27:27.110 --> 27:31.290
Instead, we provide 080 for the port number.

27:32.010 --> 27:37.570
However, you may have noticed, 8 is not a valid octal character.

27:37.570 --> 27:40.270
Valid octal characters are 0 through 7.

27:40.550 --> 27:43.710
As a result, Mutz says, this isn't a real port.

27:44.290 --> 27:47.810
So therefore, I don't think that this is an IPv4 address.

27:47.810 --> 27:49.710
It must be a DNS address.

27:49.990 --> 27:52.170
So instead, we have to do a DNS lookup.

27:52.190 --> 27:57.070
We do the DNS lookup on the hexadecimal thing at the start of this path.

27:57.410 --> 28:03.190
And since there's no dots in it, we happen to return that this is on the local internet, once again.

28:03.930 --> 28:06.790
Now, this comes back to what I alluded to a little bit earlier.

28:06.790 --> 28:09.110
There's no dots in the IP address.

28:09.110 --> 28:13.450
And this is to get around the second requirement of hostname misclassification bugs.

28:13.710 --> 28:16.930
We can't use a dot inside of the hostname.

28:17.130 --> 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.

28:26.090 --> 28:32.030
Okay, the next set of vulnerabilities I'm going to get into are some of my favorites.

28:32.030 --> 28:34.290
And these are canonicalization.

28:34.290 --> 28:38.370
The reason that these are some of my favorites is twofold.

28:38.370 --> 28:45.790
First of all, most prior research, like Ben Varney's research, focused on canonicalization bugs.

28:46.150 --> 28:49.530
What that means is a lot of the low-hanging fruit is gone.

28:49.590 --> 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.

28:55.170 --> 29:01.550
The second reason I really am interested in canonicalization-based vulnerabilities is they are ubiquitous.

29:01.550 --> 29:03.810
They'll work in every single location.

29:04.270 --> 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.

29:12.490 --> 29:16.790
And this makes this even more interesting and useful for an attacker.

29:17.950 --> 29:26.090
So let's get into the first example of a MapView AutoZone bypass that we found using a canonicalization trick.

29:26.090 --> 29:28.490
This is a bit of a more complicated path.

29:28.490 --> 29:31.370
There are five main components to this path.

29:31.370 --> 29:34.650
You'll notice this starts with slash, slash, dot, slash.

29:34.650 --> 29:39.390
That just tells the operating system we're going to be using the device namespace to make this request.

29:39.830 --> 29:41.430
Then we have C colon, right?

29:41.430 --> 29:43.270
That's our local C drive.

29:43.330 --> 29:46.270
We have a question mark, which we're going to be getting to in a little bit.

29:47.010 --> 29:51.090
Followed by two sets of path traversal characters.

29:51.410 --> 29:58.410
What createFile does, as a bit of a spoiler alert, is it knocks off the first two parts of this directory.

29:58.630 --> 30:01.870
And it ends up just treating the rest of the path as the full path.

30:02.110 --> 30:05.970
So createFile will end up reaching out to a remote path.

30:05.970 --> 30:10.570
It'll end up reaching out to that IP address and then that file path that we have at the end.

30:12.130 --> 30:17.070
However, Mutz gets a little bit tripped up on the second part of this path.

30:17.070 --> 30:19.090
And again, I think this is really interesting.

30:19.270 --> 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.

30:27.350 --> 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.

30:34.610 --> 30:36.210
However, that's not the case.

30:36.210 --> 30:38.090
This is not an HTTP path.

30:38.090 --> 30:41.830
CreateFile does not treat this as an HTTP path.

30:42.290 --> 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.

30:53.770 --> 31:00.630
And this is a way to bypass MapUrlToZone because Mutz will clearly treat this path on the local machine.

31:01.010 --> 31:02.510
Really, really cool, George.

31:02.510 --> 31:05.150
I'm curious, how did you find this?

31:05.610 --> 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.

31:13.890 --> 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.

31:19.190 --> 31:20.470
Super impressive.

31:20.670 --> 31:24.250
Let's go on to a bypass that Rohit won't make fun of me for.

31:24.250 --> 31:26.930
This is another canonicalization-based bypass.

31:26.930 --> 31:30.470
This one uses what's called a Landman Redirector.

31:30.630 --> 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.

31:37.710 --> 31:42.670
All the Landman Redirector is really doing is saying, hey, I want to use SMB to make this request.

31:42.670 --> 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.

31:52.330 --> 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.

32:01.290 --> 32:06.790
However, Mutts gets a little bit tripped up with these two slashes.

32:07.030 --> 32:11.490
Specifically, it does not do the canonicalization first.

32:11.630 --> 32:16.290
So it's actually looking for a host name in between the two slashes.

32:16.630 --> 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.

32:24.450 --> 32:28.510
And I thought this was really interesting because this is a pretty subtle thing, right?

32:28.510 --> 32:36.230
We've only added a single slash to a normal path, yet using this, we were able to bypass MapViewer AutoZone.

32:37.290 --> 32:42.810
Now for this next example, I'm going to be asking for some audience participation here, so get ready.

32:43.330 --> 32:47.670
You'll notice that the only difference between these two paths is a single slash.

32:47.670 --> 32:50.490
In the first one, we only have one slash before local host.

32:50.490 --> 32:53.610
In the second one, we have two slashes before local host.

32:53.610 --> 33:00.130
How many people think that when we open this file, CreateFile will treat these two paths differently?

33:00.130 --> 33:01.150
Show of hands.

33:02.830 --> 33:04.430
Okay, I see a few hands.

33:04.430 --> 33:10.110
How many people think that CreateFile will treat these two paths the same when we try to open them?

33:10.610 --> 33:12.510
Okay, I see a lot more hands.

33:12.510 --> 33:15.250
This is exactly what I thought, right?

33:15.250 --> 33:18.910
I mean, we only added a single additional slash in here.

33:18.910 --> 33:20.710
And we just saw an example.

33:20.710 --> 33:25.550
The last example I showed you had two slashes after the landman redirector.

33:25.550 --> 33:27.570
CreateFile didn't care.

33:27.830 --> 33:35.570
However, when I tested this out, I found that CreateFile actually does treat these two paths differently.

33:35.570 --> 33:41.930
And that's because when we do the canonicalization, there's an order of operations that takes place.

33:41.930 --> 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.

33:49.530 --> 33:53.890
So when we have the dot dot, local host remains the host name.

33:53.890 --> 33:55.390
It doesn't go away.

33:55.590 --> 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.

34:02.350 --> 34:08.210
There's no share named an IP address on the local machine, so CreateFile can't find that file.

34:08.210 --> 34:13.670
However, when we use the second slash, the order of operations changes.

34:13.870 --> 34:16.330
As a result, local host goes away.

34:16.370 --> 34:21.950
And we end up making a request out to the remote IP address, to that share, and to that file.

34:21.950 --> 34:25.450
And we're able to open it up totally fine using CreateFile.

34:26.030 --> 34:29.130
And this is something that's really fundamental to this talk.

34:29.130 --> 34:34.570
Is that map URL to zone has a really, really difficult problem to solve.

34:34.570 --> 34:40.750
This is an incredibly tiny nuance that I think most people wouldn't expect to happen.

34:40.830 --> 34:45.670
Yet it's something that map URL to zone has to be able to handle in every single case.

34:45.670 --> 34:49.050
Or else we'll be in that worst case scenario that Rohit was talking about.

34:49.630 --> 34:52.450
So let's take a look at exactly what this path does.

34:52.450 --> 34:55.450
Once again, I'll break it down into its component parts.

34:55.450 --> 35:00.290
So first we have the landman redirector, followed by two slashes.

35:00.290 --> 35:04.430
Then I have local host, followed by the path traversal characters.

35:04.430 --> 35:08.190
We just showed with CreateFile that local host will go away.

35:08.350 --> 35:14.270
Leading us to end up reaching out to the remote IP address, followed by the file path.

35:14.910 --> 35:22.350
What happens in map URL to zone is it always does what CreateFile did in that first example.

35:22.570 --> 35:24.950
It simply will reach out to local host.

35:25.450 --> 35:28.250
Notice that local host must be the host name.

35:28.310 --> 35:34.030
And as a result, Mutz thinks that the path actually starts with slash slash local host.

35:34.030 --> 35:36.310
That's clearly a local path.

35:36.310 --> 35:39.090
And as a result, Mutz says, hey, this is local.

35:39.090 --> 35:43.610
Despite it being something that's actually treated by the OS as remote.

35:44.410 --> 35:50.330
The final example of a Mutz bypass I want to share with you is one of my personal favorites.

35:50.330 --> 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.

35:57.270 --> 36:02.030
And basically the way that this worked is I was reading through Ben Barnea's research blogs.

36:02.070 --> 36:05.190
And I noticed this kind of throwaway thought that he had.

36:05.190 --> 36:07.630
And I love it when people do this sort of thing.

36:07.630 --> 36:09.590
I love it when they have these throwaway thoughts.

36:09.590 --> 36:14.230
Because it's a direct link into their minds to see what they're thinking at the time.

36:14.510 --> 36:20.870
And he noticed some weird behavior around paths that started with slash slash dot slash UNC.

36:21.350 --> 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.

36:33.010 --> 36:36.330
Now, he wasn't able to figure out anything that he could do with this.

36:36.330 --> 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.

36:43.150 --> 36:47.710
And I was in bed reading this and I was like, what about IPv6?

36:48.170 --> 36:49.990
IPv6 can handle paths with colons in it.

36:49.990 --> 36:51.970
It's literally the point of IPv6.

36:52.170 --> 36:57.090
And after a very fitful night of sleep, I ran downstairs, I tried out this path.

36:57.090 --> 36:59.310
And indeed, this does actually get around mutts.

36:59.450 --> 37:03.050
So you just need an IPv6 address that starts with C colon.

37:03.610 --> 37:08.150
Admittedly, it's probably a little bit hard to actually buy an IPv6 address starting with C colon.

37:08.430 --> 37:10.910
But I thought this was a really interesting example.

37:11.090 --> 37:13.950
And I also really want to say, you know, thank you to Ben for his research.

37:14.210 --> 37:18.890
Because it served us so much more than just fixing the bugs that he came up with.

37:18.890 --> 37:22.190
Because what it meant is that we're able to do so much more work.

37:22.270 --> 37:26.990
Figure out what's going on under the hood with mutts and find more bugs like this one.

37:27.730 --> 37:33.910
The final thing I want to talk about is a double free vulnerability that we found inside of MapYourAlta Zone.

37:34.450 --> 37:36.630
And this happened when we were doing some testing.

37:36.630 --> 37:40.710
So as Rohit alluded to earlier, we don't just leave our engineering teams out to dry.

37:40.710 --> 37:41.510
We help them out.

37:41.510 --> 37:42.530
We bring them along.

37:42.530 --> 37:45.210
We try to think like a security researcher would.

37:45.530 --> 37:47.890
And we tried this very simple path.

37:47.890 --> 37:53.170
So we tried to put together a fix for one of the canonicalization vulnerabilities I talked about earlier.

37:53.210 --> 37:57.290
And we noticed when we tried this path, mutts would crash.

37:57.390 --> 38:00.990
And the reason it was crashing is because we were trying to be good citizens.

38:01.010 --> 38:07.230
We tried to add in an additional cleanup call, an additional deletion or free here on this property field.

38:07.230 --> 38:11.790
But it turns out there's actually a dangling reference to this property somewhere else.

38:11.790 --> 38:15.930
And when that cleanup took place, it ended up having a double free.

38:15.930 --> 38:23.470
And I think that double frees or memory safety issues in general are really, really interesting in mutts.

38:23.770 --> 38:28.070
That's because if you have a memory safety issue, you can immediately go after that.

38:28.070 --> 38:31.030
You can immediately try to exploit that vulnerability.

38:31.090 --> 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.

38:36.610 --> 38:39.230
So we really want to find stuff like this.

38:40.310 --> 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.

38:51.330 --> 38:53.570
Ways to bypass Map your AutoZone.

38:53.570 --> 38:59.650
So in total, I was able to find 12 different CVEs that have been fixed since January in Map your AutoZone.

38:59.850 --> 39:01.370
Hold up, hold up, wait.

39:01.370 --> 39:05.150
Sorry, I think you meant to say bugs that we found.

39:05.150 --> 39:07.430
Well, let's check the CVE then, huh?

39:07.430 --> 39:11.510
Okay, I mean, sure, there's this one CVE that has just your name.

39:11.510 --> 39:13.490
That doesn't mean anything, right?

39:13.550 --> 39:16.010
See, there's another one with my name.

39:16.050 --> 39:20.530
I don't know why the color's off, but this is legit coming straight from the advisory.

39:22.410 --> 39:29.510
I just wanted to say, in our team, we really value collaboration, and we always share credits, right?

39:29.510 --> 39:32.490
There's absolutely no room for jealousy.

39:32.570 --> 39:33.530
None.

39:37.330 --> 39:39.630
Okay, so coming to the fixes, right?

39:39.850 --> 39:45.110
I mentioned this earlier, and George alluded to this too.

39:45.310 --> 39:50.330
One of the unique advantages that we have is, we're looking at the fixes when they're in development.

39:51.050 --> 39:56.390
So when we're seeing these trends and patterns of issues, we want to get ahead of the curve.

39:56.390 --> 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?

40:06.870 --> 40:08.830
Prevent it from happening again in the future.

40:09.850 --> 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?

40:20.290 --> 40:26.450
If you were paying attention to the talk for the last 25 minutes, you already know the answer.

40:28.780 --> 40:32.620
As George mentioned many, many times throughout his talk, right?

40:32.900 --> 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.

40:44.420 --> 40:49.400
The problem is parsing differences between these two crucial APIs.

40:49.960 --> 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.

41:02.540 --> 41:05.720
So what has changed since early 2025?

41:05.720 --> 41:14.780
We work with teams within Microsoft to change MapRule-to-Zone to use this API.

41:15.760 --> 41:17.400
What does this do?

41:17.400 --> 41:25.030
This goes down the same code path for canonicalizing paths or collapsing paths that create file uses.

41:25.480 --> 41:33.720
Essentially, we eliminated the parsing differences between MapRule-to-Zone and create file in these special scenarios.

41:35.920 --> 41:41.360
As you can imagine, right, this is decades old coming from Internet Explorer's time.

41:41.360 --> 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.

41:51.200 --> 41:55.260
So we faced some of those and added some special case logic to handle those.

41:55.260 --> 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.

42:12.280 --> 42:18.300
Another cool benefit of this mitigation is this actually reduces complexity.

42:18.580 --> 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.

42:32.300 --> 42:38.580
But by getting both of them on par, we actually reduced a lot of the complexity and the code size.

42:40.360 --> 42:42.340
Okay, to wrap it up.

42:42.380 --> 42:43.960
What are the takeaways?

42:44.060 --> 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.

42:52.420 --> 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.

43:03.400 --> 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.

43:14.920 --> 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.

43:23.560 --> 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.

43:34.260 --> 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.

43:41.380 --> 43:46.940
Too many to name, but special shout-out to these fine folks that you see on the slide here.

43:47.420 --> 43:53.420
I will also say, if your first name is Ben, you have a natural inclination to this line of research.

43:53.600 --> 43:55.640
Ben Barnia, hero of the talk.

43:55.640 --> 44:00.820
We also have two amazing Bens internal to Microsoft, so special shout-out to them as well.

44:01.560 --> 44:07.200
And, yeah, finally, thank you to those who actually chose our talk.

44:07.200 --> 44:08.320
Thank you for coming.

44:08.340 --> 44:11.640
And to those who accidentally ended up here but still decided to stay.

44:11.640 --> 44:12.460
Thank you.

