1 00:00:04,380 --> 00:00:05,070 Okay. 2 00:00:05,530 --> 00:00:07,370 First of all, thank you for joining. 3 00:00:07,370 --> 00:00:09,570 It's a great pleasure to be here today. 4 00:00:09,950 --> 00:00:18,250 I'm not sure how many of you have a driving license, but I kindly ask you to fasten your seat belts because this is going to be a quick one. 5 00:00:18,770 --> 00:00:20,190 My name is Paul Sildo. 6 00:00:20,190 --> 00:00:25,850 I'm a security researcher and pen tester at Chart49, but I've started as a software developer. 7 00:00:25,850 --> 00:00:27,830 I did it for more than 15 years. 8 00:00:27,830 --> 00:00:30,830 It was plenty of time to do all sorts of mistakes. 9 00:00:31,150 --> 00:00:40,370 I'm also co-author of something that you may have heard about, like the security top ten, but the topic here today is another one. 10 00:00:40,370 --> 00:00:42,050 With us we have David. 11 00:00:43,550 --> 00:00:46,310 My name is David Sopas. 12 00:00:46,310 --> 00:00:52,210 I'm a security researcher for a long time, more than 15 years. 13 00:00:52,210 --> 00:00:59,700 I especially like research and focusing also on high level pen testing. 14 00:00:59,700 --> 00:01:07,160 I usually I already spoke on events like RSA, DEF CON. 15 00:01:07,160 --> 00:01:15,520 This is my first time here in Vegas because the first time I spoke on DEF CON it was on safe mode, so I was at home. 16 00:01:15,520 --> 00:01:16,880 Not that fun. 17 00:01:16,880 --> 00:01:21,260 But still, I did the shots with my friends, so shut the knob. 18 00:01:21,840 --> 00:01:26,380 And besides, and props to Lisbon with some guys over here. 19 00:01:27,000 --> 00:01:29,940 I did some API security methodology. 20 00:01:29,940 --> 00:01:31,320 I don't know if you guys know it. 21 00:01:31,320 --> 00:01:32,380 Mind API. 22 00:01:32,500 --> 00:01:34,980 It's part of my open source work. 23 00:01:35,660 --> 00:01:36,480 And that's it. 24 00:01:36,480 --> 00:01:37,400 Let's start. 25 00:01:39,280 --> 00:01:52,920 Before some of the research that we are presenting, I would like to say that we will not teach you web applications or APIs. 26 00:01:52,920 --> 00:02:00,580 All the target manufacturers you presented have a bug bounty program, responsible disclosure program or whatever. 27 00:02:00,580 --> 00:02:06,420 So this is everything was reported to the organizations. 28 00:02:06,420 --> 00:02:12,320 Some of them were like late to respond, but in the end we did it. 29 00:02:12,320 --> 00:02:19,350 So we will focus this presentation with nine brands. 30 00:02:19,350 --> 00:02:26,550 I hope that at least one of them is your car manufacturer. 31 00:02:27,410 --> 00:02:30,290 But let's start with this one. 32 00:02:30,650 --> 00:02:34,750 I don't know if you know this brand, but we will not mention it. 33 00:02:34,750 --> 00:02:37,490 It's a vulnerable updated component. 34 00:02:37,490 --> 00:02:50,310 But before that, I would like to tell you a little bit about the API and the API world, which means you have a lot of API architectures. 35 00:02:50,310 --> 00:02:57,050 I'm talking about the most popular ones, like REST, GraphQL, RPC, you name it. 36 00:02:57,050 --> 00:03:06,390 All of them make sense to mention that most of the vulnerabilities that were present was focused on these architectures. 37 00:03:08,830 --> 00:03:12,430 Open API is one of the most common ones. 38 00:03:12,570 --> 00:03:17,710 Usually it's like connected in a way to Swagger. 39 00:03:17,710 --> 00:03:20,030 I hope anyone knows Swagger. 40 00:03:20,030 --> 00:03:21,970 I believe everyone knows Swagger. 41 00:03:22,050 --> 00:03:40,690 The problem is that it helps out developers and even pen testers and researchers because it documents everything and it will help you not to make any mistakes and leave the documentation open. 42 00:03:40,810 --> 00:03:49,670 But one of the things that because usually individuals like shiny things and web interfaces, Swagger UI is one of them. 43 00:03:49,670 --> 00:03:55,350 It's the most popular one and usually is left publicly available. 44 00:03:55,350 --> 00:03:59,150 This is the example of a Swagger pet store. 45 00:03:59,150 --> 00:04:03,350 But like every software, it also has vulnerabilities. 46 00:04:03,350 --> 00:04:26,270 So especially the vulnerability from 3.71, which is the cross-site scripting, which allows you to put a specially crafted JSON file that you can control and put cross-site scripting payload and you can do a lot of stuff with that. 47 00:04:26,870 --> 00:04:34,730 This is the classic example of a Swagger UI, which is presented on the brand that I showed you. 48 00:04:34,830 --> 00:04:52,330 This has come to a reminder that if you use third party software, please keep it updated because it can be a way that attackers can achieve to get into your organization. 49 00:04:53,370 --> 00:05:02,230 This brand, which is... I'm guessing nobody here has this brand in their garage. 50 00:05:02,230 --> 00:05:04,170 If so, kudos. 51 00:05:04,770 --> 00:05:07,390 It has a vulnerable outdated component. 52 00:05:07,390 --> 00:05:22,350 This time it's not Swagger, but we found that a subdomain on this company immediately caught our attention because we saw a form and we were like, oh, okay, form. 53 00:05:22,350 --> 00:05:26,650 Let's try to approach this the security research way. 54 00:05:27,970 --> 00:05:34,010 We immediately went to the inspector because it's faster than trying to do some proxy stuff. 55 00:05:34,210 --> 00:05:41,210 We noticed that it was a WordPress because it has a lot of tips like WP content, WP plugins. 56 00:05:41,210 --> 00:05:54,530 You can use, for example, for enumeration tools like WP scan, but in this case we immediately saw the plugin that we wanted and we could see if any vulnerability could be in place. 57 00:05:54,630 --> 00:05:56,210 And it was. 58 00:05:56,250 --> 00:06:03,710 This subdomain from this manufacturer uses W3 total cache. 59 00:06:03,930 --> 00:06:19,350 It was a vulnerable version and this was very cool for us to test, especially for this manufacturer that I don't know if they could like offers a good reward like a car. 60 00:06:20,230 --> 00:06:22,950 This is the CVE from the plugin. 61 00:06:23,410 --> 00:06:24,170 It's very cool. 62 00:06:24,170 --> 00:06:42,550 So it's vulnerable to you could read arbitrary files from the subdomain and the main goal here, okay, let's to create the POC and to respect the responsible disclosure program, let's like grab WP config and drop the database details and tell them, hey, 63 00:06:42,550 --> 00:06:46,770 this is your database, okay, so at least the credentials. 64 00:06:46,970 --> 00:06:48,610 And that's what we did. 65 00:06:48,610 --> 00:06:51,290 So this is the exploit. 66 00:06:51,290 --> 00:06:59,650 The first thing that we wanted to know and to play around with the file was to see what was the operating system running. 67 00:06:59,790 --> 00:07:10,850 So we do the curl, put the full URL, the plugin place, the vulnerable parameter which was the subscriber URL. 68 00:07:10,850 --> 00:07:15,690 So we put just to see if it's running Linux and it was. 69 00:07:15,690 --> 00:07:18,310 The response is below. 70 00:07:18,310 --> 00:07:30,510 So it's Ubuntu, not the latest version but it gave us with this operating system, gave us clues to understand the path and the configuration files for other stuff. 71 00:07:30,510 --> 00:07:50,690 So moving forward, so now we noticed that it's running virtual host, so we do the bash, it's like going through to see how we can get the full path, internal path for the WordPress installation and get the WP config. 72 00:07:50,690 --> 00:08:08,550 Sites enabled, we needed to know the domain itself, so we tried it and in the end after like experience because sites enabled usually it's the subdomain, we tried that on the subscriber URL and we got the document root which was this one. 73 00:08:08,550 --> 00:08:21,750 With that we just tried just WP config and we got the database from this high level manufacturer that in the end decided to tell us good work. 74 00:08:22,230 --> 00:08:23,610 And it fixed it. 75 00:08:24,150 --> 00:08:40,150 Another brand, this is my favorite because it's a brand that I'm very close to and we found out some cool stuff like BOLA, Reflective, cross-site scripting and again components that are vulnerable. 76 00:08:41,930 --> 00:08:55,470 It's very hard sometimes to get Vims from cars as you can see, usually it's placed on the windshield but you can also try other things like going to Google and search for Vims. 77 00:08:55,910 --> 00:08:57,490 And we did that. 78 00:08:58,250 --> 00:09:12,370 Not only that, we decided okay, let's see if we can create on this manufacturer account dashboard add these cars without any confirmation. 79 00:09:12,530 --> 00:09:20,970 So we create a persona which is G1 and we added a bunch of cars like you can see on the picture. 80 00:09:20,970 --> 00:09:28,240 Sorry it's in Portuguese, we are from Portugal so it's automatic translated but it works in every language. 81 00:09:28,240 --> 00:09:29,980 So we added these cars. 82 00:09:30,380 --> 00:09:50,880 On other brands and I can tell you that like on the nine manufacturers that we tried, at least three you need to confirm on the infotainment inside the car to have the car added to your dashboard account on the car website. 83 00:09:50,980 --> 00:10:02,740 In this case, like you can edit and get information from this is the information you added without any interaction from the user inside the car. 84 00:10:02,740 --> 00:10:04,440 So that's a big issue. 85 00:10:04,440 --> 00:10:11,880 Some brands tell you that no, it's normal but you can see after a while it's not. 86 00:10:11,980 --> 00:10:22,120 So on this information that we get on the UI dashboard, you know that you have an outdated car for example. 87 00:10:22,280 --> 00:10:27,400 You can see the versions from the infotainment system. 88 00:10:28,380 --> 00:10:41,000 You can see issues related to guarantees if you paid for years to have more guarantee on your vehicle. 89 00:10:41,020 --> 00:10:47,800 Also more information that what you need to do when you go to an inspection car. 90 00:10:49,060 --> 00:10:59,720 But one thing that we noticed is that we could get more information on the API that was not present on the UI and this is cool. 91 00:10:59,720 --> 00:11:00,120 Okay? 92 00:11:00,120 --> 00:11:03,000 So we tried that. 93 00:11:03,080 --> 00:11:12,140 And by the way, with this endpoint which is already fixed, so disclaimer, you don't need even to be authenticated. 94 00:11:12,140 --> 00:11:14,380 This is like public information. 95 00:11:15,900 --> 00:11:27,760 On the API we can get a meter, fuel, battery status if it's electric, oil life, tire pressure for each wheel, for each tire and et cetera. 96 00:11:27,760 --> 00:11:29,500 You can see the screenshot on the API. 97 00:11:29,500 --> 00:11:32,400 This information is not present on the UI by the way. 98 00:11:32,400 --> 00:11:34,380 So we get that. 99 00:11:34,860 --> 00:11:52,380 It will be cool like to get, for example, on this manufacturer for a friend and you can go check out his VIN and bet with him, okay, if I know the exact number of kilometers that your car has, you buy me a beer. 100 00:11:52,380 --> 00:11:54,060 So this is win-win. 101 00:11:56,320 --> 00:12:10,520 Other information, I think that's another endpoint that we found using our intersection only using a proxy was like type of vehicle which is in the car, not that relevant. 102 00:12:11,320 --> 00:12:16,480 So model, one thing, and I put the smileys on, Wi-Fi hotspot, very cool. 103 00:12:16,480 --> 00:12:19,140 I love cars with Wi-Fi hotspots. 104 00:12:19,160 --> 00:12:22,580 Also if it's connected to the Internet, even better. 105 00:12:23,480 --> 00:12:28,600 And as you can see, we can do a lot of things, especially with Wi-Fi hotspots. 106 00:12:29,720 --> 00:12:31,520 We can wiggle, wiggle. 107 00:12:31,520 --> 00:12:38,880 So I got the hotspot from the broadcast MAC address. 108 00:12:38,880 --> 00:12:54,640 I grabbed it and go to wiggle and then we get location from the vehicles and that's very cool because I'm talking about millions of these manufactured but it works also for other brands. 109 00:12:54,640 --> 00:12:57,600 So this is like crazy. 110 00:12:59,800 --> 00:13:23,880 Firmware update is something that we still like a work in progress because on this specific request, we get information from firmware but not only that, we can download it, unpack it, and what we did is just I mounted on my operating system, I noticed what was the operating system running on the infotainment, 111 00:13:23,880 --> 00:13:27,780 it was armaments, but I didn't check for more information so far. 112 00:13:27,780 --> 00:13:32,300 I was focused on the API stuff so I moved forward. 113 00:13:32,700 --> 00:13:39,780 Recalls, this is something that the manufacturer was like telling me that this was an acceptable risk. 114 00:13:39,780 --> 00:13:44,240 Again, I don't understand why but I will explain that later. 115 00:13:44,700 --> 00:13:58,840 The recalls, it's something that the information that it comes is very juicy because especially you know if the car was like had problems with something and get information about that. 116 00:13:58,840 --> 00:14:07,760 But not only that, we noticed that one of the fields returning on the response of this API request was the description part. 117 00:14:07,760 --> 00:14:23,560 And it was maybe used by an operator, a mechanical part, I don't know who used this field because most of the PYY information that we got was added to this field. 118 00:14:23,560 --> 00:14:34,420 So I found out something like please return the car to the owner at address with his phone and everything. 119 00:14:34,420 --> 00:14:48,680 So this is like public information according to this manufacturer but you can see name, location of the owner of the car and everything. 120 00:14:48,680 --> 00:14:51,740 I communicated that to the manufacturer. 121 00:14:51,740 --> 00:14:53,600 He told me it's normal. 122 00:14:53,600 --> 00:14:55,560 So maybe. 123 00:14:55,640 --> 00:15:00,540 It's kind of weird to receive sometimes these kind of responses. 124 00:15:00,540 --> 00:15:02,800 But okay, so what? 125 00:15:04,280 --> 00:15:08,900 With all this information together we can do a lot of stuff. 126 00:15:08,900 --> 00:15:12,660 Okay, we can track devices to pinpoint locations. 127 00:15:12,660 --> 00:15:20,960 We can place for example some antennas on specific spots and try to track vehicles. 128 00:15:21,380 --> 00:15:31,420 Analyzing for example you can create, you can know routines from the habits from the for example. 129 00:15:31,460 --> 00:15:33,640 Insights from everything. 130 00:15:33,640 --> 00:15:41,100 How much fuel and you can calculate when the person needs to go refuel or something like that. 131 00:15:41,100 --> 00:15:41,960 A lot of stuff. 132 00:15:41,960 --> 00:15:44,680 Recall information gives you PYY information. 133 00:15:44,680 --> 00:15:48,720 So it's crazy but yeah. 134 00:15:48,720 --> 00:15:52,960 And by the way, yeah, updated components again. 135 00:15:53,040 --> 00:15:54,780 But not only one. 136 00:15:54,780 --> 00:15:57,740 If it's like loading, it takes a while. 137 00:15:57,740 --> 00:16:05,360 Because if it doesn't work, okay, this is all for the same manufacturer. 138 00:16:06,960 --> 00:16:08,140 Halfway. 139 00:16:09,420 --> 00:16:13,000 And still, done. 140 00:16:13,500 --> 00:16:14,820 That's it. 141 00:16:15,760 --> 00:16:20,720 They control the documentation and the third party software very well. 142 00:16:21,140 --> 00:16:23,040 So I think that's it. 143 00:16:23,040 --> 00:16:24,300 Passing to Paulo. 144 00:16:25,020 --> 00:16:27,440 Okay, from now on it's with me I believe. 145 00:16:27,440 --> 00:16:30,900 The point here, this is not a full assessment on car manufacturers. 146 00:16:30,900 --> 00:16:33,780 We are not trying to assess car safety. 147 00:16:34,160 --> 00:16:40,420 This was like a free time to assess how car manufacturers handle their digital asset security. 148 00:16:40,420 --> 00:16:46,640 So we were looking for a few bugs that we could chain together and prove them the impact. 149 00:16:46,640 --> 00:16:57,040 So this is why you're going to see a lot that we can chain with something else and prove them the impact and get the system patched. 150 00:16:57,260 --> 00:16:58,660 So another manufacturer. 151 00:16:58,660 --> 00:17:07,220 I'm not sure how many of you are familiar with the return URI, query string parameter, but when I see one, I get excited. 152 00:17:07,240 --> 00:17:09,880 Probably I'm going to get an open redirect. 153 00:17:10,180 --> 00:17:25,960 But then I have an additional feeling, maybe I can get the cross-site scripting, and all we have to do is change the URI scheme and change from HTTP or HTTPS to JavaScript and we get a cross-site scripting easily. 154 00:17:26,100 --> 00:17:39,280 And chances are that we can access cookies or local storage using our cross-site scripting and probably the ALT token is in there and we can use it to exfiltrate the token. 155 00:17:39,280 --> 00:17:42,140 So this is how we prove the impact here. 156 00:17:42,140 --> 00:17:43,600 It's a quick demo. 157 00:17:43,880 --> 00:17:54,800 So you can use it on a phishing email with a malicious payload and as soon as the victim logins we get the ALT token. 158 00:17:54,800 --> 00:18:10,160 So this way it's not only a cross-site scripting that probably no one are willing to fix, there's the impact here to exfiltrate PII and this is a bigger deal for the manufacturer. 159 00:18:11,800 --> 00:18:19,740 But usually you also find what's called less interesting stuff, like click jacking or UI redressing. 160 00:18:21,200 --> 00:18:41,960 If you're familiar with it or not, what we have on the screen are the same, but there's some red fields and those fields we are loading the login form on our one domain attacker.com and the red ones are fields that we put on top of the legit login form. 161 00:18:41,960 --> 00:18:45,080 So this is why redressing is how the attack works. 162 00:18:45,080 --> 00:18:53,660 It's not that fancy and probably no one is going to fix UI redressing as long as you can prove the impact it may have. 163 00:18:53,660 --> 00:19:11,780 And chances are this is just an hypothesis that the same company or organization has a subdomain pointing to an AWS cloud front and when you request some resources from it, you realize it comes from S3. 164 00:19:11,780 --> 00:19:20,760 Not sure whether you're familiar with S3, it's cloud storage, they are called buckets, you can put there whatever you want. 165 00:19:20,760 --> 00:19:23,640 One of the features is hosting static websites. 166 00:19:25,320 --> 00:19:33,860 But Amazon and S3 permissions are not that easy and quite often we choose to go with the star. 167 00:19:33,860 --> 00:19:35,920 We allow everything to everyone. 168 00:19:37,040 --> 00:19:44,640 S3 has a public API, REST API, you can read the docs online and chances are that we can write to the bucket. 169 00:19:44,720 --> 00:19:50,960 I'm not saying that that was the case, but chances are you can write to the bucket and upload whatever you want. 170 00:19:51,400 --> 00:20:02,940 And if you have a UI redressing issue, maybe you can even deploy the login form, deploy the malicious login form on their own subdomain. 171 00:20:03,020 --> 00:20:09,260 And this is how it would potentially look like to exfiltrate credentials. 172 00:20:09,440 --> 00:20:30,960 So you can upload whatever you want to a public S3 or at least internet facing S3 bucket, then you get your UI redressing page deployed on the subdomain, the victims fill the form and you get the credentials on your own server. 173 00:20:31,660 --> 00:20:34,140 This is exactly what we have in this demo. 174 00:20:34,140 --> 00:20:40,260 So with the impact proof, they fixed it. 175 00:20:40,260 --> 00:20:44,860 Otherwise probably they would look like to it like a UI redressing, no one cares. 176 00:20:45,080 --> 00:20:53,300 So let's move on to another manufacturer and you may be asking yourselves why didn't you fuzz to find new end points? 177 00:20:53,300 --> 00:20:54,520 We did it. 178 00:20:55,600 --> 00:21:00,200 And we found something called site minder. 179 00:21:00,200 --> 00:21:06,420 We were not aware what site minder was and we asked chat GPT or AI. 180 00:21:06,420 --> 00:21:10,400 You may be missing the AI buzz word. 181 00:21:10,680 --> 00:21:17,920 And chat GPT told us it's a widely used access management and authentication solution developed by CA technologies. 182 00:21:17,920 --> 00:21:18,240 Okay. 183 00:21:18,240 --> 00:21:22,620 So it's a third party software but you have a domain pointing to it. 184 00:21:22,620 --> 00:21:26,780 So we did what this company was supposed to do. 185 00:21:26,780 --> 00:21:28,540 We checked for CVs. 186 00:21:28,540 --> 00:21:31,580 One of them was a cross site scripting on site minder. 187 00:21:31,720 --> 00:21:34,900 So you may know where this is going to end up. 188 00:21:34,960 --> 00:21:37,060 Just crafting a simple payload. 189 00:21:37,140 --> 00:21:39,520 It's an image on the user name perimeter. 190 00:21:39,740 --> 00:21:44,080 Running some code, some JavaScript code and you get the cross site scripting. 191 00:21:44,820 --> 00:21:49,680 But instead of a single site minder, they had tons of them. 192 00:21:49,680 --> 00:21:55,220 So tons of chances to exploit cross site scriptings on this car manufacturer. 193 00:21:56,240 --> 00:21:58,980 So moving on to another manufacturer. 194 00:21:59,440 --> 00:22:04,880 This is another time when I get the 404 not found. 195 00:22:05,140 --> 00:22:07,900 My heart starts beating faster. 196 00:22:07,900 --> 00:22:10,880 Because this is again an AWS S3 bucket. 197 00:22:10,880 --> 00:22:14,900 And when you get the 404 means that someone deleted the bucket. 198 00:22:14,900 --> 00:22:20,500 And buckets, the name should be unique across all AWS regions. 199 00:22:20,560 --> 00:22:32,000 So if the bucket was deleted but there's still a subdomain pointing to it, you can create the bucket and you're going to get control over the content that's served on this subdomain. 200 00:22:32,000 --> 00:22:34,520 So this is a subdomain takeover technically. 201 00:22:34,900 --> 00:22:41,660 But we need to figure out in which region the bucket should be created, where it was created before. 202 00:22:41,660 --> 00:22:43,660 But this is not magic. 203 00:22:43,660 --> 00:22:45,740 You can use several tools to do it. 204 00:22:45,740 --> 00:22:47,820 Checking the DNS, you get the region. 205 00:22:47,820 --> 00:22:50,660 It's European, Europe central. 206 00:22:50,740 --> 00:22:59,660 You just create the bucket, upload the content and from that moment on you're serving content, whatever you want, on the organization's subdomain. 207 00:22:59,660 --> 00:23:03,540 This is, to be honest, this is quite common on S3. 208 00:23:03,920 --> 00:23:12,080 So keep watching your subdomains, monitor whatever subdomains you have, buckets your assets. 209 00:23:13,120 --> 00:23:18,720 But before moving to the next manufacturer, still cross-site scripting on Swagger UI. 210 00:23:18,720 --> 00:23:27,580 So you're going to find them deployed everywhere and no one cares about non-vulnerabilities on this software. 211 00:23:30,160 --> 00:23:35,020 So let's move on to another manufacturer. 212 00:23:35,100 --> 00:23:36,800 We were looking to Portia. 213 00:23:36,800 --> 00:23:38,600 It's not a secret here. 214 00:23:38,820 --> 00:23:42,540 We found out this website called Portia Experience. 215 00:23:42,540 --> 00:23:45,300 We looked under the wood to understand how it worked. 216 00:23:45,300 --> 00:23:48,820 It's a single page application backed by a GraphQL API. 217 00:23:48,920 --> 00:23:53,660 So this time it's not but we noticed something quite strange. 218 00:23:53,720 --> 00:24:00,740 The ALT token was included twice on the GraphQL request, both on the cookies and in the authorization header. 219 00:24:00,940 --> 00:24:12,720 It depends how familiar you are with HTTP, but adding the ALT token on the request header is a game changer in terms of cross-site scripting. 220 00:24:12,720 --> 00:24:21,540 If the API picks the ALT token from the cookie, cookies are managed by the web browser and they are automatically added to the request. 221 00:24:21,800 --> 00:24:28,020 So we came up with the idea maybe we can exploit the cross-site request forgery. 222 00:24:28,020 --> 00:24:30,900 Let's see if that happens or not. 223 00:24:31,000 --> 00:24:40,360 To do that, the API should get the ALT token from the cookie instead of the authorization header and that was what was happening with the GraphQL API. 224 00:24:40,940 --> 00:24:50,880 Then we need the API to be willing to fulfill requests coming from or started from another origin, which the API is also willing to do. 225 00:24:50,880 --> 00:24:57,820 So we still have some cross-origin request sharing issue here, misconfiguration on the API. 226 00:24:58,060 --> 00:25:05,160 But then browsers include several security features, namely to protect your cookies. 227 00:25:05,300 --> 00:25:11,920 And the browser, they were not willing to include the cookie on requests started from external origins. 228 00:25:11,960 --> 00:25:16,120 So it was like, there's no way here, it's a dead end. 229 00:25:16,120 --> 00:25:21,060 But in fact, cross-site scripting would make this a great issue. 230 00:25:21,080 --> 00:25:30,040 So instead of one, we found three cross-site scriptings in different websites and we decided to go with the campaigns.porsche.com for a phishing email. 231 00:25:30,040 --> 00:25:35,580 It sounds kind of catchy if you can offer something on a campaigns.porsche.com. 232 00:25:35,800 --> 00:25:46,300 So this is the vulnerable URL, you should keep the integer for some reason, but you can then append HTML. 233 00:25:46,760 --> 00:25:55,900 So this is the loader we're gonna add to the URL that we're gonna send to victims to load a JavaScript file from a remote server. 234 00:25:56,340 --> 00:26:02,920 Then we have to do some encoding because it's not that easy to manage spaces and special characters on the URL. 235 00:26:02,960 --> 00:26:06,400 And this is what's fetched from our remote server. 236 00:26:06,400 --> 00:26:13,280 We're gonna do a GraphQL query, fetch victims PII and exfiltrate it to the remote server. 237 00:26:13,280 --> 00:26:19,480 Then we just need to trick victims to click the URL, so offer them something like a Porsche experience, why not? 238 00:26:19,840 --> 00:26:22,100 And this is how it goes. 239 00:26:23,620 --> 00:26:35,040 So we are waiting victims' data, so let's email them. 240 00:26:35,040 --> 00:26:36,260 We get the click. 241 00:26:37,000 --> 00:26:39,680 So as you can see, I read the emails. 242 00:26:40,560 --> 00:26:47,600 Then I click them, the links, and from that moment on, we get the PII on our remote server. 243 00:26:47,660 --> 00:26:53,180 Again, the point here is not, none of the issues here are that fancy. 244 00:26:53,200 --> 00:26:56,360 The point is chaining them together and impact. 245 00:26:56,520 --> 00:26:59,200 And this way we get all of them fixed. 246 00:27:01,580 --> 00:27:09,120 So we talked about subdomain takeover. 247 00:27:09,120 --> 00:27:15,820 So this is another subdomain takeover on a different manufacturer, but here the issue is a bit different. 248 00:27:15,840 --> 00:27:26,320 In this case, and sometimes if you want to integrate with some third party, they're point a subdomain to our domain or subdomain. 249 00:27:26,320 --> 00:27:30,660 They create a custom subdomain so you can point something to them. 250 00:27:30,660 --> 00:27:40,040 But then at some point the company gave up on the product, but your DNS record is still pointing to their one. 251 00:27:40,040 --> 00:27:44,780 And if it was a bucket and they just deleted their bucket, we can create the bucket. 252 00:27:44,780 --> 00:27:46,640 That was the case here. 253 00:27:46,640 --> 00:27:56,660 There was a DNS record pointing to another company and the company gave up on the bucket and we created the bucket and we got our content delivered through their bucket. 254 00:27:58,060 --> 00:28:01,440 So again, Swagger UI. 255 00:28:01,440 --> 00:28:15,200 So if there's a big takeaway today, go home and check whether your company has Swagger UI deployed or any other third party piece of software and check whether there are known vulnerabilities and patch the systems. 256 00:28:15,440 --> 00:28:17,400 So time for another one. 257 00:28:17,400 --> 00:28:22,580 Nothing fancy again, just a cross site scripting on Swagger UI. 258 00:28:23,940 --> 00:28:30,260 So we've talked about misconfigured AWS S3 buckets. 259 00:28:30,260 --> 00:28:38,360 So here's another use case, the same issue, public writeable S3 buckets. 260 00:28:38,360 --> 00:28:52,040 So the same thing, you get your own codes running on one of their subdomains and then you can access APIs and other stuff because you're running on their one subdomain. 261 00:28:52,040 --> 00:28:58,060 So most of the policies can be bypassed or will be bypassed this way. 262 00:28:59,340 --> 00:29:14,320 So we just got our content, again we use a phishing email, I believe we asked ChatGPT to write it, not exactly give me a phishing email because otherwise we won't get it. 263 00:29:15,980 --> 00:29:24,780 But as it happened before, with this simple trick we get the auth token that we can then use. 264 00:29:25,340 --> 00:29:32,460 This case, I believe we got the, it was PII from the API. 265 00:29:32,900 --> 00:29:36,320 But that was not the only one issue with this manufacturer. 266 00:29:36,320 --> 00:29:41,480 As David said, you have a vehicle identification number, you can get them from your windshield. 267 00:29:41,620 --> 00:29:46,100 So let's call it public because anyone can get it from your car park, from the car park. 268 00:29:46,100 --> 00:29:55,840 Or if you're lazy enough as we are, you go to Google, you search and you get 1,890,000 vehicle identification numbers. 269 00:29:56,300 --> 00:30:01,660 And then you can add them to your, you can use the API to fetch PII. 270 00:30:01,660 --> 00:30:03,800 Driver's PII, owner's PII. 271 00:30:03,800 --> 00:30:06,000 There was something interesting here. 272 00:30:06,400 --> 00:30:16,600 We were not able to use this API endpoint before adding them, okay just a few seconds, before adding one car. 273 00:30:16,600 --> 00:30:17,980 We need to be a owner. 274 00:30:18,000 --> 00:30:20,880 But we can be a owner of anyone's car. 275 00:30:20,880 --> 00:30:30,160 Just pick the VIN, add to your account, you become a owner and from that moment on you can do thousands of requests to just scrape the data from the API. 276 00:30:32,220 --> 00:30:41,760 Maybe you're lucky and you're gonna get again a cross-site scripting from some redirect URI and you can do the same magic we did before. 277 00:30:42,760 --> 00:30:47,520 Okay, I'm not sure we're gonna be, we're gonna have time for all of them but those are quick. 278 00:30:48,540 --> 00:30:52,240 Let's see if you have SiteMinder, go home and patch it. 279 00:30:52,340 --> 00:30:58,200 We have 91 instances of SiteMinder in the same company, so go home and fix it. 280 00:30:58,820 --> 00:31:04,420 Very fast, just to tell you, you have the table with all the information. 281 00:31:04,980 --> 00:31:11,860 Organizations, subscribe to vulnerability databases of course, create a safe harbor for us, hackers, so that's very cool. 282 00:31:11,860 --> 00:31:15,800 Reply to our emails, it's for everyone's security. 283 00:31:16,380 --> 00:31:20,520 AI won't make your assets safe but only safer. 284 00:31:20,520 --> 00:31:25,140 That's the QR code if you want a promo on API security training, so that's it. 285 00:31:25,140 --> 00:31:25,580 Thank you.