start	end	text
4580	5900	Hey, everybody.
5900	19020	Welcome to watch the re-recording of my talk I gave at the DevCon CloudRidge for making the most of Microsoft Cloud Backbone programs.
19020	25420	So, how I made 65k in bounties in 2021.
28380	29300	So...
29940	31520	My name is Dr.
31520	33580	Nesteri Jylimaa, also known as Dr.
33580	34660	Azure AD.
34940	45620	And I think people know me best of my tool called AAD Internals, which I've been publishing since 2018.
46100	52520	I'm a Senior Principal Executive Researcher at SecureWorks Counter Threat Unit.
53120	60920	And what I do there is that I'm trying to find vulnerabilities for Microsoft Cloud before the bad guys do.
60920	62620	So, that's pretty much what I do.
63060	67240	I'm also a Microsoft MVP and one of the most valuable researchers.
67240	74320	They actually announced last week or in the first day of Black Hat 2022.
75420	80840	And actually, there I am on the list and I'm number 70.
80840	82480	So, that's my 70th place.
83960	89020	I've been working with MSRC now a couple of years, if you will.
89320	92300	And it has been nice.
92300	102600	So, for instance, they draw me a picture of me like that when they did like a research portfolio or research interview, if you will.
102600	105840	It's actually still there on the MSRC site.
106340	110820	And by the way, MSRC comes from the world's Microsecurity Response Center.
111600	119600	And also, the people who are on that list are invited to a party.
120840	128500	It's called MSRC Research Celebrity Party, where I was also last I think it was Wednesday.
129000	132420	So, everybody who was on that list will get the invitation.
132420	134760	So, it's actually quite nice to be there.
134760	138720	And by the way, that is this time at least it's top 100.
138720	149100	So, it was actually very nice to meet other people from the research community.
150680	153860	And also, they are following me on Twitter.
153860	158780	And it's nice to see, because they only have like...
158780	166600	They are only following 75 people, including Satya Nadella, who is a CEO.
167160	169380	Yeah, CEO of Microsoft.
169380	172660	It's nice to be part of those.
173680	174580	Okay.
174780	182240	So, before we go forward about reporting bounties.
182240	185280	So, people usually do that for three reasons.
185280	187760	So, first one is obviously to get the bounty.
187760	191140	Second one is to get points to be on that list.
191620	195840	So, even though not all bounties will get...
195840	202460	Sorry, even though there are vulnerabilities, not all are going to get bounty, but you are still having points.
202920	207340	And the third is like me, that I just want to get things fixed.
207340	209900	So, that's why I've been doing this.
210620	214420	But hey, let's move forward.
214420	223100	So, first of all, I wanted to share with you the site, where you can see all the bounty programs.
223100	231760	So, you need to go to microsoft.com slash enus or whatever is your country and language slash msrc slash bounty.
231760	237260	And here you actually have the list of programs.
237260	245660	And I've been working with Azure program, Identity program and M365 program.
245660	252480	And as you can see, the bounties, the highest bounty, at least now, is with Microsoft Identity.
252840	255760	So, if you go here, you can see that...
257560	258580	Scroll down.
258580	260020	So, here's a nice table.
260420	269300	So, if you can do the elevation of privilege and it's secure and it's high quality, you will get 100,000 bounty.
269300	271020	That's a lot.
271640	278880	So, my highest have been 20,000, like a single one.
278880	282000	So, if I remember correctly, it came from this.
282000	290120	But anyways, there are also like moderate or low severity vulnerabilities that won't get bounty, but you will get points.
290120	294880	So, I suggest you to always submit if you have something, regardless of the bounty.
294880	296000	So, please do that.
296220	299400	So, you will get points and you will get on that list, actually.
299540	305400	If you are doing a lot of those, even moderate or low findings, if you do a lot of those, you will be on that list.
306360	307800	Okay.
307820	318400	And if you look at the other programs, like N365, you can see that the bounties are a little bit lower.
318400	324900	But anyways, these are very nice additions to your base library.
325920	327400	Okay.
327400	331280	But, where's my slides that there is?
331280	337740	So, okay, there we go.
338400	344660	So, I was planning, originally, like share three cases with you.
344660	354080	But then, I decided to share two bonus findings also, because they are good stories.
354080	359640	So, let's start with the first one.
359640	364720	So, this is spoofing and tampering with Azure AD signing logs.
364960	369400	So, very short walkthrough about the vulnerability.
369520	377340	So, I think it was about a year ago, maybe a little over a year.
377340	382700	But AD FS health agent got an update.
383460	386880	And the AD FS health agent is running on the AD FS servers.
387320	397920	And what it is, well, one of the things it is doing is that it will send all the signings, what are made to or through AD FS.
398020	402940	They will send those to Azure AD, so that you can view them in Azure AD signing logs.
402940	407740	Also, you can use like Sentinel to detect stuff, because they are there.
408280	417060	So, when that agent was published, I kind of reverse engineered the protocols it is using to communicate to Azure AD.
417060	422660	And I was able to, you know, spoof signing log events.
423660	428600	But that was like by design, because that's how the protocol works.
428600	431840	That's what the agent was made to do.
431840	435020	So, there was nothing, you know, there.
435140	442080	However, I noticed that one thing that was sent to Azure AD was a GUID.
442080	445660	So, it was an ID of that signing event.
445800	455720	And if I was using an existing ID that there already was in Azure AD signing log, I was able to override those signing events.
455720	462640	So, basically, you could change the IP address and person who signed in at that time.
462640	472160	So , for the bad guys, that was a good feature, because you were able to like cover your tracks.
472740	476460	Anyways, I reported it and got the 10k bounty.
476460	485760	And takeaway from this story is that the new features often, well, I would say always have business logic vulnerabilities.
485760	493440	So, whenever Microsoft is publishing something new, it's a good chance for you to find things first.
493440	496780	So, you just install that, study how it works.
496780	500960	And quite often, there are business logic vulnerabilities like this.
500960	505360	And it's kind of an easy way to get a great bounty.
507640	510460	Okay, then the second one.
510460	512780	So, Azure AD OSINT.
514080	521520	So, there's a thing called Microsoft Support and Recovery Assistant or SARA.
521520	525400	I'll just go away from the text for a minute.
525460	534840	And that is a tool that is helped to analyze and fix problems if you have any problems to connect to Microsoft cloud services.
534840	540140	Like, for instance, if you can't read your email, you just run the client and it will do some local analyzing.
540140	547080	Also, it submits certain information using APIs to the backend.
547280	549520	And then the backend is doing some checking.
549520	565360	And I was able to find out that those APIs did not validate that the tenant ID or user ID I was sending there is the same than who was logged in.
565360	570820	So, that allowed me to get information from other tenants.
570820	582340	So, I was able to, for instance, get any user's email settings and licenses and so on.
582500	585440	So, I reported that.
586060	592500	And I originally found this from a legacy endpoint that hasn't been used for a while.
592620	597480	But anyways, I got a 5k bounty from that.
597480	608620	And they fixed that by disabling that cross-tenant access and actually pretty much the whole endpoint.
609120	615980	But there was another endpoint that Zara is currently using and it still was providing the same information.
615980	618980	Like, I was able to access information from other tenants.
618980	621120	So, I reported that too.
621120	625280	So, they finally fixed that.
625280	628020	So, they disabled the cross-tenant access for good.
628020	630140	So, that's not anymore possible.
630520	637940	But I noticed that regular users, like normal users, can still get access from their own home tenant.
638040	640840	And that access was not meant for their eyes.
640840	651860	Like, for instance, they were able to see email trust relationships between your tenant and other tenants.
652280	659280	So, that was like another kind of bug.
659280	660860	But I still reported that.
661040	663900	And again, I got a 5k bounty.
664560	669300	So, but this time it was Elevation's privilege.
669300	678780	So, basically, the takeaways for this is that if you have multiple findings which are similar.
679000	685460	So, first send just one and not put everything in one post, just post one.
685980	689680	And after the fix has been provided, then you can send another one.
689680	700200	So, the logic here is that if you got a bounty for the first one, then you have to have a bounty also for the second one.
700840	704260	And also, a tip that look for different categories.
704260	707640	Like, the first one was information disclosure.
708440	712580	So, even though that is fixed, there still might be something else.
712580	714660	Like, in this case, privilege escalation.
714660	722020	So, that was also quite nice way to report stuff like three in a row.
722020	724580	So, I was able to triple the bounty for this.
726500	730480	Okay, then the third one.
730660	733860	And this is like my biggest bounty ever.
734640	739560	So, originally this was by design.
739560	747900	Anyways, and then finally it ended up like to two 20,000 bounties.
748020	751820	But let's focus on what is this all about.
751820	755920	Okay, so this is related to Azure AD Connect.
756220	759240	And that is a service that is...
760200	764880	Sorry, it is synchronizing stuff from your on-prem AD to Azure AD.
764880	766780	And that's the purpose of it.
768400	770940	And nothing like a special there.
770960	776640	Anyways, I was able to, again, like reverse engineer the API it is using.
776640	778920	So, it's actually proprietary API.
778920	782660	So, it's not public API and it's using binary XML.
785400	790140	And the purpose of Azure AD Connect, as I said, was to synchronize users.
790140	795180	And it is allowed to edit those users which it has synchronized.
795180	797440	It is allowed to delete those users.
797440	802980	It is allowed to reset passwords and so on.
804660	808440	So, anyways, I found out that there are two IDs.
808440	813800	So, there's a source anchor and then there's a cloud anchor.
813800	822440	The source anchor is users on-prem AD ID and the cloud anchor is users Azure AD ID.
823660	828400	And cloud only users doesn't have that source anchor at all.
828400	835720	But I was able to find out that you can also use the cloud anchor to edit users.
835720	838400	So, I said that, okay, this is the cloud anchor.
838400	841020	I want to edit, I want to delete it and so on.
841020	842840	Or I want to reset the password.
842840	848080	And that shouldn't be allowed.
848840	859100	But anyways, I was able to, you know, like take over global admins even from the cloud because I was able to reset their passwords and even delete them.
859100	865620	And then maybe do some extortion or ransom to the target organizations.
865620	867780	Okay, I deleted all your admins.
867780	869980	Give me money and you will get them back.
869980	874400	So, that was the finding that I was able to do.
874400	875320	Okay.
875420	883980	So, I reported that and that was categorized by design.
884180	893000	And I had a very many like replays and contacts with MSRC.
893000	899600	And actually, there was a kind of a director from Microsoft I knew.
899600	904660	And I sent him an email that, could you have a look at this?
904660	912260	Because it really feels that if you're an on-prem admin, you shouldn't be able to delete stuff from cloud.
912580	916060	So, finally, they decided that, okay, yes, that is a real issue.
916060	920700	And they provided me a 20k bounty.
923100	925260	And they fixed that.
925380	932720	So, I saw a tweet of one of the product managers who tweeted that, okay, they have now fixed that.
933360	938180	And I noticed that, okay, actually, you can...
938180	943580	So, the fix was that there's a setting that Global Admin can turn on.
943580	950640	It's something like a disable cloud only takeover or something like that.
950640	952860	And you set that to true and that's it.
954280	958280	And then I noticed that how they fixed that.
958280	963120	So, it was actually part of the settings that the Azure AD connect user.
963120	966320	So, if you compromise that server, you will get the credentials.
966540	969460	And those credentials can be used to change that setting.
969460	974500	So, basically, you would just change that back to the original setting.
974500	976240	So , that was, again, possible.
976420	979280	So, I told him that and he said, oh, that's bad.
980860	984580	And he said that they are going to reopen my previous case.
984580	988100	So , kind of like they will get back to that.
988260	990380	But I was like, no, no, you don't.
990380	992460	So, I submitted a new one.
992460	999420	You report on bypassing that fix and I get another 20k bounty.
999420	1000560	And now it's fixed.
1000560	1002880	So , it's really fixed now.
1002880	1006600	So , that you need to be global admin to be able to change that setting.
1007340	1008900	Okay, the second ways.
1008900	1014780	So, when they are providing a fix, you should study that like very carefully.
1014780	1021400	And look that if there's anything like you could go back and bypass that.
1021400	1025240	And then look for things that exist independently.
1025240	1030200	Like the flaw on changing these settings have been there for years.
1030460	1034700	And I knew that you can change those settings as that user.
1035240	1037600	But there just wasn't any use case for that.
1037600	1038840	But now there was.
1039560	1045280	So, when this case was open, they fixed that stuff.
1045280	1049320	I was able to compromise that that has been there already for years.
1049320	1054300	And also, do not accept any reopening old cases.
1054300	1057300	Because the old case was actually fixed.
1057300	1059660	So , the status was fixed.
1059660	1060760	The fix just didn't work.
1060760	1062340	So, it's a different case.
1062460	1068340	So, don't accept that and just post a new report and you should be good to go.
1070560	1074780	Okay, then the first bonus case.
1074780	1076880	So, this was actually not found by me.
1076880	1080460	But this was found by an Indian guy called Ravanakaram.
1080480	1082280	No write-up yet, please.
1082840	1086440	And a very short walkthrough.
1086540	1090880	So, Access Packages or Azure Access Packages are like...
1091760	1095780	It's a service where you can apply access to certain services.
1095780	1100140	Like, for instance, I want to have access to that Teams site or that SharePoint site.
1100140	1102800	I want to access email and so on.
1102800	1109860	And this is meant for people inside the organization, but also external contractors.
1110740	1120500	So, by design, of course, it will show those access packages that are meant for outsiders where you can actually apply to have those.
1120500	1131720	And we found out that the backend API actually allows external users to view all the packages.
1131740	1140740	And also metadata, including the people's names or actually email addresses who created those access packages.
1140880	1142800	So, we reported that.
1143680	1147740	Well, actually, his original report was quite large.
1147740	1152720	And he had some problems with MSRC, and he was tweeting about that.
1152720	1160620	And I told him that, OK, based on what you show, I don't know if there really is anything.
1160760	1165480	But if you can DM me, we can work this out together.
1166460	1170380	And we actually ended up submitting three different reports.
1170380	1171760	So, this is one of them.
1171760	1182080	And, yeah, so MSRC found out or they concluded that, yes, there is a vulnerability, but it's moderate.
1182080	1184740	So, it's not severe enough.
1185500	1190880	So, let me show you the bounty program.
1190880	1193660	And I think this was from Azure.
1193860	1195260	Sorry about that.
1195680	1197420	Let's see.
1199540	1205980	So, yes, so it was information disclosure, but it was moderate.
1206000	1207740	So, there was nothing.
1211340	1216640	And we weren't that happy about that, because we think that that was quite severe.
1216640	1221460	And actually, I looked at the documentation of that access packages.
1221880	1230640	And I found out that only people who can actually create those packages are either global administrators or user administrators.
1230680	1234860	And this is actually literally what I told them that, according to documentation, it's like this.
1234860	1236840	So, it looks quite severe to me.
1236840	1243360	And they reassessed that and they raised the severity to important.
1243360	1248060	And he got actually that seven and a half thousand bounty.
1248060	1251640	So, I didn't take any of that bounty.
1251640	1253000	So , it was his.
1253000	1257900	So, I just helped him to, you know, argue with MSRC.
1258040	1265120	So, takeaways from this is that argue using your documentation.
1265120	1270120	So, if the documentation they have says something, then use that.
1271120	1273080	And EA, it was quite really easy.
1273080	1277420	So , they were like giving out global admin names, and that is a bad thing.
1277420	1282720	Of course, if they would have been like normal users, that might have been like it's not that severe.
1282720	1284140	But in this case, it was.
1284720	1292640	Also, remember that reporting moderate or low vulnerabilities still gives you a point to get on that list and to that great part.
1292640	1295200	So, yeah, always report.
1297180	1302960	Okay, then the second bonus.
1302960	1304640	Or was this the last one?
1306860	1310080	Yeah, this is the last one, yes.
1311220	1313140	Yeah, the second bonus, yes.
1313140	1316980	So, this is Azure AD Ocean Part 2.
1317140	1320460	Okay, and this is one of the findings.
1320460	1326900	Well, it is that Microsoft has business partners.
1326900	1335580	And those partners have a thing called partner center where they can manage their customers.
1335920	1342880	And, you know, perform like administrative tasks to their customers' tenants.
1342960	1348580	But there was also a tool to find other partners.
1348580	1354860	And I was able to call that API also directly.
1354860	1366720	And I noticed that you can get not just information about the partner, but any organization.
1366720	1376640	So , if I just gave a tenant ID of any tenant to that API, it pulled out information from that organization.
1377680	1388100	So, if you will just log into your own tenant, you are able to get this organization information from any other tenant, regardless are they partners or not.
1388700	1397880	And that information includes the, well, the full name and phone number of the person who created that tenant.
1397880	1399760	And that usually is a global admin.
1400680	1406100	And I reported that and they categorized that again as by design.
1406100	1410420	So, this information is public anyway, so it's a good feeling.
1410980	1412020	And that's it.
1412020	1413900	So, nothing argued there.
1415100	1419240	But then something interesting happened when we published this.
1420000	1421720	Or disclosed this, the whole thing.
1421720	1426800	So, we are writing threat analysis and report like these kind of findings.
1426800	1434260	And like a week after we disclosed this, Microsoft fixed the issue.
1434740	1446700	And I don't know why, so maybe someone else like outside MSRC saw this and assessed that this is actually something that you shouldn't be able to do.
1446880	1450280	So, they reassessed my report.
1450640	1455160	And they found out that yes, this is actually information disclosure.
1455160	1459160	And it's worth of $2,000.
1460280	1464260	And let us go back here.
1464260	1474100	So, I go back a bit and go to here because this API was at microsoftoffice.com.
1475060	1484100	And here I noticed that, okay, information disclosure, $2,000 for medium report.
1484100	1486460	And I was like, what the heck is this?
1486460	1488860	So, you are not happy with my work anymore?
1488860	1489960	Okay, I didn't like that.
1489960	1491940	So, I asked them, why?
1492920	1496620	Can you say the reasons why this is like a medium quality?
1496620	1498820	And it took over two months.
1498820	1504540	So, they were back and forth between the MSRC and the bounty program and then even the engineering.
1504540	1509020	So , they were saying that we didn't decide that and so on and so on.
1509020	1514300	And finally, I was able to get an answer.
1514300	1521200	And the answer was that, okay, we actually reassessed this and the quality was actually high.
1521200	1527240	So, they decided to give me an extra $3,000 bounty.
1528240	1530880	However, they haven't not paid that yet.
1531140	1534260	So, still waiting for that.
1534260	1539020	Okay, and the takeaways from here.
1539100	1543980	So, if you feel that the assessment is not correct, ask for reasons for that.
1544000	1548720	So , you don't need to be mean to Microsoft.
1548720	1549580	Don't be.
1549720	1550960	You just want to know why.
1550960	1561440	Because, for instance me, I wanted to know that what was wrong with the report, so that the next reports I will create would be like a higher quality.
1561440	1563480	But there was nothing wrong, actually.
1563480	1570780	So , I don't know why they ended up in this assessment that it was mean.
1570780	1573100	But, well, you never know.
1574720	1577620	After my talk, I had a couple of questions.
1577620	1593920	And one of the questions was, if I remember correctly, that because I've been working with MSRC now a long time, they know me and I have a good service, if you will.
1594220	1595860	So, what about newbies?
1595860	1603220	So , yeah, when I started reporting stuff, I didn't get that good, let's say, service.
1603820	1613400	And there are not that many people there who are triaging these kind of reports related to identity or hazard, for instance.
1613400	1623180	And it's also important to understand that, for instance, this identity stuff that I'm researching, it's quite a niche area.
1623300	1627600	And there might be five people in the world who knows about that stuff, and you are one.
1627600	1630320	So, there's only four left.
1630640	1635020	And usually, they are not the one who are triaging your report.
1635280	1642980	So, it's important that you create a good POC, or POC, as in proof of concept.
1642980	1646000	So, it's easy for them to try.
1646000	1650660	I usually, well, because I'm doing that AAD internals toolkit.
1650660	1652880	So, that's written in PowerShell.
1652880	1671640	So, I'm quite often using PowerShell script as a POC, so that they can just simply run the script, and they can, like, rerun the error or vulnerability, whatever I have on.
1672920	1677600	And I think there was other questions too, but can't remember those.
1678020	1681420	So , yeah, I think that's it.
1681420	1683760	So, hope you enjoyed this.
1683760	1688780	And if you have any questions, just contact me on Twitter, and I'm happy to help you.
1688780	1689600	Okay.
