1 00:00:00,680 --> 00:00:03,960 So yeah, so the talk today is called Unexpected Connections. 2 00:00:04,520 --> 00:00:06,080 The speaker's name is Eaton. 3 00:00:07,240 --> 00:00:09,380 And, you know, it's going to be a really interesting talk. 4 00:00:09,380 --> 00:00:12,320 Hopefully you guys don't do this off the con. 5 00:00:12,460 --> 00:00:14,380 But it sounds very interesting. 6 00:00:14,380 --> 00:00:16,560 And he'll explain to you what he's talking about. 7 00:00:16,560 --> 00:00:17,380 Here you go, Eaton. 8 00:00:20,670 --> 00:00:23,170 Alright, thank you all so much for attending. 9 00:00:23,170 --> 00:00:24,630 My name is Eaton Zavir. 10 00:00:24,730 --> 00:00:27,250 And my talk today is called Unexpected Connections. 11 00:00:27,250 --> 00:00:31,010 How a vulnerability in obscure dealer software could unlock your car from anywhere. 12 00:00:31,010 --> 00:00:35,250 But in a way that actually kind of undersells what actually happens. 13 00:00:35,250 --> 00:00:42,110 In reality, what I really did was basically take over an entire automotive ecosystem composed of more than a thousand dealers. 14 00:00:42,570 --> 00:00:47,150 And unlocking your car was really just the tip of the iceberg as to what I could do. 15 00:00:47,490 --> 00:00:52,670 This talk only goes into about 25% of what I could actually do. 16 00:00:52,670 --> 00:00:55,130 So there's only so much I could talk about. 17 00:00:55,130 --> 00:00:57,130 But there's a lot of fun content to come. 18 00:00:57,130 --> 00:00:58,670 So thank you again for coming. 19 00:00:59,310 --> 00:01:01,050 So a little bit about me. 20 00:01:01,050 --> 00:01:05,950 I got my start in the Xbox and Pokemon days with hacking Xboxes. 21 00:01:05,950 --> 00:01:09,290 I still do that to this day and they basically taught me everything I know. 22 00:01:09,290 --> 00:01:13,730 I'm mostly self-taught just by hacking Xboxes, hacking video games. 23 00:01:13,730 --> 00:01:17,810 It's really what's encouraged me to do more in my life. 24 00:01:18,030 --> 00:01:25,130 So my first big hack in the web space was with Jacuzzi and their smart tub app system. 25 00:01:25,130 --> 00:01:28,610 There was a vulnerability there that let me take over their worldwide smart tub network. 26 00:01:28,610 --> 00:01:32,550 And that made for some amusing headlines that you can see there in the middle. 27 00:01:32,890 --> 00:01:36,650 So about a year later from that I had an idea. 28 00:01:36,810 --> 00:01:39,410 What if I switch to the automotive industry? 29 00:01:39,490 --> 00:01:46,970 So I decided to pick on Toyota one time and I found a vulnerability in their supplier network and that made nationwide news. 30 00:01:46,970 --> 00:01:50,250 So it was pretty humbling to get my name out there like that. 31 00:01:50,330 --> 00:01:54,390 And just last year I hacked McDonald's McDelivery. 32 00:01:54,390 --> 00:01:58,730 We can basically change the orders to order anything for a penny. 33 00:01:58,850 --> 00:02:00,490 And this was in India. 34 00:02:00,490 --> 00:02:02,710 That was a lot of fun to do. 35 00:02:06,190 --> 00:02:07,890 I am that guy. 36 00:02:09,230 --> 00:02:12,310 So I talk about automakers just for fun. 37 00:02:12,310 --> 00:02:14,250 They're big old companies. 38 00:02:14,250 --> 00:02:16,870 There's a lot of infrastructure out there. 39 00:02:17,010 --> 00:02:20,730 The example I have here on the screen shots is Mercedes-Benz. 40 00:02:20,730 --> 00:02:26,570 They have thousands of sub-domains out there and each of those is just an exploit waiting to happen potentially. 41 00:02:26,690 --> 00:02:34,090 I usually just get a list from certificate transparency logs go through them one by one and try and find anything interesting. 42 00:02:36,010 --> 00:02:39,590 What I typically look for is Angular and React apps. 43 00:02:39,590 --> 00:02:48,010 That's basically all I look for nowadays because when I find them I consider it a Christmas gift because there's always some kind of gift waiting to be discovered. 44 00:02:48,030 --> 00:02:58,930 And by gift I mean security vulnerability like there might be an API key or admin endpoint that's insecure and there's a lot of fun to be had through these JavaScript heavy apps. 45 00:02:59,110 --> 00:03:02,930 And remember the fact that you can find admin functionality in these apps too. 46 00:03:03,530 --> 00:03:05,450 So now into the details. 47 00:03:05,450 --> 00:03:06,410 What did I do? 48 00:03:06,410 --> 00:03:08,870 So this is brand new, undisclosed. 49 00:03:09,070 --> 00:03:10,870 You're the first people to hear about it. 50 00:03:10,870 --> 00:03:16,170 This happened back in January and I've been working on it with the manufacturer ever since. 51 00:03:16,570 --> 00:03:26,850 So basically when you go into a dealership they're on their computers they're using this specialized software to order cars and all that and that's basically what I hacked. 52 00:03:26,970 --> 00:03:33,890 I just didn't hack a single dealership I hacked basically all of them in the entire network and it's more than a thousand of them. 53 00:03:34,230 --> 00:03:51,670 And I did that by creating a method to create a national admin account in the back end and it basically gave me complete root access to everything like it could access all your information take over your car get all the finance information it's just a laundry list of things. 54 00:03:53,650 --> 00:04:03,850 So this system it's used by all the dealers in the manufacturers network it's publicly accessible by the internet and they use it everyday for their daily operations. 55 00:04:04,270 --> 00:04:08,770 When you go to the sites you can't actually register because it's invite only. 56 00:04:08,770 --> 00:04:10,930 So that was a bummer right away. 57 00:04:11,090 --> 00:04:16,530 And it's also extra secure because it uses two factor authentication by email or text. 58 00:04:16,670 --> 00:04:21,290 And it's also what stood out to me it's an angular front end. 59 00:04:22,970 --> 00:04:25,050 So now to the invite system. 60 00:04:25,050 --> 00:04:28,290 This is an actual screenshot from the dealers website. 61 00:04:28,650 --> 00:04:39,010 So the way it's supposed to work is when you're a new employee there, you are supposed to ask your admin, the ownership, the owner of the dealership to invite you to your corporate email. 62 00:04:39,190 --> 00:04:46,130 So when you get the invite you click on it and inside that link is your unique invite token. 63 00:04:46,530 --> 00:05:02,490 And when you load the website with the invite token as a query parameter the website will fire off an API request to basically validate it and if it's good it will show you a registration form where you can continue the registration but if it's bad it will just tell you it is wrong. 64 00:05:04,010 --> 00:05:09,570 So it turns out the registration form is hidden in the HTML on the front end of the site. 65 00:05:09,570 --> 00:05:15,250 So I did a quick trick by just using Chrome DevTools to make it show up. 66 00:05:15,610 --> 00:05:21,010 And then from there I can fill in the details and I try clicking submit. 67 00:05:22,650 --> 00:05:28,730 So when you submit the form, it submits the same invite token that was in the email. 68 00:05:29,070 --> 00:05:37,470 And I saw that before I clicked submit and I thought I don't have valid tokens so I had a bad feeling it wouldn't actually do anything. 69 00:05:37,470 --> 00:05:40,190 But it turns out there's good news. 70 00:05:40,190 --> 00:05:41,910 The server doesn't check it. 71 00:05:43,070 --> 00:05:44,630 It could be blank. 72 00:05:44,810 --> 00:05:50,870 So whatever information you put there, the system would happily accept it and you would have a brand new account. 73 00:05:51,570 --> 00:05:53,550 But that wasn't all good news. 74 00:05:53,710 --> 00:05:56,450 So I checked my email accounts. 75 00:05:56,490 --> 00:05:58,670 I got the email so I got really excited. 76 00:05:58,890 --> 00:06:04,850 But then I tried the user ID and password they gave me but it didn't work. 77 00:06:04,850 --> 00:06:10,650 There's apparently a secondary step where the dealership admin has to verify your registration. 78 00:06:10,830 --> 00:06:17,630 So good on them for making sure that this vulnerability wasn't actually the full way in. 79 00:06:18,630 --> 00:06:20,850 So this was really a bummer. 80 00:06:20,850 --> 00:06:23,350 I was kind of stuck for a few days on it. 81 00:06:23,350 --> 00:06:26,750 This page, there's just like this one login script. 82 00:06:26,750 --> 00:06:30,430 There wasn't anything else besides verifying the invite token and registration. 83 00:06:31,110 --> 00:06:32,930 And I was just stuck. 84 00:06:32,930 --> 00:06:35,050 The rest of the sites was protected with login. 85 00:06:35,050 --> 00:06:38,830 If you went to it, you would just get redirected to the login screen. 86 00:06:38,850 --> 00:06:41,650 You really needed a ballot session to get any further. 87 00:06:43,150 --> 00:06:49,210 So what I discovered is, when you log in, there's a profile update check box. 88 00:06:49,430 --> 00:06:59,190 And when you check it, the login actually works and it just redirects you to the profile update screen where you can presumably make any changes if you made a mistake. 89 00:06:59,190 --> 00:07:05,010 Like your dealer admin tells you, your name is wrong, go back and fix it before I verify you. 90 00:07:05,490 --> 00:07:09,070 So the key here was that it established a session. 91 00:07:09,070 --> 00:07:20,730 So I got a J session ID cookie and I discovered that if you went away from that profile update page to the main site again, the front end of the site would briefly load. 92 00:07:20,770 --> 00:07:24,330 It would just display a bunch of errors and then it would lock you out. 93 00:07:24,670 --> 00:07:41,270 But that was really a big next step because in the background, so this website took like a minute to load because there were so many scripts and that really excited me because when you opened Fiddler, which is a network interception tool, you could see all the scripts being downloaded. 94 00:07:41,430 --> 00:07:43,710 And there were just like, hundreds of them. 95 00:07:43,710 --> 00:07:46,470 And what stood out was the admin scripts. 96 00:07:46,610 --> 00:07:48,690 That, that's always exciting to see. 97 00:07:48,970 --> 00:07:56,250 And these were previously unattainable because unless you had the valid session, you could not get access to these scripts at all. 98 00:07:56,250 --> 00:07:59,350 So this was key in finding the admin scripts. 99 00:08:00,170 --> 00:08:05,130 And what stood out specifically was the user creation scripts. 100 00:08:06,810 --> 00:08:13,690 But to actually get further into the site, I had to make some patches to get rid of those previous error messages. 101 00:08:14,190 --> 00:08:25,250 So, I used Chrome local overrides which is really such an incredibly useful feature by Google that basically lets you override web content from web servers. 102 00:08:25,250 --> 00:08:32,210 So if you have like a job script file you want to patch, you can just use this feature and it'll load an override from your hard drive. 103 00:08:32,850 --> 00:08:36,570 So I used this to modify and patch things like security checks. 104 00:08:38,010 --> 00:08:45,410 And now the first patch I had to do was to get rid of that annoying pop up that said you had to log in using a valid dealer code. 105 00:08:45,970 --> 00:08:48,870 So the first patch was to just comment it out. 106 00:08:49,070 --> 00:08:50,270 Easy enough. 107 00:08:51,710 --> 00:08:54,110 The second one was a bit more complicated. 108 00:08:54,110 --> 00:09:03,570 So, when I went to the admin user creation routes, it would redirect you to the home page and then display this access denied background. 109 00:09:04,030 --> 00:09:14,950 So, what I had to do is basically go into the redirect function and just return an empty string, which means you're not supposed to be redirected anywhere else and you can proceed to your destination. 110 00:09:16,190 --> 00:09:23,250 With those in place, the base admin user page would load and it showed me some users. 111 00:09:24,010 --> 00:09:34,830 That really excited me because that told me that there's definitely some kind of server side vulnerability that's not checking you for proper user privileges. 112 00:09:35,430 --> 00:09:40,350 But, while that's exciting, what was more exciting was the create button at the top right. 113 00:09:41,590 --> 00:09:50,450 This opened a brand new user registration form that was a lot better than the initial one on the front end of the site and had a lot of juicy access options. 114 00:09:50,630 --> 00:09:56,930 What stood out was the national option and the admin dealer administrators access option at the bottom. 115 00:09:57,450 --> 00:10:04,250 So, the bottom list you see there, I can only show so much because that list is like a CVS receipt. 116 00:10:04,250 --> 00:10:06,050 It just went on and on and on. 117 00:10:06,550 --> 00:10:08,450 You would need a microscope to see all the options. 118 00:10:08,450 --> 00:10:10,970 So, they really fine tuned the access permissions. 119 00:10:11,510 --> 00:10:20,810 So , while I initially selected the first option, afterwards when I was in, I actually select all the options so I would have full access. 120 00:10:20,930 --> 00:10:25,770 But anyway, before I get into that, I fill in my information and click submit. 121 00:10:26,430 --> 00:10:28,850 And to my amazement, it actually went through. 122 00:10:28,850 --> 00:10:35,490 And the email inbox got the admin credentials and I was able to log in from there. 123 00:10:36,950 --> 00:10:40,470 So, this worked because the server side was insecure. 124 00:10:40,510 --> 00:10:47,030 It checked that you had a valid token, but it didn't check if you were an admin and you were allowed to call these APIs. 125 00:10:47,630 --> 00:10:54,530 So, that is why you were able to create this admin account even though you were a lowly, unauthorized dealer user. 126 00:10:56,810 --> 00:11:00,490 So, with that admin account, the door is just wide open. 127 00:11:00,490 --> 00:11:02,090 You had access to everything. 128 00:11:02,090 --> 00:11:03,410 And I mean everything. 129 00:11:03,530 --> 00:11:08,850 So, when you get in, when you log in for the first time, you're supposed to choose a dealer to administer. 130 00:11:09,010 --> 00:11:15,650 And as an account with access to more than one dealership, you could choose what dealer to log in as. 131 00:11:15,650 --> 00:11:18,350 And there's one thousand seven hundred of them. 132 00:11:18,490 --> 00:11:23,690 A few hundred of those were test dealers like road shows, ports and stuff. 133 00:11:23,910 --> 00:11:28,670 So, the real number is a few hundred less than that, but it's still well over a thousand. 134 00:11:31,030 --> 00:11:33,690 So, with this access, what could you do? 135 00:11:33,690 --> 00:11:36,410 Let's get into one of the fun topics. 136 00:11:37,130 --> 00:11:43,950 So, when I live in Florida, I usually go to the Publix on the weekends to do a little grocery shopping and pick up a bowl of sushi. 137 00:11:44,750 --> 00:11:52,150 So, just to set the stage, I can't name the manufacturer, but it's really one of the top automakers in the US. 138 00:11:52,430 --> 00:11:59,330 And the way I like to put it, if you go to the grocery store and you look for a Lucid Motors car, you're probably not going to see one. 139 00:11:59,690 --> 00:12:05,110 But with this manufacturer, you're going to probably see dozens of them on the way to your store. 140 00:12:05,470 --> 00:12:10,370 So, like I was picked up in an Uber by the manufacturer's car multiple times. 141 00:12:10,930 --> 00:12:13,850 Little did the drivers know what could have happened to them. 142 00:12:14,810 --> 00:12:26,790 So, anyway, I went, I found a car at the Publix really easily, and every car has a VIN number stamped onto the windshield, which you can just take a picture of, which is what I did. 143 00:12:28,530 --> 00:12:35,230 So, in the dealer system, there's a lookup tool that lets you look up users by VIN number or first and last name. 144 00:12:35,370 --> 00:12:45,650 So, for this test, I used a VIN number and I plugged it in, and just like that, I knew the person's name, where they lived, their phone number, email, and other information. 145 00:12:45,790 --> 00:12:48,490 You can look up what other cars they had and so forth. 146 00:12:48,730 --> 00:12:51,770 And they would never know this happens. 147 00:12:51,770 --> 00:12:57,190 You just silently took a picture of their windshield, and suddenly you know everything about them. 148 00:12:59,110 --> 00:13:00,890 Now, getting to the juicy bits. 149 00:13:00,890 --> 00:13:01,990 Hacking a car . 150 00:13:01,990 --> 00:13:04,050 How could I actually take that car over ? 151 00:13:04,250 --> 00:13:09,930 So, there's been a lot of interesting hacks over the years with key fobs, mobile apps, and mobilizers. 152 00:13:10,470 --> 00:13:13,630 But, no one ever really targets the actual dealers. 153 00:13:13,830 --> 00:13:20,110 And it turns out, the unexpected connection is, they have a lot of control over your car. 154 00:13:20,110 --> 00:13:21,630 Which I'm about to demonstrate. 155 00:13:23,150 --> 00:13:32,410 So, when you buy a car, new or used, they have this enrollment system to basically pair you to your brand new car, so you can use the mobile apps to control it. 156 00:13:33,210 --> 00:13:40,230 This lets you unlock the car, start the engine, locate it wherever it is in the United States. 157 00:13:40,810 --> 00:13:45,910 And I found that you can basically abuse this process to transfer ownership of cars to me. 158 00:13:47,090 --> 00:14:02,890 So, to test this, it didn't take long to find a friend who had a vulnerable car, and I got his full permission to test it to see if I could create my own account, and then transfer the car that's on his account to my own account, and then see if I can control it. 159 00:14:04,170 --> 00:14:13,010 So, step one, I created my consumer accounts, and then I logged into the private internal dealer enrollment system. 160 00:14:13,310 --> 00:14:17,690 The first step is to just select my account, and then click add vehicle. 161 00:14:18,530 --> 00:14:24,350 The next step is to basically add, to put the VIN number of the car that you want to own. 162 00:14:24,470 --> 00:14:39,550 So, this screen is supposed to be the screen that only dealers see, and it says there to basically check that the person is who they say they are, that they own the car, and that everything is on the up and up. 163 00:14:39,730 --> 00:14:48,550 And this is basically done by picky swear, because when you click continue, it assumes you've done all these tasks and doesn't bother you further. 164 00:14:50,190 --> 00:15:00,550 The next step, apparently they really own your driving habits, so if you're a frequent breaker, if you're a reckless driver, apparently they're supposed to ask you and you have to check the boxes. 165 00:15:00,550 --> 00:15:05,550 I don't know why you want to tell them that, but this is the reality. 166 00:15:07,110 --> 00:15:12,310 Next step was to just confirm the customer's account information, which is their address and so forth. 167 00:15:13,990 --> 00:15:16,550 And, the ownership transfer was complete. 168 00:15:16,790 --> 00:15:19,570 Presumably, the car would be linked to my account. 169 00:15:21,610 --> 00:15:28,190 So, I basically logged into my account, using the manufacturer's mobile app, and lo and behold, the car was there. 170 00:15:28,190 --> 00:15:29,910 I own the car. 171 00:15:30,130 --> 00:15:37,470 So, first thing I did was start the engine, unlock the doors, honk the horn, and my friends confirmed that it all worked perfectly. 172 00:15:38,310 --> 00:15:42,410 And, I could do this for any car I found in the wild, not just my friends. 173 00:15:42,710 --> 00:15:45,830 And of course, the car was transferred back to the friends without issue. 174 00:15:45,830 --> 00:15:47,510 It was very easy. 175 00:15:49,690 --> 00:15:59,310 So, how many of you, when you buy a new car, you say no when the sales person asks you if you want to set the mobile app up? 176 00:16:01,310 --> 00:16:02,510 Just a few of you? 177 00:16:02,510 --> 00:16:09,590 Well, that's good, because if you say no, you're actually making yourself a little more vulnerable. 178 00:16:11,970 --> 00:16:23,330 I found this process, this reassignment process, to be a little noisy, because when you perform the transfer, the previous owner gets an email that their subscription has been deactivated. 179 00:16:23,590 --> 00:16:27,850 But, if you were never linked to the car in the first place, you would not know. 180 00:16:27,990 --> 00:16:33,450 So, if I would do this on a car that's not linked to you, I would be considered the first owner. 181 00:16:33,530 --> 00:16:44,430 So, you would have no idea that I just took over your car, I can go over to your house and say, I know your address, and just take all your stuff out, lock it, and then you would have no idea what would have happened. 182 00:16:44,450 --> 00:16:45,990 It would be a silent takeover. 183 00:16:48,310 --> 00:16:59,170 So, yeah, this process is a bit noisy, it's email, it's very, you get an email about it if you do the transfer, but ultimately you're powerless to stop it. 184 00:16:59,430 --> 00:17:06,130 Like, the email asks you to call corporate if this was a mistake, but by that point it would be too late. 185 00:17:06,790 --> 00:17:10,770 And I think most dealers, most dealer employees would have access to this tool. 186 00:17:10,770 --> 00:17:15,570 So, if anyone gets phished over there, they can probably do this to anyone. 187 00:17:15,570 --> 00:17:18,030 I'm kind of surprised this has never happened before. 188 00:17:18,030 --> 00:17:23,270 And this affects all cars model year 20, 2012 and newer. 189 00:17:23,270 --> 00:17:27,190 For this one manufacturer though, so it's not an industry wide issue. 190 00:17:27,590 --> 00:17:31,850 That's because this telematics module is basically installed in every car. 191 00:17:31,850 --> 00:17:34,930 So they want to make their money and know where you live. 192 00:17:35,730 --> 00:17:45,170 And even scarier, like let's say you know your friend has this specific model car, but you don't know the VIN number. 193 00:17:45,210 --> 00:17:51,350 You could just log into the consumer update tool, plug in their first and last name and you can find the VIN number that way. 194 00:17:52,470 --> 00:17:54,670 I did this internally with someone. 195 00:17:55,050 --> 00:17:58,010 They said they had an affected car, but they didn't give me the VIN number. 196 00:17:58,170 --> 00:17:59,670 So I looked them up by name. 197 00:17:59,870 --> 00:18:01,450 I found their VIN number. 198 00:18:01,550 --> 00:18:05,430 I looked up some information about it and I sent them to this, is this you bro? 199 00:18:06,130 --> 00:18:07,950 And they confirmed that it was. 200 00:18:08,270 --> 00:18:09,610 So, kind of scary. 201 00:18:11,070 --> 00:18:19,630 Now, getting into more of the dealer system, it's just there's a lot of functions and I'm just going to go over a few of them. 202 00:18:20,310 --> 00:18:28,690 So, this dealer system is controlled by SSO which means when you have the national admin accounts, you can SSO into everything. 203 00:18:28,690 --> 00:18:31,570 You can also access the SSO settings directly. 204 00:18:31,710 --> 00:18:35,410 So, you can just configure anything, new systems and so forth. 205 00:18:35,650 --> 00:18:40,350 But the important thing that came in handy later was the list of system IDs. 206 00:18:40,350 --> 00:18:44,910 This is what the SSO settings are in detail. 207 00:18:44,910 --> 00:18:49,670 You could change various variables, view the password and configuration. 208 00:18:52,560 --> 00:18:59,820 Now, so, there's the main corporate, there's the main primary brands of cars. 209 00:18:59,820 --> 00:19:02,200 And they also have a luxury sub-brand. 210 00:19:02,440 --> 00:19:13,540 So, this system is basically the same, but it has a fresh coat of paint, it's on a different domain and the same cookies do not work between systems. 211 00:19:14,200 --> 00:19:27,260 The invite token exploits on the first, on the initial login step did work, but once you're in and tried to create the national admin accounts, it came up with this obscure message and it didn't work. 212 00:19:27,540 --> 00:19:33,180 So, I guess when you're paying for the extra luxury, you're paying for a little more security while you're at it. 213 00:19:33,920 --> 00:19:45,060 But yeah, with this message, I really cannot find a way to create the same national admin account I did on the primary brand, so I needed to figure out something else to do about this. 214 00:19:45,920 --> 00:19:49,700 And the solution came with an internal user impersonation feature. 215 00:19:50,200 --> 00:20:05,820 There is, apparently, the corporate side of the company has access to a user impersonation tool that lets you select a dealer and then once you select a dealer, it lists all the employees, their roles, and with the click of a button you could log in as them. 216 00:20:05,820 --> 00:20:08,640 And that would bypass all the two-factor authentication. 217 00:20:09,160 --> 00:20:10,980 And presumably, this was silence. 218 00:20:10,980 --> 00:20:13,240 They would not know you had just logged in as them. 219 00:20:13,520 --> 00:20:22,240 And that would be a serious issue because you can probably go about this undetected by logging into someone else and get them in serious trouble. 220 00:20:22,520 --> 00:20:28,140 Like, you could do the takeover of cars using someone else's accounts and they would get all the flack for it and not me. 221 00:20:28,280 --> 00:20:30,880 So, a lot of bad things could happen with this. 222 00:20:32,900 --> 00:20:36,240 Now, back to the getting into the sub-brands. 223 00:20:36,800 --> 00:20:45,060 So, with this particular manufacturer, there are usually combined stores, like with the primary brand and the luxury sub-brand just right next to each other. 224 00:20:45,260 --> 00:20:49,140 So I thought, what if I found an employee that works for both? 225 00:20:49,440 --> 00:20:51,900 Would they have privileges on the other systems? 226 00:20:52,460 --> 00:20:54,520 So, I decided to try and find one. 227 00:20:56,200 --> 00:20:57,460 And I did. 228 00:20:57,460 --> 00:21:00,600 So, the process was to basically find the user. 229 00:21:01,020 --> 00:21:08,480 I just kind of guessed when I found the dealership, and I just kind of find a high privileged user in the user impersonation list. 230 00:21:08,560 --> 00:21:10,780 And I basically impersonate that user. 231 00:21:11,260 --> 00:21:21,440 Now, using the in the previous section where you saw the system IDs, it would also list some system IDs of the other sub-brand dealer system. 232 00:21:21,600 --> 00:21:26,100 So, you could use the SSO login off dispatcher URL. 233 00:21:26,100 --> 00:21:38,100 You can substitute the sub-brand system ID for the primary, the primary brand, and then you can log in as that dealer user and you would get redirected to the sub-brand system. 234 00:21:38,480 --> 00:21:43,840 And with that SSO session in place, you were able to navigate within the sub-brand systems. 235 00:21:43,940 --> 00:21:46,920 So, the access door was finally achieved. 236 00:21:47,080 --> 00:21:58,240 Even though it wasn't quite as broad as the national admin, if you found, uh, like a dealer principal user, you'd have considerable access to the dealer systems on the sub-brand. 237 00:21:58,240 --> 00:22:00,260 And you can do this for all the dealers. 238 00:22:02,040 --> 00:22:10,520 So, while the creation of the national admin account did not work, there's still significant access available through this user impersonation pivots. 239 00:22:10,780 --> 00:22:13,640 And, of course, all these cars, they have their own enrollment system. 240 00:22:13,640 --> 00:22:16,120 I could log in and take over their cars too. 241 00:22:16,140 --> 00:22:19,040 So, that's just expanding the impact more and more. 242 00:22:21,000 --> 00:22:24,120 So, at this point, I have significant access. 243 00:22:24,120 --> 00:22:27,660 I have national access to the primary brands dealer network. 244 00:22:27,820 --> 00:22:36,320 I could impersonate any user and I could access the sub-brand systems to, to a pretty significant extent. 245 00:22:36,880 --> 00:22:42,300 And, with the national admin accounts, SSO access, let's just let you, it let you into everything. 246 00:22:42,480 --> 00:22:44,060 So, let's see some highlights. 247 00:22:45,040 --> 00:22:49,560 So, TSD dealer is basically a third party loaner system. 248 00:22:49,560 --> 00:22:54,060 When you get your car serviced, you're supposed to give your information to your dealer. 249 00:22:54,060 --> 00:22:58,520 They plug it in here and then you get assigned a loaner car so you can go home while they fix your car. 250 00:23:00,460 --> 00:23:08,300 So, with the national admin accounts, you can log, you can SSO into it and you get a list of all the thousands of dealerships. 251 00:23:08,360 --> 00:23:13,360 You can click into them, view the loaner agreements and also view PII. 252 00:23:13,440 --> 00:23:16,440 But, for some reason, it was redacted. 253 00:23:16,440 --> 00:23:21,060 So, I thought, there is some security here and it's just waiting to be broken. 254 00:23:21,060 --> 00:23:22,980 So, I dug into it a bit more. 255 00:23:25,420 --> 00:23:29,620 So, on the previous slide, I was locked into the national admin accounts. 256 00:23:29,620 --> 00:23:38,380 So, I thought maybe there's some security measure that makes it so only the admins of specific dealers could view their own dealer's PII. 257 00:23:38,880 --> 00:23:47,380 So, with the user impersonation, I thought, what if I find an employee that has high privileges in the system and see if I can view the PII. 258 00:23:47,560 --> 00:23:49,060 And that is what I did. 259 00:23:49,060 --> 00:23:52,000 This is a screenshot of all the roles. 260 00:23:52,440 --> 00:24:01,240 And high is basically the highest role and that lets you have access to basically all the dealership functions across this rental system. 261 00:24:02,100 --> 00:24:04,260 And, my theory was correct. 262 00:24:04,260 --> 00:24:13,120 Once you have, once you are logged in as that specific dealer admin, you could, in this rental platform, view all the PII of all the customers who had rented cars. 263 00:24:13,120 --> 00:24:26,480 And that includes things like your license, like your license number, your driver's license number, your birthday, insurance policy numbers, email, phone, name, address, pretty much everything you need to commit identity theft. 264 00:24:26,540 --> 00:24:28,260 So, it was pretty bad. 265 00:24:28,260 --> 00:24:31,400 And just to be clear, you do this for all the dealers. 266 00:24:31,400 --> 00:24:32,980 All thousands of them. 267 00:24:34,040 --> 00:24:44,280 This is a screenshot of the dashboards, which dealers would, which the high privileged dealer users would use to basically get an overview of what their, how their rental network is performing. 268 00:24:45,100 --> 00:25:00,280 And, when you, when the dealers buy the system, they have an op, they have an option to buy the telematics package, which basically means that, I guess if you live in a sketchy area, you might want to keep an eye on your loaner fleets to make sure your, 269 00:25:00,280 --> 00:25:04,720 your car , your customers aren't taking the cars out of a geofence zone. 270 00:25:05,200 --> 00:25:16,260 So, a few dealers use this, use this system, and I can, I gain control of it and I can see a real time location of all the cars and even have the ability to edit the geofence. 271 00:25:18,700 --> 00:25:21,040 So, back to the actual dealer system. 272 00:25:21,360 --> 00:25:23,680 They had some employee sections. 273 00:25:23,760 --> 00:25:27,460 As a dealer admin, you can get an overview of who is in your system. 274 00:25:27,900 --> 00:25:33,700 And in the API response, I noticed you can view some of the social security numbers, at least the last four. 275 00:25:34,140 --> 00:25:40,400 And , you could also view the full social security number, social security number by using this tool. 276 00:25:40,400 --> 00:25:44,840 But, there's a warning that said if you did that, your action would be logged. 277 00:25:44,840 --> 00:25:48,540 So, I didn't try it but there's no reason I couldn't do it. 278 00:25:49,100 --> 00:25:55,900 And of course, you could view that audit log as well, but I don't think you could have purged your entry, at least I didn't try it. 279 00:25:58,080 --> 00:26:03,520 So, you know when you go to dealers, they place your order for cars or they find cars that you might like? 280 00:26:04,080 --> 00:26:10,640 They have a, they have an inventory control system of course, and I had full national access to all of it. 281 00:26:11,120 --> 00:26:20,880 So, all those thousands of dealers, I just select them from the list or even by state, and I can get an overview of all the cars being allocated, place orders, and so forth. 282 00:26:21,460 --> 00:26:26,940 So, here's an example of what it looked like in the dealer system when you looked at the inventory. 283 00:26:26,940 --> 00:26:31,460 So, this is what your salesperson would see when they're looking for cars, replacing your orders. 284 00:26:33,340 --> 00:26:46,320 And, as a regional admin, you have access to some special functions, like, I didn't go too deep into this because some of the buttons are a bit scary and I didn't want to actually set off some, some irreversible action like actually ordering a car. 285 00:26:46,440 --> 00:27:01,940 But, you can basically, presumably allocate cars to dealers, perform dealer trades with each other, and this is presumably what the corporate overlords use to actually grant allocations to your, to dealerships, which for sale to customers. 286 00:27:03,600 --> 00:27:07,060 And there's also an option to view the cars currently in transit. 287 00:27:07,560 --> 00:27:15,000 So, there's a, there's a system called Freight Verify, and there's like 400,000 cars that you could attract through this, through the system. 288 00:27:15,100 --> 00:27:22,900 And this tells you where they're going, where they are right now, and and you could also cancel the shipments or reroute them. 289 00:27:22,900 --> 00:27:25,000 There's a cancel button right there. 290 00:27:25,220 --> 00:27:31,800 And presumably, you could change the address to, maybe your own home, but that's not something I wanted to test. 291 00:27:33,760 --> 00:27:37,220 And of course, you had access to the finance portal. 292 00:27:37,380 --> 00:27:42,700 So, when you buy a car, the dealers try and sell you on all the optional add-on packages. 293 00:27:43,280 --> 00:27:48,000 Those contracts get generated in a PDF form, and they get stored in the system. 294 00:27:49,900 --> 00:27:52,940 And of course, I had full access to all those. 295 00:27:52,940 --> 00:27:56,520 The scroll bar was so, so long, it was just endless. 296 00:27:56,860 --> 00:28:01,180 And when you clicked each of those links, you would get a contract. 297 00:28:01,180 --> 00:28:05,160 And this is someone's contract for a protection plan. 298 00:28:05,300 --> 00:28:08,820 They have their name, address, and various other bits of PII. 299 00:28:09,300 --> 00:28:11,540 And there's just, there's a lot of these. 300 00:28:13,260 --> 00:28:19,260 Awesome model solutions is another third party provider that basically makes franchise management software. 301 00:28:19,540 --> 00:28:27,520 And this manufacturer contracts with them to measure performance of their dealers and just keep an overall idea of their dealer network performance. 302 00:28:27,860 --> 00:28:32,580 And as a national admin, you basically have access to all of it. 303 00:28:33,960 --> 00:28:39,420 So, you get a bird's eye view over the entire national financial balance sheet. 304 00:28:39,500 --> 00:28:44,420 If you get into the nitty gritty of everything, you can see who's in the red, who's in the green. 305 00:28:44,760 --> 00:28:48,580 There's just many sections, but I picked this one to highlight for you. 306 00:28:50,020 --> 00:28:57,740 There are KPIs, which is basically for those who aren't in sales, this is how they kind of measure your performance so they know how you're doing. 307 00:28:57,740 --> 00:29:04,240 You can get an overview nationally of how everyone's doing and also drill down deeper into specific dealers. 308 00:29:05,780 --> 00:29:11,540 And, you know, when your friends say this dealer's bad, this dealer's good, go there instead. 309 00:29:11,740 --> 00:29:15,380 That's all hearsay, but this is hard data right here. 310 00:29:15,540 --> 00:29:18,860 They apparently know which dealers are underperforming. 311 00:29:18,860 --> 00:29:22,960 So, there's a list of good dealers and a list of bad dealers. 312 00:29:23,480 --> 00:29:28,240 And apparently a lot of dealers around me aren't doing so well. 313 00:29:29,440 --> 00:29:35,900 But there's a lot of dealers who are way exceeding their targets, so it's good to see someone take their performance seriously. 314 00:29:37,640 --> 00:29:40,720 JD Power, I'm sure a lot of you have heard that name. 315 00:29:40,860 --> 00:29:44,980 So, apparently they make software for website analytics. 316 00:29:44,980 --> 00:30:00,400 Apparently dealers use a standard website template and they plug this into it and then you can basically see for every dealer site where their traffic's going, how many visitors they're getting, this is all stuff that web administrators love to see. 317 00:30:02,260 --> 00:30:04,200 And now the lead portal. 318 00:30:04,240 --> 00:30:09,760 This is probably what the sales people use on a daily basis because this is what gets them all their money. 319 00:30:10,780 --> 00:30:20,620 So, presumably this is plugged into their phones and email system, so when you query them about buying a car, your lead gets generated here. 320 00:30:21,040 --> 00:30:30,320 And as a national admin, I basically had access to the entire list of leads, so anything you plugged into that form, I was able to see right here. 321 00:30:30,320 --> 00:30:33,100 And it went back quite a long time. 322 00:30:35,140 --> 00:30:36,460 Now the surveys. 323 00:30:36,460 --> 00:30:42,680 You know that survey the sales people always pester you about when you buy the car , like their life depends on it ? 324 00:30:42,700 --> 00:30:44,600 That all gets plugged in here. 325 00:30:44,620 --> 00:30:47,100 And the same thing for service too . 326 00:30:47,120 --> 00:30:54,100 When you get your car service, they'll ask you to fill out the survey and this is where it all goes. 327 00:30:54,540 --> 00:31:12,520 So, as a national admin, of course I had access to all the surveys going back who knows how long, but if you look at the numbers here, there's basically almost a million of them, so if you want to see how your friend actually likes their car, you can just look at this list and see what they actually thought. 328 00:31:14,860 --> 00:31:26,740 And dealers of course get a bird's eye view look through the main dashboards where they can see at a glance how well their employees are performing and potentially take corrective actions later. 329 00:31:28,320 --> 00:31:43,820 This one's a bit scary, so they made a contract with a science company to make some kind of map which funnels a lot of data sources to basically generate a map of where potential or prospective customers may live. 330 00:31:44,480 --> 00:31:49,900 But when I loaded it for the first time, I only got a small glimpse of it. 331 00:31:50,360 --> 00:31:53,880 So a separate hack was needed to actually see the national list. 332 00:31:54,840 --> 00:32:05,400 So when you go to the sites, you basically download some of the map data, and in the response, for some reason, the boolean flag for the national view was false. 333 00:32:05,540 --> 00:32:14,300 So I had to use Fiddler to basically change that to true, and then when I let the request through , it would show me the entire map of more than 9 million people. 334 00:32:14,940 --> 00:32:21,700 And these estimates are approximate, but you could probably get a good idea of where people are based on this. 335 00:32:23,600 --> 00:32:29,380 And one of the last things I'll cover is access to their email and mailing platform. 336 00:32:29,600 --> 00:32:36,200 You know, I'm sure you all get a lot of advertisers in the mail and email about new car deals and all that. 337 00:32:36,480 --> 00:32:38,380 They use this to send it. 338 00:32:38,760 --> 00:32:44,000 And as a national admin, you can log in as any dealer to access their marketing platform. 339 00:32:44,520 --> 00:32:52,760 And you can also, you can create the email, so if you wanted to phish some people on their customer list, you can create an email with the bad links. 340 00:32:52,920 --> 00:32:57,540 And also, it's linked to the dealer's credit card and bank account, so you can charge them for it. 341 00:33:01,730 --> 00:33:05,630 So, I spent about a week going through various systems. 342 00:33:05,930 --> 00:33:13,230 I mean, everything I just talked about is probably only like, maybe a little less than half of everything I managed to get into. 343 00:33:13,870 --> 00:33:16,510 There's just so much that was left on the cutting room floor. 344 00:33:16,510 --> 00:33:19,950 It really just went, it was just such a wide blast radius. 345 00:33:20,670 --> 00:33:22,430 So I spent a week going through it all. 346 00:33:22,430 --> 00:33:23,650 Took a long time. 347 00:33:23,890 --> 00:33:32,030 And eventually when I discovered, I when I determined I'd looked at enough, I reported it to the vendor through their vulnerability disclosure program. 348 00:33:32,410 --> 00:33:34,110 They responded a few days later. 349 00:33:34,110 --> 00:33:37,570 And then about a week later, they they immediately fixed it. 350 00:33:37,810 --> 00:33:48,050 And from that point forward, we were just going back and forth, trying to coordinate how we would disclose in the end, if I had any further recommendations for security. 351 00:33:48,050 --> 00:33:50,610 And they obviously made their own internal improvements. 352 00:33:50,610 --> 00:33:57,570 So, presumably if you, if this happens again in the future, you can just SSO and everything and leak all the data. 353 00:33:58,010 --> 00:34:01,970 And today is the first time I'm talking about it with you all. 354 00:34:03,770 --> 00:34:06,470 So, what did you take away from this? 355 00:34:06,470 --> 00:34:06,990 Hmm. 356 00:34:08,390 --> 00:34:09,190 Hmm. 357 00:34:13,790 --> 00:34:17,190 So, the dealers have a ton of your personal information. 358 00:34:17,730 --> 00:34:24,830 Like, as you just saw, when you, when you get a car service and you get a loader, you would think that your license is secure when you give it to them. 359 00:34:24,830 --> 00:34:28,210 But , as you saw, it's it was possible to get it. 360 00:34:28,690 --> 00:34:36,810 They have your information tracked in various places, like the surveys, the lead platforms, there's a lot of places your information could have been exposed. 361 00:34:36,810 --> 00:34:46,950 And this is all caused by basically two vulnerabilities, just two vulnerabilities that probably one line fixes when they actually knew about it and went in to fix it. 362 00:34:48,330 --> 00:34:50,730 And, that's basically it. 363 00:34:50,730 --> 00:34:58,210 Unless you want to go out and rip out your 4G modules, you can't really protect yourself from this if it happens again. 364 00:34:58,370 --> 00:34:59,510 Thank you so much for attending. 365 00:34:59,510 --> 00:35:06,530 If you want to read more about this and other exploits to come, make sure to follow me on my blog and my LinkedIn. 366 00:35:06,690 --> 00:35:09,350 I have a lot more cool stuff planned in the coming months. 367 00:35:09,870 --> 00:35:11,110 Thank you so much. 368 00:35:13,910 --> 00:35:16,650 And, I also have some stickers up here. 369 00:35:17,050 --> 00:35:19,390 I have a few stickers, please come up and get some. 370 00:35:19,490 --> 00:35:20,310 Thank you.