start	end	text
0	1140	Good afternoon.
1140	4400	This title of this talk is What is Dead May Never Die.
4400	7280	Ladies and gentlemen, Rohit and George.
11840	13160	Thank you.
13680	14400	Hello?
15640	16760	Okay.
17000	19360	Hello and welcome to our talk.
19700	23100	The title of our talk is What is Dead May Never Die.
23520	25220	We're so proud of the title, right?
25220	28480	Such a cool, unique, clever name.
29220	40420	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.
41260	43980	So bad news for some of you.
43980	48580	If you're here for that talk, you want to go to that room.
49380	51280	But it's level two, right?
51280	52340	Bit of a walk.
52340	55100	My suggestion, stay for this talk.
56260	59040	We have amazing memes.
59880	61980	Some really high quality presentation.
64420	65560	Okay.
65560	67420	Let's get right to it.
68340	94400	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.
97350	101910	Show of hands, how many of you remember or recognize this window?
102670	104170	Yep, yep, pretty much all of you.
104170	105650	All of you are old like me.
105930	108070	That's the classic Internet Explorer, right?
108870	118190	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.
120110	129810	And now that we have your attention, right, your undivided attention, we're going to be talking about ourselves.
131890	134950	So hey, my name is Rohit, I work for Microsoft.
135450	136850	Uh, oh hey!
137310	142070	I work for Microsoft Security Response Center, or MSRC.
142510	153010	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.
154050	158710	Fast forward all these years, and I'm still talking about Internet Explorer, right?
158930	162710	I would like to think that shows you I'm really persistent.
163150	165970	But you could also argue that I'm kind of stuck in the past.
165970	169250	I agree, Rohit, I think he is stuck in the past.
169530	178030	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.
178670	180690	Thank you for that wonderful introduction, George.
182630	188450	Okay, so how does your typical security research talk, uh, process look like, right?
188450	193470	You're an independent security researcher, what's the first thing that you do?
194030	195930	Pick a target, right?
195930	201190	Easier said than done, probably the hardest part of security research, just pick the right target.
201670	208010	Then you develop some tools, hopefully find some bugs, and then you submit it to the vendor.
209410	214390	At this point it's a bit of a black box, because you don't know what's going on with the vendor, right?
214570	220570	Fingers crossed, after a while the vendor might be like, yeah, we're actually going to patch this, here's the CVE.
221530	230330	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.
230330	232390	You go back to the first step, right?
232390	237350	That's how your typical research process looks like when you're external researchers.
238610	251990	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.
252490	261430	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?
261430	264290	So we see all of those bugs, patterns, trends.
265530	272410	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?
272690	277450	Developers, architects, PMs, lots of people.
277450	285010	So we have discussions and conversations with these experts, and we might identify a few issues of our own internally, right?
285010	290050	And then we raise these issues with the engineering team, trying to get to fix them.
290710	301010	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?
301010	304990	We're internal, so we don't have to wait for the fix to be public.
305490	312910	So yeah, those two important distinctions I just wanted to highlight, that's what distinguishes, like, the internal security research process.
315030	319630	Okay, why are we talking about Internet Explorer in 2025?
320090	322190	Like, surely it's dead, right?
322190	323190	Why do we care?
324210	327410	Let's look at this CVE, and as you can see, it's from 2025.
329390	332290	We look at the title, it says, map URL to zone.
332290	336670	Okay, some of you might have noticed this in the title of our talk, so it's relevant.
336670	337890	Let's keep going.
339030	345130	And this long line basically just says, this issue affects Microsoft Windows.
345490	347350	Okay, so far so good.
347830	357530	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?
359450	364230	Hold on, why are we downloading Internet Explorer updates?
364250	366350	That looks really suspicious.
366590	371590	Or as my Gen Z friend George here would say, that looks pretty sus, dude.
371670	374250	That looks really sus.
376130	378290	So what's the truth of the matter?
378890	385670	Yes, Microsoft has retired Internet Explorer 11, the glorious browser back in the day, right?
385670	388610	But it's still kind of present for legacy use cases.
388730	399070	Moreover, the underlying HTML engine, the scripting engine, the helper utilities are still present on Windows and still used.
401560	408220	So here's a screenshot of a DLL in system 32 folder on the latest Windows, right?
408220	410440	Hopefully all of you can read the highlighted section.
410440	414680	It says, runtime utility for Internet Explorer.
415320	417100	Mind you, this is on the latest Windows.
417100	419480	So clearly the binary still exists.
421720	427260	Back to the good old Internet Explorer window that we looked at a couple of slides ago.
428100	444340	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.
445260	448100	So like you can read some of them, right?
448100	450940	The first is Internet, then there's local Internet, etc.
450940	463920	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.
463920	465900	Don't let me do any dangerous stuff.
465900	467980	Or at least prompt, right?
467980	474800	And then you could customize it further by saying, if the website that I'm visiting is trusted, it's fine.
474800	475960	Let me do some crazy stuff.
475960	477400	You don't have to prompt.
477520	479260	That was the idea, right?
479260	483200	Back in the 90s with this whole security zones with Internet Explorer.
484340	493360	Even though you don't use Internet Explorer anymore, this fundamental security zones concept is super relevant even in Windows today.
493580	500380	And a lot of the Windows applications have since adopted this technology to make security decisions on the system.
504670	506530	Okay, so who's using this stuff?
506530	507190	Right?
507190	508570	On latest Windows.
509530	516250	There's Mark of the Web that various applications use, Windows Shell, File Explorer, your AV.
517630	522150	Office is a great example that a lot of you might be familiar with.
522150	539070	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.
539070	542610	Meaning a lot of the potentially dangerous features are disabled.
543090	543410	Right?
543410	548950	Some of you might remember this, when you open the doc, you have to go up top and click enable editing.
549150	552290	Until you do that, you can't really interact with a lot of features.
552670	554030	So that's what's going on.
556070	561450	And so yeah, all of these things on Windows rely fundamentally on this security zones thing.
562030	571110	At this point you might be wondering, okay, how do I really determine what security zone a file or a resource really belongs to?
571390	572490	That's a great question.
572490	578210	And as you see on there, the API on Windows to do that is called Map URL to Zone.
580350	582030	So what is this API?
582430	584490	It's a user mode API.
585330	587830	We lovingly call it MUDs.
587830	589030	Kind of a weird name.
589030	592370	But Map URL to Zone, that's too much to say.
592370	597470	So if George and I keep saying MUDs throughout the presentation, know we're talking about this API.
598330	601870	The functionality is split between these two DLLs.
602690	603650	And what does it do?
603650	616070	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?
618270	624770	That's a list of the values that MUDs or Map URL to Zone will return if you call it passing it a URL.
625570	635250	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?
635250	638430	Internet zone, intranet zone, etc.
640670	645310	So long story short, it's a pretty security critical API in Windows.
645310	653730	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.
656080	657100	Cool.
657220	670540	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?
670540	671960	Even the latest Windows.
672420	676000	And a natural question is, well, why do we care?
676000	677280	What's the impact?
677280	681880	What's really the worst case scenario if something goes wrong with this API?
684080	687280	And to do that, we need to talk about this bug.
687280	691900	Go two years back to 2023, and you can see a CVE on there.
692600	699700	This bug affected Outlook, the mail client, and the story of this bug starts with a sound file.
701020	702620	What are sound files?
703140	712140	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.
713000	718800	Highlighted here on the screen, you'll see it says Windows notify email dot wave file, right?
719200	719980	Pretty evident.
719980	721940	When does this wave file get displayed?
722220	727460	When you receive an email, Windows will notify you by playing this particular sound.
727460	728760	It's a default sound.
731860	732740	Okay.
733240	735060	So let's get to the bug.
735300	736820	What was going on?
737100	742580	Turns out in Outlook, the mail client, you can actually create reminders.
742580	745140	These are reminder tasks, right?
745160	747200	For yourself or other users.
747540	754680	And if you see that little bell icon, if you click that, by default, there's a wave file sound that plays.
754680	760460	So you can imagine when the reminder fires, that particular wave file will be played to notify you.
762040	765780	Well, actually it turns out you can overwrite that.
765780	770400	And you can say, play this custom sound file, not the default one.
771400	781940	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.
782320	788740	You can actually point it to a network share and say, hey, Outlook, play that sound file from that network share.
791680	797220	So this CVE was a zero click, no user interaction attack vector.
797320	806620	Back in 2023, this was exploited in the wild by a nation state threat actor that's tracked this forest blizzard.
808600	810560	So how did the attack work?
810560	811960	Just visually, right?
812640	816660	The attacker would create a reminder task in Outlook.
817420	822380	They'll override the default sound that will be played when the reminder triggers.
822820	827940	And instead, they'll say, hey, play this file from a network share that I control.
828400	830620	And the attacker will send that to the victim.
834200	837560	There's no user interaction needed from the victim side.
837560	839440	You don't have to interact with the reminder.
839440	840380	You don't have to look at it.
840380	848940	As long as your Outlook mail client is running, even if in the background, the victim's Outlook mail client will get the reminder.
848940	857860	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.
858280	863900	In this process, Windows will authenticate to the attacker control server using NTLM.
863900	872320	And the attacker can use this NTLM hash to relate against a vulnerable exchange server.
872680	873980	What happens at that point?
873980	880160	The attacker can essentially authenticate on your behalf to that vulnerable exchange server, right?
880160	886220	And all of this, just to highlight again, happens with zero clicks.
886220	887500	No user interaction.
887500	889580	Pretty much the worst case scenario.
891980	892580	Okay.
892580	893600	We talked about this bug.
893600	894320	It's really cool.
894320	897560	How does it relate to mods or map your older zone?
898180	902060	And for that, we need to talk about how this was fixed back in 2023.
902320	913800	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.
913800	914180	Right?
914180	920000	So, like your Outlook client would just not respect the custom sound file that you pass.
920040	921320	It's all fine.
922000	936700	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?
937720	938420	Right?
938420	946140	In that particular case, Outlook actually added a mods call, a map your older zone call on the custom reminder sound file.
946140	947400	What was the logic?
947480	953120	Check the security zone of this file that we're going to try and connect to, reach out to.
953220	958120	And if it's coming from an internet or untrusted zone, don't reach out.
959980	962640	We made additional mitigations for this.
962640	969040	It involved other components like exchange server, but that's not really relevant for our discussion here.
969720	975000	What I want to emphasize again is this answers the question that we asked a couple of slides ago.
975000	980640	What's the worst case that can happen if there's bugs with map your older zone or mods?
980720	981540	Right?
981560	988620	This API we're relying on in a security critical code path in a zero click attack vector.
994540	1002000	And at this point, we get to the hero of the talk, which I wish was me, but that doesn't look like me.
1002060	1006500	In fact, that looks like you George without the mustache though.
1006720	1008040	That's not me Rohit.
1008060	1009960	You've known me for five years.
1009980	1012460	He's going to be in my wedding and he doesn't even know what I look like.
1012460	1013520	Come on now, bud.
1013600	1017380	This is a researcher by the name of Ben Barnia.
1017860	1031820	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.
1031980	1045520	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.
1045980	1049580	And I'm going to be using the term canonicalization quite a bit today.
1049620	1060360	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.
1060820	1070140	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.
1070480	1077080	In this example, he uses a path that starts with slash slash localhost slash dot dot.
1077080	1088500	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.
1088500	1093260	And as a result, we reach out to Akamai.com to make a request.
1093660	1096340	However, Mutz doesn't do that.
1096440	1099460	Mutz thinks that the host name is localhost.
1099460	1103140	So therefore Mutz classifies this as a local path.
1103140	1113400	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.
1114260	1117440	So Ben continued to do quite a bit of research in this area.
1117680	1123100	He ended up releasing a four part blog series on his research into map url to zone.
1123440	1127520	And in total, Ben found three ways to bypass map url to zone.
1127520	1130440	And he also found a double free vulnerability.
1130940	1134020	And I think that this double free vulnerability is super interesting.
1134020	1137420	It's something we're going to get into a little bit later in the presentation.
1138460	1145880	Now Ben really made us rethink how we thought about canonicalization in Mutz internally at Microsoft.
1146100	1156480	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.
1156740	1161240	And so that's when Rohit and I started looking into map url to zone.
1161340	1167560	Now here's where I would love to tell you all about some of the really interesting research methodology that we had.
1167560	1172140	Here's where I'd love to tell you about the complex tooling, the fuzzers we built.
1172260	1177380	Actually Rohit did build a fuzzer , but unfortunately that fuzzer did not find anything.
1177720	1185340	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.
1185820	1188060	Obviously I'm simplifying a little bit here.
1188060	1195380	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.
1196760	1207220	Okay, so we ended up finding so many different vulnerabilities with this technique that we actually had to classify these into four main categories.
1207460	1215600	These categories are path prefixes, host name misclassification, canonicalization, again, and miscellaneous.
1216080	1220460	So let's run through the first category, which is path prefixes.
1220520	1224560	Now path prefixes are pretty interesting, but they're not always applicable.
1224880	1231700	And the reason why is because the attacker doesn't always have the ability to control the start of the path in this way.
1231740	1240520	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.
1240520	1243500	It only opens paths starting with file colon.
1243780	1248480	However, there are other API's that do let you control the start of the path.
1248480	1250280	And so that's what these apply to.
1250520	1256620	In this case, we noted some interesting behavior with the shell colon scheme.
1256740	1266820	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.
1267140	1271820	However, there's a trick you can use to actually specify a remote path.
1271820	1274020	And this is exactly the trick that we use.
1274020	1276400	We use the network places folder.
1276540	1283620	And then you can put in three slashes immediately after and put in any IP address, your website, whatever it might be.
1284020	1289040	But MUTs will classify this as a local path, despite it clearly being a remote path.
1289380	1290640	Well, why is that?
1290640	1298160	It turns out that in Windows, there's this registry that has some defaults, some protocol defaults.
1298220	1302280	MUTs will go to these protocol defaults and try to run a quick query.
1302620	1312020	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?
1312300	1316700	And in this case, you'll see that the default value for shell is zero.
1316780	1321500	Zero, if you're paying attention to Rohit earlier, maps to the local machine.
1322340	1324020	So MUTs completely stops.
1324020	1326200	It says, hey, I know what this is going to be.
1326480	1330600	The operating system tells me that the default should always be local machine.
1330640	1332680	Therefore, this path must be local.
1332720	1334240	But it's not a local path.
1334240	1335900	Create file treats this differently.
1336900	1342720	The next category of vulnerabilities I want to talk about are hostname misclassification vulnerabilities.
1343180	1353980	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.
1357700	1365820	I'm But before I do that, we need to understand a little bit about how hostname misclassification vulnerabilities actually work.
1365920	1370900	And you might have guessed it, it happens when MUTs is trying to classify the hostname.
1371240	1381450	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.
1381930	1385950	What this means in practice is there's a little bit of a problem here.
1386030	1394890	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.
1395110	1399970	And this is a really key thing, because we then have to do a DNS lookup, right?
1399970	1403830	MUTs has to figure out, is this on the local internet?
1404370	1406730	Or is this on the wider internet?
1407530	1410110	So there's two main things we have to do here.
1410310	1421110	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.
1421390	1428610	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.
1429170	1433910	The second thing we need to satisfy is we can't use any dots inside the hostname.
1433930	1440430	Because what ends up happening is when the DNS lookup takes place, it will try to look for that hostname.
1440570	1445230	If it's something like rohit.com, that's clearly part of the wider internet.
1445230	1453450	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.
1454450	1455350	Okay.
1455350	1461490	So this second requirement is pretty easy to satisfy with IPv6 paths.
1461510	1465670	The reason being, IPv6 does not use periods.
1465750	1466030	Right?
1466030	1467750	It uses colons as a separator.
1467750	1477450	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.
1478070	1481770	Now, this is an actual way that we were able to bypass Map Bureau zone.
1482130	1484970	There are three main components to this path.
1485170	1488570	The first is the IPv6 address of the target.
1488570	1488730	Right?
1488730	1491230	So we have the slash slash and then the IP address.
1491570	1494570	Immediately after, we have the interface being used.
1494750	1502110	If you've ever used IPv6 before, you know that you can specify which interface you're going to make a request on.
1502110	1508790	In this case, we're telling create file, hey, I want to make this request over interface number 12.
1509830	1513530	Finally, we have a path to a file name at the end of this.
1513910	1518010	And you'll notice something a little weird about the second part of this path.
1518010	1520270	There's a lot of zeros at the start of it.
1520550	1523550	And create file doesn't care about these zeros.
1523610	1531830	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.
1531930	1533610	And everything is totally fine.
1534750	1538010	However, map your order zone does not do that.
1538270	1548990	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.
1549110	1556970	And this is really key because now the is IPv6 IPv6 call is going to fail, meaning that this is a DNS address.
1557190	1565710	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.
1566070	1567510	And this is the key difference, right?
1567510	1571870	Now we figured out a way to convince Mutz that something is local, right?
1571870	1572950	It's very nearby.
1573030	1575450	But this is clearly on the wider internet.
1575450	1577170	This is something very far away.
1578690	1585670	The second example of hostname misclassification I'm going to be sharing with you all is in IPv4 parsing.
1586010	1590330	So in this case, once again, we have three main components to this path.
1590330	1593170	We start out with the IPv4 address.
1593310	1594630	And this might look a little bit weird.
1594630	1596090	I'm going to get to this in a second.
1596490	1599250	The second part of this path is the port.
1599410	1602470	This is the port that we're going to be making the request over.
1602790	1605330	And then finally, once again, we have the file path.
1605590	1609990	You'll notice, again, there's a little something weird about the second part of this path.
1609990	1614050	Once again, there's a preceding zero in the port number.
1614470	1616950	And createFile does exactly what you would expect.
1616950	1626550	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.
1626870	1631390	However, Mutz does something really, really interesting here.
1631830	1637290	Instead, it thinks that the user is trying to use octal notation for the port.
1637290	1639150	This blew my mind when I saw this.
1639150	1647110	This is something similar to maybe using hexadecimal notation and providing a 0x80 at the start of the path.
1647110	1651290	Instead, we provide 080 for the port number.
1652010	1657570	However, you may have noticed, 8 is not a valid octal character.
1657570	1660270	Valid octal characters are 0 through 7.
1660550	1663710	As a result, Mutz says, this isn't a real port.
1664290	1667810	So therefore, I don't think that this is an IPv4 address.
1667810	1669710	It must be a DNS address.
1669990	1672170	So instead, we have to do a DNS lookup.
1672190	1677070	We do the DNS lookup on the hexadecimal thing at the start of this path.
1677410	1683190	And since there's no dots in it, we happen to return that this is on the local internet, once again.
1683930	1686790	Now, this comes back to what I alluded to a little bit earlier.
1686790	1689110	There's no dots in the IP address.
1689110	1693450	And this is to get around the second requirement of hostname misclassification bugs.
1693710	1696930	We can't use a dot inside of the hostname.
1697130	1704450	And therefore, we use what's called a dotless TLD or hexadecimal notation for the IP address that we want to reach out to.
1706090	1712030	Okay, the next set of vulnerabilities I'm going to get into are some of my favorites.
1712030	1714290	And these are canonicalization.
1714290	1718370	The reason that these are some of my favorites is twofold.
1718370	1725790	First of all, most prior research, like Ben Varney's research, focused on canonicalization bugs.
1726150	1729530	What that means is a lot of the low-hanging fruit is gone.
1729590	1734750	So most of the bugs that we found are a little bit more complicated, and to me, a little bit more interesting.
1735170	1741550	The second reason I really am interested in canonicalization-based vulnerabilities is they are ubiquitous.
1741550	1743810	They'll work in every single location.
1744270	1752490	And secondly, you'll convince MUTs to return that it's a local path on the local machine, not part of the local internet.
1752490	1756790	And this makes this even more interesting and useful for an attacker.
1757950	1766090	So let's get into the first example of a MapView AutoZone bypass that we found using a canonicalization trick.
1766090	1768490	This is a bit of a more complicated path.
1768490	1771370	There are five main components to this path.
1771370	1774650	You'll notice this starts with slash, slash, dot, slash.
1774650	1779390	That just tells the operating system we're going to be using the device namespace to make this request.
1779830	1781430	Then we have C colon, right?
1781430	1783270	That's our local C drive.
1783330	1786270	We have a question mark, which we're going to be getting to in a little bit.
1787010	1791090	Followed by two sets of path traversal characters.
1791410	1798410	What createFile does, as a bit of a spoiler alert, is it knocks off the first two parts of this directory.
1798630	1801870	And it ends up just treating the rest of the path as the full path.
1802110	1805970	So createFile will end up reaching out to a remote path.
1805970	1810570	It'll end up reaching out to that IP address and then that file path that we have at the end.
1812130	1817070	However, Mutz gets a little bit tripped up on the second part of this path.
1817070	1819090	And again, I think this is really interesting.
1819270	1827290	Mutz sees the question mark that's a part of this path and assumes that the question mark is part of an HTTP query.
1827350	1834610	So it's expecting that everything that comes after the question mark are parameters that we're providing in an HTTP query.
1834610	1836210	However, that's not the case.
1836210	1838090	This is not an HTTP path.
1838090	1841830	CreateFile does not treat this as an HTTP path.
1842290	1853490	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.
1853770	1860630	And this is a way to bypass MapUrlToZone because Mutz will clearly treat this path on the local machine.
1861010	1862510	Really, really cool, George.
1862510	1865150	I'm curious, how did you find this?
1865610	1873530	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.
1873890	1879130	And I basically pressed every single button on the keyboard until question mark fell out and I was able to find a bypass.
1879190	1880470	Super impressive.
1880670	1884250	Let's go on to a bypass that Rohit won't make fun of me for.
1884250	1886930	This is another canonicalization-based bypass.
1886930	1890470	This one uses what's called a Landman Redirector.
1890630	1897570	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.
1897710	1902670	All the Landman Redirector is really doing is saying, hey, I want to use SMB to make this request.
1902670	1911670	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.
1912330	1921290	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.
1921290	1926790	However, Mutts gets a little bit tripped up with these two slashes.
1927030	1931490	Specifically, it does not do the canonicalization first.
1931630	1936290	So it's actually looking for a host name in between the two slashes.
1936630	1944450	Therefore, there's nothing inside of these two slashes and Mutts happens to default to returning that this is a local path.
1944450	1948510	And I thought this was really interesting because this is a pretty subtle thing, right?
1948510	1956230	We've only added a single slash to a normal path, yet using this, we were able to bypass MapViewer AutoZone.
1957290	1962810	Now for this next example, I'm going to be asking for some audience participation here, so get ready.
1963330	1967670	You'll notice that the only difference between these two paths is a single slash.
1967670	1970490	In the first one, we only have one slash before local host.
1970490	1973610	In the second one, we have two slashes before local host.
1973610	1980130	How many people think that when we open this file, CreateFile will treat these two paths differently?
1980130	1981150	Show of hands.
1982830	1984430	Okay, I see a few hands.
1984430	1990110	How many people think that CreateFile will treat these two paths the same when we try to open them?
1990610	1992510	Okay, I see a lot more hands.
1992510	1995250	This is exactly what I thought, right?
1995250	1998910	I mean, we only added a single additional slash in here.
1998910	2000710	And we just saw an example.
2000710	2005550	The last example I showed you had two slashes after the landman redirector.
2005550	2007570	CreateFile didn't care.
2007830	2015570	However, when I tested this out, I found that CreateFile actually does treat these two paths differently.
2015570	2021930	And that's because when we do the canonicalization, there's an order of operations that takes place.
2021930	2029190	So in this first example, when I try to use this path, what happens is the canonicalization logic is a little bit weird.
2029530	2033890	So when we have the dot dot, local host remains the host name.
2033890	2035390	It doesn't go away.
2035590	2042210	And so we end up making a request out to local host looking for a share that's named an IP address.
2042350	2048210	There's no share named an IP address on the local machine, so CreateFile can't find that file.
2048210	2053670	However, when we use the second slash, the order of operations changes.
2053870	2056330	As a result, local host goes away.
2056370	2061950	And we end up making a request out to the remote IP address, to that share, and to that file.
2061950	2065450	And we're able to open it up totally fine using CreateFile.
2066030	2069130	And this is something that's really fundamental to this talk.
2069130	2074570	Is that map URL to zone has a really, really difficult problem to solve.
2074570	2080750	This is an incredibly tiny nuance that I think most people wouldn't expect to happen.
2080830	2085670	Yet it's something that map URL to zone has to be able to handle in every single case.
2085670	2089050	Or else we'll be in that worst case scenario that Rohit was talking about.
2089630	2092450	So let's take a look at exactly what this path does.
2092450	2095450	Once again, I'll break it down into its component parts.
2095450	2100290	So first we have the landman redirector, followed by two slashes.
2100290	2104430	Then I have local host, followed by the path traversal characters.
2104430	2108190	We just showed with CreateFile that local host will go away.
2108350	2114270	Leading us to end up reaching out to the remote IP address, followed by the file path.
2114910	2122350	What happens in map URL to zone is it always does what CreateFile did in that first example.
2122570	2124950	It simply will reach out to local host.
2125450	2128250	Notice that local host must be the host name.
2128310	2134030	And as a result, Mutz thinks that the path actually starts with slash slash local host.
2134030	2136310	That's clearly a local path.
2136310	2139090	And as a result, Mutz says, hey, this is local.
2139090	2143610	Despite it being something that's actually treated by the OS as remote.
2144410	2150330	The final example of a Mutz bypass I want to share with you is one of my personal favorites.
2150330	2156930	And it's one of my favorites because it is the only vulnerability I've ever discovered while I was in bed.
2157270	2162030	And basically the way that this worked is I was reading through Ben Barnea's research blogs.
2162070	2165190	And I noticed this kind of throwaway thought that he had.
2165190	2167630	And I love it when people do this sort of thing.
2167630	2169590	I love it when they have these throwaway thoughts.
2169590	2174230	Because it's a direct link into their minds to see what they're thinking at the time.
2174510	2180870	And he noticed some weird behavior around paths that started with slash slash dot slash UNC.
2181350	2192650	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.
2193010	2196330	Now, he wasn't able to figure out anything that he could do with this.
2196330	2203150	Because as he says here, no network provider that he found was able to handle a path with a colon in it.
2203150	2207710	And I was in bed reading this and I was like, what about IPv6?
2208170	2209990	IPv6 can handle paths with colons in it.
2209990	2211970	It's literally the point of IPv6.
2212170	2217090	And after a very fitful night of sleep, I ran downstairs, I tried out this path.
2217090	2219310	And indeed, this does actually get around mutts.
2219450	2223050	So you just need an IPv6 address that starts with C colon.
2223610	2228150	Admittedly, it's probably a little bit hard to actually buy an IPv6 address starting with C colon.
2228430	2230910	But I thought this was a really interesting example.
2231090	2233950	And I also really want to say, you know, thank you to Ben for his research.
2234210	2238890	Because it served us so much more than just fixing the bugs that he came up with.
2238890	2242190	Because what it meant is that we're able to do so much more work.
2242270	2246990	Figure out what's going on under the hood with mutts and find more bugs like this one.
2247730	2253910	The final thing I want to talk about is a double free vulnerability that we found inside of MapYourAlta Zone.
2254450	2256630	And this happened when we were doing some testing.
2256630	2260710	So as Rohit alluded to earlier, we don't just leave our engineering teams out to dry.
2260710	2261510	We help them out.
2261510	2262530	We bring them along.
2262530	2265210	We try to think like a security researcher would.
2265530	2267890	And we tried this very simple path.
2267890	2273170	So we tried to put together a fix for one of the canonicalization vulnerabilities I talked about earlier.
2273210	2277290	And we noticed when we tried this path, mutts would crash.
2277390	2280990	And the reason it was crashing is because we were trying to be good citizens.
2281010	2287230	We tried to add in an additional cleanup call, an additional deletion or free here on this property field.
2287230	2291790	But it turns out there's actually a dangling reference to this property somewhere else.
2291790	2295930	And when that cleanup took place, it ended up having a double free.
2295930	2303470	And I think that double frees or memory safety issues in general are really, really interesting in mutts.
2303770	2308070	That's because if you have a memory safety issue, you can immediately go after that.
2308070	2311030	You can immediately try to exploit that vulnerability.
2311090	2316610	You don't need to do any of the NTLM stuff that Rohit was talking about earlier if you have a memory safety bug.
2316610	2319230	So we really want to find stuff like this.
2320310	2331270	Okay, so in total, I was able to find two path prefix vulnerabilities, four hostname misclassification vulnerabilities, four canonicalization vulnerabilities, and two miscellaneous bugs.
2331330	2333570	Ways to bypass Map your AutoZone.
2333570	2339650	So in total, I was able to find 12 different CVEs that have been fixed since January in Map your AutoZone.
2339850	2341370	Hold up, hold up, wait.
2341370	2345150	Sorry, I think you meant to say bugs that we found.
2345150	2347430	Well, let's check the CVE then, huh?
2347430	2351510	Okay, I mean, sure, there's this one CVE that has just your name.
2351510	2353490	That doesn't mean anything, right?
2353550	2356010	See, there's another one with my name.
2356050	2360530	I don't know why the color's off, but this is legit coming straight from the advisory.
2362410	2369510	I just wanted to say, in our team, we really value collaboration, and we always share credits, right?
2369510	2372490	There's absolutely no room for jealousy.
2372570	2373530	None.
2377330	2379630	Okay, so coming to the fixes, right?
2379850	2385110	I mentioned this earlier, and George alluded to this too.
2385310	2390330	One of the unique advantages that we have is, we're looking at the fixes when they're in development.
2391050	2396390	So when we're seeing these trends and patterns of issues, we want to get ahead of the curve.
2396390	2406870	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?
2406870	2408830	Prevent it from happening again in the future.
2409850	2419590	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?
2420290	2426450	If you were paying attention to the talk for the last 25 minutes, you already know the answer.
2428780	2432620	As George mentioned many, many times throughout his talk, right?
2432900	2443660	The fundamental issue is that these two APIs, create mods, which does security-sensitive stuff, and create file, which actually does the connection.
2444420	2449400	The problem is parsing differences between these two crucial APIs.
2449960	2460620	Sometimes subtle, but sometimes not so subtle differences in how the paths that you pass to these API get canonicalized or collapsed.
2462540	2465720	So what has changed since early 2025?
2465720	2474780	We work with teams within Microsoft to change MapRule-to-Zone to use this API.
2475760	2477400	What does this do?
2477400	2485030	This goes down the same code path for canonicalizing paths or collapsing paths that create file uses.
2485480	2493720	Essentially, we eliminated the parsing differences between MapRule-to-Zone and create file in these special scenarios.
2495920	2501360	As you can imagine, right, this is decades old coming from Internet Explorer's time.
2501360	2511040	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.
2511200	2515260	So we faced some of those and added some special case logic to handle those.
2515260	2530940	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.
2532280	2538300	Another cool benefit of this mitigation is this actually reduces complexity.
2538580	2552300	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.
2552300	2558580	But by getting both of them on par, we actually reduced a lot of the complexity and the code size.
2560360	2562340	Okay, to wrap it up.
2562380	2563960	What are the takeaways?
2564060	2572420	We found a bunch of issues with mods built upon the work of external security researchers who sent us their awesome research.
2572420	2581180	We developed a mitigation for the security critical API mods or MapRule-to-Zone, and it has been active since January 2025.
2583400	2594660	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.
2594920	2603560	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.
2603560	2610280	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.
2614260	2620640	Most of the work that we presented here is thanks to the support of a lot of teams and people within Microsoft.
2621380	2626940	Too many to name, but special shout-out to these fine folks that you see on the slide here.
2627420	2633420	I will also say, if your first name is Ben, you have a natural inclination to this line of research.
2633600	2635640	Ben Barnia, hero of the talk.
2635640	2640820	We also have two amazing Bens internal to Microsoft, so special shout-out to them as well.
2641560	2647200	And, yeah, finally, thank you to those who actually chose our talk.
2647200	2648320	Thank you for coming.
2648340	2651640	And to those who accidentally ended up here but still decided to stay.
2651640	2652460	Thank you.
