1 00:00:00,580 --> 00:00:06,380 All right. Hello. Can you all hear us okay? Cool. Welcome, welcome. Well, thank you for 2 00:00:06,380 --> 00:00:11,940 joining us. I'm going to do a quick introduction of who we are as a team, and then we'll have 3 00:00:11,940 --> 00:00:15,900 our solo introduction as well. Corbin and I have been friends for a while. We've been 4 00:00:15,900 --> 00:00:20,100 hacking on bug bounties for a very long time, and we have found some really cool stories 5 00:00:20,100 --> 00:00:25,600 that I think it's valuable and also very entertaining, I think, that we wanted to share on a big 6 00:00:25,600 --> 00:00:31,680 stage. So thank you for joining us. We'll do it quickly about me. I'm Nahamsek. My name 7 00:00:31,680 --> 00:00:36,940 is Ben Sadeghi, but most people online know me as Nahamsek. I'm a bug bounty hunter, content 8 00:00:36,940 --> 00:00:42,800 creator, and I've been bug bounty hunting since 2015. I'm the former head of hacker 9 00:00:42,800 --> 00:00:48,780 education at HackerOne, and I'm the co-founder of Hacking Hub. And the good news is with 10 00:00:48,780 --> 00:00:52,240 the Hacking Hub, everything that we're going to talk about today, you can also try on your 11 00:00:52,240 --> 00:00:53,840 own. Just got to go on their website. 12 00:00:55,600 --> 00:00:59,420 Give it a try if you like some of this stuff as well. And yeah, I'm a public speaker and 13 00:00:59,420 --> 00:01:02,600 a trainer. I'm actually doing a training for DEF CON next week. So if you want to come 14 00:01:02,600 --> 00:01:08,260 and learn how I find these crazy things, please join me next week as well. And I've 15 00:01:08,260 --> 00:01:13,640 hacked into a bunch of companies, including Apple, Amazon, Zoom, Airbnb, Snapchat, and 16 00:01:13,640 --> 00:01:20,420 more. And I think I have more than a thousand submissions on a hundred or more companies 17 00:01:20,420 --> 00:01:24,680 so far. And I'm going to let Corbin quickly introduce himself, and hopefully we'll take 18 00:01:24,680 --> 00:01:25,520 you guys on a good ride. 19 00:01:29,200 --> 00:01:34,260 Well, hey, I'm Corbin. Sorry, I'm like four foot two, so if you can't see me over this 20 00:01:34,260 --> 00:01:39,920 laptop, my bad. So yeah, I'm Corbin. I go by CDL on HackerOne. I've been doing bug bounties 21 00:01:39,920 --> 00:01:47,400 since like 2016. I like hacking stuff. Also, long story, but I'm a co-founder of a mattress 22 00:01:47,400 --> 00:01:52,580 company. So I guess they let anyone in here. So if you want to apply for a talk next year, 23 00:01:52,640 --> 00:01:55,320 just put something really random in there and they might say yes. 24 00:01:56,820 --> 00:02:00,460 No, I'm not money laundering. If you need a mattress someday, you can go over there 25 00:02:00,460 --> 00:02:04,520 or you can tackle my co-founder sitting over there. Yeah. Hopefully you guys enjoy this 26 00:02:04,520 --> 00:02:05,180 talk. Thanks for coming. 27 00:02:06,160 --> 00:02:10,540 Oh, just kidding. I'm back. So this is a story about hacking an auto manufacturer. 28 00:02:10,760 --> 00:02:16,760 So this is, they had a bug bounty program. So it started with me scanning their IP range. 29 00:02:16,840 --> 00:02:24,280 And by their IP range, I mean the entire internet for SSL certificates. And I found a host, 30 00:02:24,540 --> 00:02:25,580 or an IP that had a bug bounty program. And I had a bug bounty program that had a bug bounty 31 00:02:25,580 --> 00:02:32,100 SSL certificate for, um, just their main domain. And when you would hit it on, uh, HTTPS, it 32 00:02:32,100 --> 00:02:37,860 would just respond with backend IP not found. And their SSL certificate, um, was just 33 00:02:37,860 --> 00:02:45,140 wildcard.apps.redacted.example.com. Um, and so, um, my main idea is, okay, this is an ingress 34 00:02:45,140 --> 00:02:48,340 endpoint. If you look at, like, LinkedIn job posting, et cetera, you can kind of see what 35 00:02:48,800 --> 00:02:52,840 sort of services they're using. And this, my, my assumption is they're using a lot of 36 00:02:52,840 --> 00:02:58,220 microservices. Um, and so a good tip for finding good word lists is to, um, do subdomain 37 00:02:58,220 --> 00:03:03,380 enumeration. Um, also look at, like, I guess that includes, like, CertSH. Um, another good 38 00:03:03,380 --> 00:03:09,580 idea is, um, nowadays, like, everyone's using microservices. So if you look up HelmCharts, um, 39 00:03:09,640 --> 00:03:13,340 that's, like, what a lot of people use for, like, Kubernetes for deploying services. Um, you 40 00:03:13,340 --> 00:03:19,280 can scrape, like, 13,000, um, different, like, HelmCharts that, uh, have, like, DNS names in 41 00:03:19,280 --> 00:03:22,700 them. And you can use that to brute force stuff, too. Um, so after some brute force 42 00:03:22,700 --> 00:03:30,340 thing, I found a host called configurator prod.app.redacted.com, or .example.com. And, um, 43 00:03:30,460 --> 00:03:34,360 so from there, and by, like, I knew that this host was hit because they had a different 44 00:03:34,360 --> 00:03:38,860 response. It didn't say backend IP not found. The response was different and, um, said, 45 00:03:38,940 --> 00:03:43,740 like, um, like, path not found or something. It was pretty obvious. So basically, I did, like, 46 00:03:43,760 --> 00:03:49,400 F off, um, with that host header then. And it turns out it's Spring Boot Actuator and it was 47 00:03:49,740 --> 00:03:52,680 misconfigured. So the, uh, if you don't know what Spring Boot Actuator is, um, it's a 48 00:03:52,700 --> 00:03:56,280 little bit confusing. Um, when it's misconfigured, there's a couple of different, uh, endpoints. 49 00:03:56,420 --> 00:04:01,800 And so there's, like, env, uh, which dumps a bunch of environment variables. Um, and 50 00:04:01,800 --> 00:04:05,860 then there's heapdump, which is just, like, the memory dump of the application. Um, and 51 00:04:05,860 --> 00:04:10,580 so within this, I looked through the environment variables in this env endpoint. Um, and there 52 00:04:10,580 --> 00:04:14,840 was some interesting things, but the most, um, nothing in that was, like, really, like, 53 00:04:14,920 --> 00:04:21,260 the jackpot that I was excited for. Um, and in this, though, there was, um, this field 54 00:04:21,260 --> 00:04:22,680 called, uh, conf, or, uh, config, uh, config, uh, config, uh, config, uh, config, uh, config, uh, 55 00:04:22,680 --> 00:04:28,160 like, spring.cloud config URI. Um, and it had, like, an OAuth 2 endpoint and it, uh, 56 00:04:28,220 --> 00:04:32,560 contained the credentials, but the client secret was, um, redacted because Spring Boot, like, 57 00:04:32,620 --> 00:04:37,640 redacts, like, secrets or it's supposed to. Um, so you can just use, like, the heapdump, run 58 00:04:37,640 --> 00:04:43,560 strings on it, and then actually grab, you know, that secret. And so, um, what if we use just 59 00:04:43,560 --> 00:04:47,680 those, like, what can we reach with those OAuth 2 credentials? Um, so I grabbed those, um, 60 00:04:47,780 --> 00:04:52,160 and you can actually vhost, um, you can actually hit this, like, OAuth 2 server externally 61 00:04:52,160 --> 00:04:59,160 still. So I hit that and authenticated and got a, um, authbearer back. And then actually, um, 62 00:04:59,380 --> 00:05:07,780 you see a Spring Cloud, um, config server. You can also vhost to that. Um, and so I vhosted to 63 00:05:07,780 --> 00:05:12,060 that and used the authbearer to authenticate to the other internal service. And it turns out it 64 00:05:12,060 --> 00:05:17,080 was also Spring Boot actuator and also misconfigured again. And both endpoints were also, 65 00:05:17,520 --> 00:05:21,920 you know, like, open. And this time, in this environment, um, there was a field called 66 00:05:21,920 --> 00:05:27,320 source URI, um, and it was pointing to their, uh, GitHub instance that was hosted. It was, like, 67 00:05:27,320 --> 00:05:32,900 GitHub Enterprise. Um, and there's the source username and a source password, and that was also 68 00:05:32,900 --> 00:05:37,480 redacted. And there's also a private key, um, for the GitHub user. Um, so I hit heapdump again 69 00:05:38,220 --> 00:05:47,560 and just ran strings and, uh, just grabbed the password. And so then we could, I, I hit their 70 00:05:47,560 --> 00:05:54,100 API and, uh, just, like, github.example API v3 user, um, with that username and password. And, uh, 71 00:05:54,200 --> 00:05:58,500 it turns out it was a super overprivileged account. And it had access to every single GitHub 72 00:05:58,500 --> 00:06:04,380 organization and every single repository, um, for this, uh, auto manufacturer. So it's, like, 73 00:06:04,380 --> 00:06:11,340 all the source code for everything ever. Um, and, yeah, that was a fun time. And they paid me, 74 00:06:11,380 --> 00:06:17,540 like, $5,000 for that bug. Which is, like, yeah, dumb. Anyways, so, um, so, um, so, um, 75 00:06:17,560 --> 00:06:21,260 and this is another, uh, fun story. This is how I, uh, found a bug a couple years ago to, uh, 76 00:06:21,280 --> 00:06:27,660 publish fake news. Um, so I've been doing an unholy amount of, uh, virtual, uh, host fuzzing 77 00:06:27,660 --> 00:06:32,080 again, um, against this big media company, um, that shall not be named. Um, we're talking, 78 00:06:32,180 --> 00:06:37,480 like, this is, there's, have, like, thousands of subdomains, um, like, massive word lists. Um, 79 00:06:37,560 --> 00:06:42,640 and this was, like, leading up to a HackerOne, like, live hacking event. Um, and so the day of 80 00:06:42,640 --> 00:06:46,860 the event, like, we'd found some, I, I was hacking with another hacker named, uh, Nafi. Um, and 81 00:06:46,860 --> 00:06:47,540 we had found a couple of, like, subdomains that were, like, fake. Um, and this was, like, 82 00:06:47,560 --> 00:06:52,160 a couple cool bugs. Um, and during the day of the event, I found this weird host, um, called, 83 00:06:52,220 --> 00:06:56,660 like, uh, this is, like, completely redacted. It's, like, xyzproxy.prod.ka8s, whatever you can 84 00:06:56,660 --> 00:07:02,880 read. Um, and it had responded with a different 404 page than, like, everything else had. And 85 00:07:02,880 --> 00:07:07,260 so I started directory brute forcing, and, uh, I had, like, no idea what this was doing, but 86 00:07:07,260 --> 00:07:13,580 there was a couple endpoints, like, slash create and slash update. And so if you hit, like, 87 00:07:13,600 --> 00:07:17,460 dash create, it just responded with, like, 405 method not allowed. So, obviously, you just, 88 00:07:17,560 --> 00:07:21,920 like, tried doing, like, a post or a put request instead. So I just tried posting, like, x equals 89 00:07:21,920 --> 00:07:30,460 x. Um, and, uh, it gave me an error, um, and said, uh, it's just not 405 method not allowed. It 90 00:07:30,460 --> 00:07:35,040 should say 415 content type. So it gave me an error saying, like, the content type, um, was 91 00:07:35,040 --> 00:07:42,300 wrong. And so I tried JSON instead and just did, like, cdl, um, cdl. And it dumped every, um, 92 00:07:43,160 --> 00:07:47,540 like, known property that should be posted in that JSON body. So, like, that was, like, a 93 00:07:47,540 --> 00:07:52,800 really easy, okay, thanks. Um, and so I spent the next, like, three hours of the event trying to 94 00:07:52,800 --> 00:07:59,200 figure out, um, what this JSON body was really supposed to be. So I just, like, sent all the 95 00:07:59,200 --> 00:08:05,040 fields it was supposed to be, um, just, like, random characters in them. And I just got, like, a 96 00:08:05,040 --> 00:08:09,060 bunch of more errors. But it was really helpful because it said, like, it gave me exactly, like, 97 00:08:09,100 --> 00:08:14,080 what the error, like, was. And so, like, it gave me an error about not being able to read tags 98 00:08:14,080 --> 00:08:17,460 into an array. So it's, like, okay, well, tags shouldn't be a string. It should be an array 99 00:08:17,460 --> 00:08:22,660 instead. So it just, like, changed that. Um, um, another error was, like, in the streams 100 00:08:22,660 --> 00:08:26,880 tag. Um, it was, like, a, or I just put, like, a in there. And it said, like, oh, you need at 101 00:08:26,880 --> 00:08:32,100 least two bytes to base 64. Um, like, decode or encode or whatever. And so I was, like, okay, 102 00:08:32,120 --> 00:08:37,360 let me just put, like, some random base. I'll just change that to base 64. And okay. Um, it 103 00:08:37,360 --> 00:08:43,440 worked. Uh, but what did it do? Like, I had no idea what this API was doing. And so it was 104 00:08:43,440 --> 00:08:46,620 actually really funny. The event ended. And I'm, like, dang, I thought there was going to be a 105 00:08:46,620 --> 00:08:47,440 cool bug here. And then I was, like, okay, I'm going to do this. And then I was, like, okay, I'm 106 00:08:47,460 --> 00:08:48,240 going to update the endpoint. The thing but not пор determined object. So, like, I had some 107 00:08:48,240 --> 00:08:53,780 drinks. Um, I left Vegas. Actually, no, I didn't quite leave Vegas. I was sitting here at the 108 00:08:53,780 --> 00:08:57,860 airport the next morning and I went back to this. I'm, like, okay, well, what is this update 109 00:08:57,860 --> 00:09:02,260 endpoint actually doing? And I was really curious about the UUID field. So I just went to, like, 110 00:09:02,300 --> 00:09:06,960 their main news site and just view sourced an article and I was like, UUID in like, the 111 00:09:06,960 --> 00:09:15,120 meter description. I was, like, well, what if I specified that in the update endpoint? Like, 112 00:09:15,120 --> 00:09:20,300 So, yeah, we post it. We change the news article to my name and say, this is a demo release. 113 00:09:20,540 --> 00:09:24,000 And by the way, this was like a Tessie news article I found. It wasn't like the front page. 114 00:09:25,000 --> 00:09:29,020 Not a good idea. And it actually worked. So I could just like change the news whenever I want. 115 00:09:29,200 --> 00:09:32,980 It was like during an election, too. So I thought it'd be like really funny to just put some shit on there. 116 00:09:36,800 --> 00:09:41,380 And then the best part. And so like I wrote this like really fast. I got on a plane. I'm like, what the hell just happened? 117 00:09:42,880 --> 00:09:51,900 And then they thought I was working with an insider. And I had to spend like three days writing exactly how I found this issue and how I figured out everything. 118 00:09:52,180 --> 00:09:55,540 So I had to write like a 10 page paper. It was like I was actually I was still in college. 119 00:09:55,640 --> 00:10:00,480 So it's just like an extra essay assignment. But then I paid for that bug as well. 120 00:10:04,080 --> 00:10:09,520 Got to love a good verbose API. All right. The next one I'm going to talk about is a prison break. 121 00:10:09,680 --> 00:10:10,540 This is actually. 122 00:10:11,480 --> 00:10:20,040 A prison system that is used in a number of different states and a number of different areas that we cannot name also. 123 00:10:20,320 --> 00:10:26,680 So this application was originally created for inmates to be able to talk to their friends. 124 00:10:26,860 --> 00:10:33,280 They can talk to visitors. They can talk to make a request from the people that work at the prison. 125 00:10:33,780 --> 00:10:39,420 And also hold things like their social security number and their records, the conversations they've had. 126 00:10:39,540 --> 00:10:40,260 You can send photos. 127 00:10:41,580 --> 00:10:44,620 Everything, their medical records, you name it, it's on this website. 128 00:10:44,840 --> 00:10:49,000 And some of it is public record because if you're a felon, apparently you don't have any privacy and everything's online. 129 00:10:49,600 --> 00:10:53,400 But the cool thing is there are some private data that's not supposed to leak. 130 00:10:54,060 --> 00:10:59,120 So there's a couple of different assets that are connected to each other that we need to understand. 131 00:10:59,280 --> 00:11:01,700 The first one is the app prison system that fake. 132 00:11:01,840 --> 00:11:04,500 We're just going to call it that for security purposes and reasons. 133 00:11:05,500 --> 00:11:07,560 They gave me access to this. It was limited functionality. 134 00:11:07,940 --> 00:11:11,060 There was some JavaScript files that indicated there was some functionality that. 135 00:11:11,060 --> 00:11:14,860 That does exist, but for some reason we couldn't access any of them. 136 00:11:14,960 --> 00:11:16,440 And there's also like shortcut keys for these. 137 00:11:16,540 --> 00:11:22,260 So you could do like a shift Z or take it to this page, shift F to this page and so on. 138 00:11:22,300 --> 00:11:22,600 You get it. 139 00:11:22,640 --> 00:11:27,900 So there's also a limited session for now, at least that we have access to. 140 00:11:28,000 --> 00:11:30,360 So there's very limited or what we can do on this page. 141 00:11:30,480 --> 00:11:38,640 And anything that I'd like to access that's leaked into the JavaScript file, this may just redirected to the main site that I'm on. 142 00:11:38,740 --> 00:11:40,000 So we don't have access to it. 143 00:11:40,160 --> 00:11:40,960 I don't know. 144 00:11:41,060 --> 00:11:45,200 If this was supposed to be on purpose or someone broke the site, I have no clue. 145 00:11:45,340 --> 00:11:49,820 I just know that I couldn't access anything and I was just staring at a blank page for this application. 146 00:11:50,840 --> 00:11:53,720 So this is kind of what the shortcut looks like. 147 00:11:53,800 --> 00:11:56,300 So I hit control you, for example. 148 00:11:56,440 --> 00:11:57,920 It takes me to the admin site. 149 00:11:58,120 --> 00:12:03,780 I with the users, I had control a it's the activity on the users control us. 150 00:12:03,880 --> 00:12:06,520 And then there's a control D and N, which is a dark side, right? 151 00:12:06,580 --> 00:12:07,400 So there's a different side. 152 00:12:07,640 --> 00:12:09,840 Somehow this session was supposed to carry over. 153 00:12:09,840 --> 00:12:14,660 But obviously I probably didn't have the right permissions and I wasn't able to access it. 154 00:12:15,120 --> 00:12:21,920 And every time you go to these sites right here, it will take me back to the main site from the last night called app, whatever dot com. 155 00:12:23,260 --> 00:12:31,140 Well, the JavaScript leaked this thing that said if you hit this site, it will authenticate you to the dark side. 156 00:12:31,320 --> 00:12:39,680 So all you have to do is directly go to this API call and it would redirect you to the docs website and then it would give you an authentication. 157 00:12:40,040 --> 00:12:42,280 So we actually have access to the dark side. 158 00:12:42,400 --> 00:12:45,540 We're supposed to be able to read the documentation for some reason. 159 00:12:45,700 --> 00:12:48,600 And it gives you an authentication token in your request. 160 00:12:48,820 --> 00:12:49,580 So it's printed out. 161 00:12:49,620 --> 00:12:50,420 It's not hidden anywhere. 162 00:12:51,280 --> 00:12:52,880 And I was like, oh, okay. 163 00:12:52,980 --> 00:12:57,460 Like, how am I able to authenticate to this dark side? 164 00:12:57,680 --> 00:13:00,400 But originally I didn't have access to it. 165 00:13:00,460 --> 00:13:01,620 So the user token makes sense. 166 00:13:01,800 --> 00:13:02,440 So what do you do? 167 00:13:02,460 --> 00:13:06,260 You just grab that user token and you start throwing things and see if it sticks. 168 00:13:06,860 --> 00:13:08,520 So naturally I try to do admin. 169 00:13:08,680 --> 00:13:09,640 Give it the auth token. 170 00:13:09,660 --> 00:13:10,640 Nothing works. 171 00:13:11,100 --> 00:13:12,840 I try doing a slash admin. 172 00:13:12,960 --> 00:13:14,120 Maybe I have to have the right path. 173 00:13:14,520 --> 00:13:15,180 Doesn't work. 174 00:13:15,640 --> 00:13:22,060 But turns out if you have the right path and the right functionality and then you give it this auth token, it suddenly opens it up. 175 00:13:22,160 --> 00:13:24,240 So I can see these settings. 176 00:13:24,640 --> 00:13:27,240 But still what can I do with this information? 177 00:13:28,000 --> 00:13:28,760 I want more. 178 00:13:28,840 --> 00:13:30,060 I want to know what I have access to. 179 00:13:30,200 --> 00:13:33,040 Well, turns out that I have access to a lot. 180 00:13:33,580 --> 00:13:39,640 Any API call that I had seen in the JavaScript file I had access to including this thing called reset passcode. 181 00:13:41,080 --> 00:13:43,400 And this is a short version of it. 182 00:13:43,480 --> 00:13:43,900 It's fake. 183 00:13:44,020 --> 00:13:46,940 But more of the story was it took a user ID and a password. 184 00:13:47,980 --> 00:13:51,040 And it would give you the new password that you set up. 185 00:13:51,160 --> 00:13:52,620 So I can say user ID equals 1. 186 00:13:53,340 --> 00:13:54,560 Password is password 1. 187 00:13:55,160 --> 00:13:55,560 Cool. 188 00:13:55,680 --> 00:13:56,440 We can do that. 189 00:13:57,080 --> 00:14:00,200 But the problem was it comes back and it says success. 190 00:14:00,700 --> 00:14:02,040 I don't have two things here. 191 00:14:02,140 --> 00:14:03,940 I don't have a user name or an email address. 192 00:14:04,160 --> 00:14:05,060 I cannot log in. 193 00:14:05,440 --> 00:14:07,000 And I couldn't do anything with it. 194 00:14:07,100 --> 00:14:07,720 So I go to Twitter. 195 00:14:07,860 --> 00:14:08,940 I like crowdsourcing things. 196 00:14:09,040 --> 00:14:09,640 I worked at a company. 197 00:14:09,660 --> 00:14:11,240 I worked at a crowdfunding platform for a while. 198 00:14:11,560 --> 00:14:12,920 So I just posted this tweet. 199 00:14:13,000 --> 00:14:15,640 I was like, hey, I can reset passwords. 200 00:14:16,440 --> 00:14:18,320 I just don't have any information. 201 00:14:18,680 --> 00:14:19,380 How do I log in? 202 00:14:19,520 --> 00:14:20,560 And I got a bunch of answers. 203 00:14:20,700 --> 00:14:21,360 None of them worked. 204 00:14:21,700 --> 00:14:25,340 Well, turns out the answer was in the JavaScript file for me. 205 00:14:25,620 --> 00:14:27,340 There is another endpoint. 206 00:14:29,600 --> 00:14:32,540 You can impersonate anybody on the website because you're an admin. 207 00:14:33,140 --> 00:14:34,980 And all it takes is a user ID. 208 00:14:35,660 --> 00:14:36,060 Right? 209 00:14:36,160 --> 00:14:39,640 So all I have to do now is I say, okay, I have a password. 210 00:14:39,640 --> 00:14:40,900 I have the user ID. 211 00:14:41,100 --> 00:14:41,740 I want admin. 212 00:14:41,820 --> 00:14:42,540 I want user ID 1. 213 00:14:42,940 --> 00:14:44,100 The password is password. 214 00:14:44,640 --> 00:14:46,120 And I ask for it. 215 00:14:46,220 --> 00:14:50,380 So the first chain that I got from this vulnerability was I log in. 216 00:14:51,040 --> 00:14:53,640 I change the password for admin or whatever user I want. 217 00:14:54,140 --> 00:14:55,900 And I impersonate that user. 218 00:14:56,120 --> 00:14:57,380 I have a read-only account. 219 00:14:57,680 --> 00:14:58,720 I can't change anything. 220 00:14:58,900 --> 00:15:03,520 But you have a settings page that leaks both the user name and the email for that account. 221 00:15:03,980 --> 00:15:06,620 And then you can just go back and re-login and get into that website. 222 00:15:07,580 --> 00:15:09,300 So they give you everything you need. 223 00:15:09,300 --> 00:15:10,760 It's a very weird one. 224 00:15:10,960 --> 00:15:13,760 But I'm a CSS fan. 225 00:15:13,980 --> 00:15:18,660 And this kind of looked lame because you see how it says, like, privilege is still high? 226 00:15:18,880 --> 00:15:22,440 That means you have to have an account to log in and be able to do this. 227 00:15:22,500 --> 00:15:24,620 So this prison system gave us an account. 228 00:15:24,780 --> 00:15:27,880 The foothold that we got in was given to us by them. 229 00:15:27,960 --> 00:15:28,640 And that's not enough. 230 00:15:28,780 --> 00:15:35,320 Like, you want to find a way to do all of this and turn that high on the third one on the left. 231 00:15:35,660 --> 00:15:36,020 Oops. 232 00:15:36,460 --> 00:15:37,040 Too fast. 233 00:15:37,140 --> 00:15:37,400 There we go. 234 00:15:37,400 --> 00:15:42,280 You want to turn that third one that says high into a low because the score goes from a 9 to a 10. 235 00:15:42,380 --> 00:15:43,500 And we're almost there. 236 00:15:43,560 --> 00:15:44,860 We're, like, .9 away from it. 237 00:15:44,960 --> 00:15:47,480 Well, there is something really funny. 238 00:15:47,540 --> 00:15:49,940 Since I can see everything, I can see what the admins see. 239 00:15:50,240 --> 00:15:51,840 I can see what the functionalities are. 240 00:15:51,880 --> 00:15:55,100 I can test for things that I could also go out and test out from a remote site. 241 00:15:55,200 --> 00:15:59,780 So I'm testing out everything that an admin could see when somebody registers as a visitor. 242 00:16:00,400 --> 00:16:02,440 So you can do an XSS in the name. 243 00:16:02,520 --> 00:16:03,880 You can do an XSS in the address. 244 00:16:04,140 --> 00:16:05,540 You can do an XSS in the account details. 245 00:16:07,400 --> 00:16:13,860 You can put special characters in the email field because I don't think anyone's going to put special characters because Gmail doesn't allow that. 246 00:16:14,000 --> 00:16:19,360 But I don't have to have a real email address to be able to inject a payload into this page. 247 00:16:19,580 --> 00:16:22,740 So you put a cross-site scripting email address. 248 00:16:23,100 --> 00:16:31,840 So you make your email address become something like Ben plus the XSS payload, which is a script tag pointing to my website at gmail.com. 249 00:16:32,000 --> 00:16:33,080 You sign up. 250 00:16:33,180 --> 00:16:36,440 And whenever the admins go to look at the list of users on slash users, 251 00:16:36,440 --> 00:16:38,620 they don't have to go to my username, by the way. 252 00:16:38,660 --> 00:16:40,040 The email shows in slash users. 253 00:16:40,200 --> 00:16:43,720 So whenever slash user is opened up, the XSS is fired. 254 00:16:43,920 --> 00:16:47,920 So the chain that we have, the second chain is we buy an XSS user. 255 00:16:48,900 --> 00:16:54,000 We log in or force them to change their password, impersonate, grab the username and email for our target. 256 00:16:54,360 --> 00:16:58,680 We log in and we take over their prison and we just let everybody out and put money on their books. 257 00:16:59,480 --> 00:17:04,920 And that becomes from a 9.1 to a 10.0 based on just looking at the chain. 258 00:17:05,000 --> 00:17:05,940 The moral of the story is, 259 00:17:06,440 --> 00:17:09,280 there's always a way out, even if you're stuck in a prison. 260 00:17:09,480 --> 00:17:11,080 And technically, we found it for this one. 261 00:17:11,760 --> 00:17:13,580 I'm going to have Corbin do the next one. 262 00:17:20,620 --> 00:17:21,420 All right. 263 00:17:21,440 --> 00:17:22,820 So this one's about hacking a crypto exchange. 264 00:17:23,300 --> 00:17:27,000 I've been hacking on some crypto programs for a little bit. 265 00:17:27,120 --> 00:17:33,040 I saw this tweet from HacknProof. 266 00:17:33,140 --> 00:17:33,920 It said like, 267 00:17:33,980 --> 00:17:36,300 Oh, it's the biggest bug bounty reward. 268 00:17:36,440 --> 00:17:41,980 You can get anywhere from $50,000 to a million dollars for a critical bug. 269 00:17:42,220 --> 00:17:43,120 And I'm like, sick. 270 00:17:43,480 --> 00:17:44,120 Let's do it. 271 00:17:45,360 --> 00:17:53,840 And so I signed up to this crypto exchange called KuCoin and just started proxying my browser traffic through Burp Suite. 272 00:17:54,020 --> 00:17:57,800 And I just clicked every single button and every single thing I could possibly click. 273 00:17:59,020 --> 00:18:01,140 And then I just started going through my Burp history. 274 00:18:01,740 --> 00:18:03,280 And I came across this git request. 275 00:18:04,020 --> 00:18:07,380 It's just like git forward slash API Zendesk. 276 00:18:07,600 --> 00:18:08,960 I'm not going to read actually all that. 277 00:18:09,060 --> 00:18:09,760 That's way too much to read. 278 00:18:10,680 --> 00:18:12,160 But you can kind of see how that looks. 279 00:18:12,480 --> 00:18:18,520 And it responded with just some adjacent blob about their help center. 280 00:18:18,880 --> 00:18:22,840 And in that was a URL to kucoin.zendesk.com. 281 00:18:23,080 --> 00:18:24,160 And I thought that was a little weird. 282 00:18:24,440 --> 00:18:30,600 And also notice how it says just API v2 instead of the API Zendesk. 283 00:18:31,620 --> 00:18:33,140 So I was like, is this endpoint? 284 00:18:33,280 --> 00:18:36,020 Is this endpoint just proxying to the Zendesk API? 285 00:18:36,380 --> 00:18:40,700 Like what if we just hit other paths besides that help center endpoint? 286 00:18:41,020 --> 00:18:43,100 So I just hit the API v2. 287 00:18:43,460 --> 00:18:48,080 And it just responded with just like a big HTML 404 page. 288 00:18:48,260 --> 00:18:49,440 So I'm like, okay. 289 00:18:49,600 --> 00:18:51,480 This is kind of curious and interesting. 290 00:18:52,120 --> 00:18:57,320 So I Googled the Zendesk API documentation and found the following text. 291 00:18:57,600 --> 00:19:01,300 You must be a verified user to make API requests. 292 00:19:01,620 --> 00:19:03,160 You can authorize against the API. 293 00:19:03,280 --> 00:19:10,160 Using either basic authentication with your email address and password, with your email address, an API token, or with an OAuth access token. 294 00:19:10,500 --> 00:19:20,480 So now I'm thinking, if you have to be a verified user to make API requests, can we just use this API as KuCoin's authenticated user? 295 00:19:21,660 --> 00:19:26,820 And so I found in the documentation there's an endpoint just like API v2 tickets.json. 296 00:19:27,100 --> 00:19:30,460 And it just loads all the support tickets. 297 00:19:30,700 --> 00:19:31,700 So I tried it. 298 00:19:31,700 --> 00:19:33,280 And it actually worked. 299 00:19:35,120 --> 00:19:36,800 And so, yeah. 300 00:19:37,060 --> 00:19:41,480 You can see there's like requests for like some sort of criminal investigation. 301 00:19:41,680 --> 00:19:42,900 That was like one of the earliest tickets. 302 00:19:43,880 --> 00:19:49,580 And even more fun, there's a search.json endpoint which allows you to search tickets, obviously. 303 00:19:51,000 --> 00:19:54,260 So what if we tried searching for like session tokens or something? 304 00:19:55,320 --> 00:19:57,180 So I looked up the query language. 305 00:19:57,880 --> 00:20:00,880 And you could specify like the created date. 306 00:20:00,880 --> 00:20:03,360 You could search tickets by the created date. 307 00:20:03,480 --> 00:20:05,780 And then also search for just the word session. 308 00:20:07,420 --> 00:20:12,320 And it turns out, if you use the mobile app, it actually leaks their session token. 309 00:20:13,380 --> 00:20:15,480 And I don't know why that happens, but it does. 310 00:20:15,740 --> 00:20:24,440 You can also just search for like KYC info, like licenses, passports, because it also just like discloses like the attachments when you look at each ticket. 311 00:20:26,060 --> 00:20:29,800 And then you can also just dump all of the users with the users.json endpoint. 312 00:20:30,880 --> 00:20:37,300 So that discloses like the person's name, email, their phone number, their location. 313 00:20:39,060 --> 00:20:41,580 And this API is even better because it's like you can paginate. 314 00:20:41,760 --> 00:20:44,800 So I can just like hit every single page and just pull every user ever. 315 00:20:46,380 --> 00:20:48,320 And so I reported it to them. 316 00:20:48,560 --> 00:20:51,680 And they're like, oh, yeah, okay, this is like a high. 317 00:20:51,780 --> 00:20:52,200 This isn't a crit. 318 00:20:52,280 --> 00:20:52,860 Okay, that's fair. 319 00:20:53,800 --> 00:20:56,860 And then they just gave me $5,000 and said go away. 320 00:20:58,020 --> 00:20:58,420 Yeah. 321 00:20:58,980 --> 00:21:00,100 So that's the end of that story. 322 00:21:00,100 --> 00:21:00,940 I'll hand it back to Ben. 323 00:21:03,440 --> 00:21:03,980 All right. 324 00:21:04,000 --> 00:21:05,740 This is where the fun begins. 325 00:21:06,000 --> 00:21:11,820 So everything we talked about is different in a different industry. 326 00:21:12,080 --> 00:21:13,280 So it was the car manufacturer. 327 00:21:14,120 --> 00:21:15,000 There was the prison. 328 00:21:15,240 --> 00:21:16,600 There was the news media. 329 00:21:17,060 --> 00:21:19,260 And then there was the cryptocurrency stuff. 330 00:21:19,900 --> 00:21:24,220 But now we're going to do a back-to-back casino because we're in Vegas and we're at a bunch of casinos. 331 00:21:24,240 --> 00:21:26,840 And for once we were able to beat the casinos at their own game. 332 00:21:27,540 --> 00:21:29,920 So this one, yeah, we got some money from the casinos. 333 00:21:32,540 --> 00:21:33,260 All right. 334 00:21:33,320 --> 00:21:37,080 So this is one of the bigger European one. 335 00:21:37,260 --> 00:21:38,400 We have a U.S. version of it. 336 00:21:38,500 --> 00:21:39,500 He's going to do the U.S. version. 337 00:21:39,600 --> 00:21:40,940 I'll do it for the European folks. 338 00:21:41,740 --> 00:21:43,760 This one has a lottery side. 339 00:21:43,940 --> 00:21:48,180 People could sign up and they could do things with their lottery site. 340 00:21:48,380 --> 00:21:50,040 And I don't know what the purpose of it was. 341 00:21:50,260 --> 00:21:52,940 Being in California, apparently you can't have access to this site. 342 00:21:53,400 --> 00:21:54,980 But I could at least see some of the functionality. 343 00:21:56,200 --> 00:21:59,000 So you have this login page that comes back to you. 344 00:21:59,000 --> 00:22:02,980 And the login page says, hey, this is how my login works. 345 00:22:03,160 --> 00:22:04,060 You send a request. 346 00:22:04,300 --> 00:22:06,600 You say username and password and it hits off login. 347 00:22:07,180 --> 00:22:13,020 And there is also a forgot password link right under that login page that also has a forgot password. 348 00:22:13,200 --> 00:22:14,040 Very normal stuff. 349 00:22:14,240 --> 00:22:16,740 There is no registration, at least that we can see. 350 00:22:17,320 --> 00:22:18,320 There is nothing else. 351 00:22:18,460 --> 00:22:19,680 This is an admin panel. 352 00:22:19,840 --> 00:22:20,880 It's not just a lottery system. 353 00:22:21,060 --> 00:22:23,020 It's a back end of the lottery system. 354 00:22:23,080 --> 00:22:25,660 I'm assuming some sort of an online thing. 355 00:22:25,760 --> 00:22:27,080 So the thing to highlight here. 356 00:22:27,240 --> 00:22:28,120 I wish I could point to it. 357 00:22:28,180 --> 00:22:28,360 But. 358 00:22:29,000 --> 00:22:29,640 This right here. 359 00:22:29,680 --> 00:22:33,880 It shows an auth login within API v1. 360 00:22:35,580 --> 00:22:38,600 So the problem becomes what else can we find on this page? 361 00:22:38,720 --> 00:22:42,240 Because the page didn't have any JavaScript that was interesting. 362 00:22:42,520 --> 00:22:48,780 And there was nothing that I could find that was useful or usable to get access to this site. 363 00:22:48,940 --> 00:22:53,040 Well, you start to do a brute force for API v1. 364 00:22:53,300 --> 00:22:55,300 I did API v1 auth login. 365 00:22:55,600 --> 00:22:56,740 We have that one. 366 00:22:56,860 --> 00:22:57,740 We have forgot password. 367 00:22:57,740 --> 00:23:00,780 There is one that hits for a 405. 368 00:23:01,500 --> 00:23:02,220 That's new. 369 00:23:02,360 --> 00:23:03,780 So it's just slash new. 370 00:23:04,100 --> 00:23:07,780 And then there was users, which is 401 because I don't have access to see the users. 371 00:23:08,240 --> 00:23:12,740 Obviously, if you give it a user ID of 123, 401, user me, 401. 372 00:23:13,000 --> 00:23:14,840 And then there's also a verify for users. 373 00:23:15,120 --> 00:23:21,200 But the interesting one out of them all is the new auth slash new, which piqued my interest. 374 00:23:21,820 --> 00:23:26,980 Well, it turns out auth.new is also very verbose, just like he was mentioning. 375 00:23:26,980 --> 00:23:30,500 It told me like, hey, you're missing an email password and a password verification. 376 00:23:31,260 --> 00:23:36,400 So all you have to do was hit that API and you can create an account. 377 00:23:36,620 --> 00:23:37,920 You can create an account. 378 00:23:38,020 --> 00:23:38,560 You can log in. 379 00:23:38,640 --> 00:23:41,460 But the trick was this is an internal panel. 380 00:23:41,680 --> 00:23:45,700 So somebody had to actually confirm this account for me. 381 00:23:45,920 --> 00:23:47,220 There's a way to confirm it. 382 00:23:47,300 --> 00:23:47,940 We're not sure how. 383 00:23:48,800 --> 00:23:49,860 I didn't get an email. 384 00:23:50,040 --> 00:23:55,880 So even though I give it an email address, I didn't get anything that says, hey, come and confirm your account because this is supposed to be internal. 385 00:23:55,880 --> 00:24:02,580 So I'm assuming if I didn't have an at domain or whatever the domain was, I wouldn't get in any emails from him. 386 00:24:02,640 --> 00:24:06,440 But when you log in, sorry, before we log in, we do know two things. 387 00:24:06,580 --> 00:24:09,900 There is a verify and there's a user slash me that I have access to. 388 00:24:10,340 --> 00:24:14,160 Those two that I'm showing on this screen are from the previous scan that I did. 389 00:24:14,220 --> 00:24:15,920 But I remember to have access to those two things. 390 00:24:16,820 --> 00:24:25,700 So if I'm authenticated to my non confirmed account and I hit this slash me, it's going to give me my user accounts. 391 00:24:25,880 --> 00:24:25,960 It's going to give me the details. 392 00:24:26,660 --> 00:24:29,180 But it is going to also give me a verification code. 393 00:24:29,600 --> 00:24:36,400 So it says here's your user and here's your verification code, by the way, which didn't make sense a lot at the time. 394 00:24:36,460 --> 00:24:42,540 But then I realized that I have verified that I can use to activate my account. 395 00:24:42,740 --> 00:24:44,600 So I've also started to verify that I have to go through. 396 00:24:44,820 --> 00:24:48,720 So the way the verification thing worked was you give it a user ID. 397 00:24:48,980 --> 00:24:50,280 You give it your verification ID. 398 00:24:50,740 --> 00:24:52,040 It verifies it. 399 00:24:52,100 --> 00:24:53,060 It's a success. 400 00:24:53,380 --> 00:24:55,640 But somehow I still couldn't log in. 401 00:24:55,880 --> 00:24:57,420 And I couldn't do much with it. 402 00:24:57,500 --> 00:24:59,600 But there's one thing I want you to keep in mind. 403 00:24:59,660 --> 00:25:10,620 A lot of times in the casino or in the corporate environment or whatever you work for, usually they create email addresses like this. 404 00:25:10,700 --> 00:25:11,720 And there's one more thing to say. 405 00:25:11,800 --> 00:25:15,620 The login page asks for a user name and not an email address. 406 00:25:15,740 --> 00:25:16,780 So I don't know what a user name is. 407 00:25:17,480 --> 00:25:22,840 But the company usually gives you your first name dot last name at domain.com. 408 00:25:22,920 --> 00:25:23,480 It's pretty standard. 409 00:25:23,540 --> 00:25:24,340 A lot of companies do that. 410 00:25:24,340 --> 00:25:26,480 Unless you're at a small startup, then you get your first name. 411 00:25:26,560 --> 00:25:27,120 And it's way cooler. 412 00:25:27,240 --> 00:25:28,760 But not the case here. 413 00:25:29,020 --> 00:25:34,200 So when you send this verification email, it takes the email address, not the user name. 414 00:25:34,280 --> 00:25:35,140 It says, what's your email address? 415 00:25:35,320 --> 00:25:36,400 What's your verification ID? 416 00:25:36,740 --> 00:25:37,620 You send it back. 417 00:25:37,660 --> 00:25:38,260 And it says success. 418 00:25:38,820 --> 00:25:42,420 So when we go back to the user ID convention, it's asking me for a user name. 419 00:25:42,540 --> 00:25:43,200 I have my email. 420 00:25:43,320 --> 00:25:45,840 Verification took my email address with my verification code. 421 00:25:46,240 --> 00:25:48,000 But I still don't have a user name. 422 00:25:48,120 --> 00:25:49,240 Nothing was emailed to me. 423 00:25:49,520 --> 00:25:51,440 Well, I thought, let's go back to this. 424 00:25:51,580 --> 00:25:51,980 Let's try. 425 00:25:52,540 --> 00:25:54,320 Just drop the email address that we have. 426 00:25:54,340 --> 00:25:54,660 We give it. 427 00:25:54,680 --> 00:26:00,460 Maybe by default, whatever is the string before the at sign is probably the user name. 428 00:26:00,640 --> 00:26:02,820 So we're going to go ahead and try that really quickly. 429 00:26:03,060 --> 00:26:05,280 So as I mentioned all this, we're going to take that. 430 00:26:05,460 --> 00:26:06,780 And we're going to log in. 431 00:26:07,020 --> 00:26:08,140 And it actually logged in. 432 00:26:08,280 --> 00:26:12,220 So I give it my user name becomes whatever is before the at string is automatically your user name. 433 00:26:12,360 --> 00:26:13,760 The password is what I gave it. 434 00:26:13,840 --> 00:26:14,720 My account is activated. 435 00:26:15,140 --> 00:26:21,500 And when I get into this account where it's verified, it gives me access to all the endpoints that I had found. 436 00:26:21,660 --> 00:26:22,840 So I can see other users. 437 00:26:24,300 --> 00:26:26,000 Oops, I can see all the other users. 438 00:26:26,200 --> 00:26:27,740 The forgot password I don't care about. 439 00:26:28,200 --> 00:26:29,520 Auth new we don't care about. 440 00:26:30,300 --> 00:26:31,320 Then there's the users. 441 00:26:31,420 --> 00:26:32,460 You can do like one, two, three. 442 00:26:32,820 --> 00:26:35,360 There's users slash me and users slash verify. 443 00:26:35,720 --> 00:26:41,580 It turns out the users one is the best one because it gives you a list of all the users and all their details. 444 00:26:42,160 --> 00:26:43,780 And it's only in read only. 445 00:26:43,940 --> 00:26:45,460 So my account isn't an admin fully. 446 00:26:45,560 --> 00:26:46,340 It's just a read only. 447 00:26:46,420 --> 00:26:48,800 Probably some like, I don't know, operations person. 448 00:26:48,940 --> 00:26:51,200 I just need to have access to read the account data. 449 00:26:52,260 --> 00:26:54,460 And I don't have a lot of functionality access. 450 00:26:54,840 --> 00:26:59,340 But what I do have is a list of all the usernames and their email addresses. 451 00:26:59,640 --> 00:27:02,860 So what we do is we just grab the list of users. 452 00:27:03,100 --> 00:27:05,880 So whatever the usernames are, I'll grab them because I need that for the login. 453 00:27:06,500 --> 00:27:08,420 I took a good password list. 454 00:27:08,620 --> 00:27:14,920 And when I say a password list, I mostly mean password one, password one, two, three, and password two. 455 00:27:15,060 --> 00:27:17,000 And then the company's name and the year. 456 00:27:17,840 --> 00:27:20,980 And it turned out I can actually get an access. 457 00:27:21,200 --> 00:27:23,420 To one of those accounts with password one. 458 00:27:23,580 --> 00:27:30,040 So one of the actual admin accounts that I dumped a username from, from the read only account, had a password of password one. 459 00:27:30,380 --> 00:27:39,180 And it actually gave me access to it, which turned out to give me access to this entire casino's backend for the lottery system. 460 00:27:39,260 --> 00:27:40,440 And you had a file upload. 461 00:27:40,680 --> 00:27:41,460 You had other users. 462 00:27:41,740 --> 00:27:42,840 There was lottery details. 463 00:27:43,020 --> 00:27:49,240 But being a bug bounty hunter, you don't really get to have a lot of fun and see what kind of shenanigans you can get into. 464 00:27:49,360 --> 00:27:50,420 But more of the story is. 465 00:27:51,340 --> 00:27:52,840 There's also passwords at work. 466 00:27:52,940 --> 00:27:53,500 I don't know. 467 00:27:53,580 --> 00:27:53,940 It's 2023. 468 00:27:54,320 --> 00:27:57,340 Somehow password one and password one, two, three still work. 469 00:27:57,580 --> 00:28:04,400 So if you have a good list of usernames when you hack into a company and just can dump it through an API, it never hurts to try these easy passwords. 470 00:28:05,240 --> 00:28:05,800 So, yeah. 471 00:28:05,840 --> 00:28:07,740 This is the original thing that I had. 472 00:28:07,820 --> 00:28:14,700 It's just a bunch of non-access things to finally getting the keys to the kingdom from one of the biggest European casinos that are out there. 473 00:28:14,820 --> 00:28:18,840 And now we have another one that's a large U.S. one that I'll let this guy handle. 474 00:28:28,060 --> 00:28:32,380 So this is a story about phishing not a casino. 475 00:28:33,800 --> 00:28:35,680 So a little back story on this one. 476 00:28:36,140 --> 00:28:38,060 This was for, like, a live bug bounty event. 477 00:28:38,580 --> 00:28:40,740 And so they invited a bunch of, like, bug bounty hunters. 478 00:28:40,900 --> 00:28:43,160 And they thought it would be a good idea to put social engineering in scope. 479 00:28:43,860 --> 00:28:48,520 The only rule they had was don't email more than 100 to 200 people. 480 00:28:49,260 --> 00:28:50,240 That was the only rule. 481 00:28:51,200 --> 00:28:53,480 And they said they'd pay, like, $1,000 per user phished. 482 00:28:54,020 --> 00:29:00,420 So I was like, okay, well, what if I get 200 people to, you know, fall for a phishing email? 483 00:29:01,400 --> 00:29:09,120 This is also, like, a really bad idea to invite a 23-year-old with, like, no good filter on what I should and shouldn't do. 484 00:29:09,860 --> 00:29:10,260 Yeah. 485 00:29:10,820 --> 00:29:15,620 So a little recon on this company is they used Okta and Duo2FA. 486 00:29:15,860 --> 00:29:17,880 And it was notacasino.okta.com. 487 00:29:17,880 --> 00:29:22,840 And when these users would log in, they would enter their username and password. 488 00:29:23,340 --> 00:29:29,240 And then they'd be prompted to enter, like, a six-digit number from Duo to log in. 489 00:29:29,460 --> 00:29:32,580 So I just bought a domain that looks similar to theirs. 490 00:29:33,500 --> 00:29:35,680 I set up Evil Engine X2. 491 00:29:36,340 --> 00:29:38,300 Go fish and mail gun. 492 00:29:38,440 --> 00:29:39,600 I'm not going to get into all the infrastructure. 493 00:29:39,980 --> 00:29:47,860 But basically with, like, Evil Engine X, it basically is just, like, allows you to basically reverse proxy to the real object. 494 00:29:47,860 --> 00:29:48,260 Like, lock the instance. 495 00:29:48,640 --> 00:29:51,300 But also just, like, man in the middle and capture everything between the two. 496 00:29:52,700 --> 00:29:54,840 So that was kind of a pain to set up. 497 00:29:54,940 --> 00:29:59,280 But I Googled enough, read documentation, set up all the infrastructure for it. 498 00:29:59,440 --> 00:30:03,800 And the next challenge was to figure out, okay, well, who should I actually, like, try to phish here? 499 00:30:06,040 --> 00:30:08,640 So God bless LinkedIn Sales Navigator. 500 00:30:10,420 --> 00:30:16,800 I just signed up for, like, $100 for, like, a subscription for a month. 501 00:30:16,940 --> 00:30:17,180 Yeah. 502 00:30:17,880 --> 00:30:24,500 And I was able to figure out their email format was, like, the first character with their first name, last name at the company.com. 503 00:30:24,740 --> 00:30:34,380 So I wrote, like, a really, really simple Chrome extension that would let me just literally just, like, scroll through LinkedIn Sales Navigator and just grab their first name, last name, and then just generate this. 504 00:30:35,800 --> 00:30:37,920 And so, okay, I have emails. 505 00:30:38,080 --> 00:30:40,740 But, like, what should I say in this phishing email? 506 00:30:40,940 --> 00:30:44,160 Or in hindsight now, it's, like, never do this. 507 00:30:44,820 --> 00:30:46,000 I'm a complete douchebag. 508 00:30:46,940 --> 00:30:51,980 And so, like, I've actually never done a phishing campaign against a real company in, like, an environment. 509 00:30:52,160 --> 00:30:56,780 And this is exactly why you probably shouldn't invite a 23-year-old bug bounty hunter to do this. 510 00:30:57,240 --> 00:31:01,400 But I just was thinking, like, okay, what would I fall for and what would I click on? 511 00:31:02,960 --> 00:31:04,840 And so, again, it was really rough. 512 00:31:04,940 --> 00:31:06,960 And I'm a complete douchebag for doing this. 513 00:31:07,800 --> 00:31:08,600 And so... 514 00:31:10,180 --> 00:31:10,580 . 515 00:31:16,100 --> 00:31:17,740 I typed a few different variations. 516 00:31:17,920 --> 00:31:20,640 I'm, like, okay, we got to have, like, a reference number in, like, brackets. 517 00:31:21,960 --> 00:31:24,520 And, like, just keep it, like, short and say, like, action required. 518 00:31:24,740 --> 00:31:26,100 Because, like, okay, you have to fill this out. 519 00:31:26,740 --> 00:31:28,200 And so, I mean, you guys can read. 520 00:31:29,700 --> 00:31:34,600 The questionnaire actually pointed to a subdomain of theirs. 521 00:31:34,640 --> 00:31:37,180 If you, like, hovered the link, it would be, like, casino.com. 522 00:31:37,240 --> 00:31:40,560 And I abused a cross-site scripting bug to actually read it. 523 00:31:40,560 --> 00:31:41,340 And it actually went directly to my phishing page. 524 00:31:41,420 --> 00:31:42,620 So it looked, I guess, even a little more. 525 00:31:43,820 --> 00:31:46,100 So, yeah, I sent this to, like, 200 employees. 526 00:31:46,820 --> 00:31:51,540 And within, like, not even a minute, the cookies just started rolling in. 527 00:31:55,320 --> 00:31:57,620 And so then now I can just authenticate to Okta. 528 00:31:57,740 --> 00:32:02,340 And within two minutes, I had access to their root AWS account. 529 00:32:03,220 --> 00:32:07,180 So that includes, like, all their EC2 instances, all their databases, 530 00:32:07,760 --> 00:32:09,960 literally everything you could possibly dream of. 531 00:32:09,960 --> 00:32:12,700 So here's a picture of me just sending the email. 532 00:32:14,020 --> 00:32:15,580 Here's 30 seconds after. 533 00:32:20,720 --> 00:32:23,280 So the result is I sent it to 200 people. 534 00:32:23,540 --> 00:32:25,880 And I ended up with 40 pairs of credentials. 535 00:32:26,180 --> 00:32:28,860 I had access to Outlook, Word Calendar. 536 00:32:30,100 --> 00:32:32,980 I phished, like, one of the vice presidents, actually. 537 00:32:34,540 --> 00:32:39,280 I had access to AWS console, the GitHub, their, like, customer search tool. 538 00:32:39,980 --> 00:32:42,320 A buttload of internal applications. 539 00:32:43,160 --> 00:32:46,600 And then they never did this again because apparently, like, the Nevada, like, 540 00:32:46,620 --> 00:32:51,720 Gaming Commission, like, requires these casinos to report each instance and fines them. 541 00:32:53,680 --> 00:32:58,560 And so I think I cost them, like, several million dollars in, like, legal fines. 542 00:32:59,320 --> 00:33:02,560 But, hey, I guess they learned their lesson and I learned mine. 543 00:33:02,780 --> 00:33:07,960 They didn't pay $1,000 per user, but they paid me $20,000 for that. 544 00:33:08,000 --> 00:33:08,660 So it was a fun bug. 545 00:33:10,700 --> 00:33:11,020 Yeah. 546 00:33:12,160 --> 00:33:13,100 But, yeah, you can... 547 00:33:21,040 --> 00:33:21,360 Yeah. 548 00:33:21,500 --> 00:33:22,520 I mean, we don't have... 549 00:33:22,520 --> 00:33:24,700 Usually, you're supposed to end your talk with solutions. 550 00:33:25,000 --> 00:33:29,300 Unfortunately, we don't have any solutions for phishing, verbose APIs. 551 00:33:29,840 --> 00:33:30,160 Yeah. 552 00:33:30,240 --> 00:33:32,420 He says get good is a good answer, a good solution for it. 553 00:33:32,960 --> 00:33:33,280 Yeah. 554 00:33:33,400 --> 00:33:35,680 But, I mean, if you want to try these out, they're all on our website. 555 00:33:35,820 --> 00:33:36,440 You can give it a try. 556 00:33:37,180 --> 00:33:38,540 If you want to come and talk to us... 557 00:33:38,540 --> 00:33:39,940 Actually, I think we do have some questions. 558 00:33:39,940 --> 00:33:40,800 We have a little bit of time. 559 00:33:40,920 --> 00:33:42,340 We ended a little bit early for questions. 560 00:33:42,420 --> 00:33:43,820 If there are any questions, we can answer them. 561 00:33:44,300 --> 00:33:45,680 Otherwise, please connect with us. 562 00:33:45,720 --> 00:33:46,420 We're both on Twitter. 563 00:33:46,560 --> 00:33:48,360 I'm at Nahamsek. 564 00:33:48,740 --> 00:33:49,800 He's at Hacker. 565 00:33:50,360 --> 00:33:50,860 Thank you. 566 00:33:50,940 --> 00:33:53,300 And then, yeah, if there's any questions, we'll be happy to take them. 567 00:33:56,420 --> 00:33:56,740 Cool. 568 00:33:57,680 --> 00:33:59,660 I'm glad we were able to answer all of you guys' questions. 569 00:33:59,840 --> 00:34:00,980 Thank you for attending our talk. 570 00:34:02,480 --> 00:34:02,800 .