1 00:00:02,620 --> 00:00:03,880 Good morning. 2 00:00:04,900 --> 00:00:06,380 Hey, how is everyone doing? 3 00:00:07,900 --> 00:00:09,520 Excited to be here, second day. 4 00:00:10,160 --> 00:00:20,400 So thank you all for coming to my talk today on Smission Smackdown, unraveling the threads of the United States Postal Service, Smission, SMS fishing, and fighting back. 5 00:00:21,460 --> 00:00:24,120 So to start off, just going to cover a little bit about who I am. 6 00:00:24,120 --> 00:00:26,020 So I work full time as a red team operator. 7 00:00:26,060 --> 00:00:30,660 I recently graduated university, first full time job, kind of lucky with that. 8 00:00:31,680 --> 00:00:40,740 Well in university found around $10,000 in various bug bounty programs, that's how I got started in web application testing, and various certifications, blah, blah, blah. 9 00:00:41,100 --> 00:00:45,480 And I also recently founded a company, Phantom Security Group, with a friend of mine. 10 00:00:47,080 --> 00:00:51,820 So, who here, show of hands, got one of these text messages? 11 00:00:52,460 --> 00:00:53,420 Okay. 12 00:00:54,840 --> 00:00:55,600 Okay. 13 00:00:55,980 --> 00:00:57,480 A little bit more than I expected. 14 00:00:57,480 --> 00:01:00,480 I expected a good amount, but yeah. 15 00:01:00,540 --> 00:01:01,820 How did this all start? 16 00:01:02,720 --> 00:01:07,460 Just one of those text messages that you just saw on screen, that most of you got it seemed. 17 00:01:09,420 --> 00:01:13,560 And that text message was just sent to the wrong man's wife. 18 00:01:14,200 --> 00:01:15,940 My wife, as it so happens. 19 00:01:15,940 --> 00:01:18,820 And she unfortunately fell victim to this scam. 20 00:01:19,300 --> 00:01:22,540 And then just a few days later, I got that text message. 21 00:01:23,000 --> 00:01:29,140 And I'm sitting there, I'm bored, we're on winter break, between semesters, and I love hacking web apps. 22 00:01:29,400 --> 00:01:32,140 And what did that text have in it? 23 00:01:32,640 --> 00:01:34,400 A link to a web app. 24 00:01:34,960 --> 00:01:40,600 And so, they set up the web app for me, it's good to go, it's like hack the box, come on. 25 00:01:41,400 --> 00:01:53,640 So I loaded up that site in my browser, looks pretty legit, I will admit, and that's actually because they load in most of the resources for the site from the actual USPS.com site. 26 00:01:54,400 --> 00:02:07,120 And so, most of the links, they just take you to the USPS official site, but below this screenshot, and this little red area you can see, the delivery failed, you can enter your data. 27 00:02:07,120 --> 00:02:09,880 And this is where they start, the scammers start collecting your data. 28 00:02:10,340 --> 00:02:18,180 And so, I wanted to get in the middle, I wanted to intercept that traffic, do a little bit more digging than the simple Firefox developer tools allow. 29 00:02:18,460 --> 00:02:22,420 So I loaded up Burp suite, community edition of course, I'm not rich. 30 00:02:23,620 --> 00:02:36,460 But the first thing I did, and the first thing I noticed actually, was that a lot of the traffic was going to a different domain, a similar one, but different, and I'm just going to call this the C2, or command and control domain, because for some of the kits, 31 00:02:36,460 --> 00:02:39,000 it was on the same server, for some of them it wasn't. 32 00:02:40,080 --> 00:02:41,620 And that became my new target. 33 00:02:42,260 --> 00:02:47,900 And so, with Burp suite loaded up, I could see those HTTP requests, and one of the first things I noticed was WebSocket traffic. 34 00:02:47,960 --> 00:02:50,160 And I was like, why is there WebSockets going on? 35 00:02:50,160 --> 00:02:54,240 Why did they set up WebSockets just to give us a static HTML page? 36 00:02:54,240 --> 00:02:56,720 There's no reason to do that. 37 00:02:56,740 --> 00:03:00,920 But, that turned out to be one of the scammers' first of many mistakes. 38 00:03:01,380 --> 00:03:07,760 And that's because, by doing a simple path traversal, you could grab any file on the system basically. 39 00:03:07,760 --> 00:03:12,420 So like, it was just as simple as dot dot slash, dot dot slash, etc. 40 00:03:12,420 --> 00:03:14,200 You get the point. 41 00:03:14,640 --> 00:03:25,380 But yeah, with this path traversal, LFI, whatever you want to call it, I was able to read basically everything, but this machine that was on this web application was just a bare image. 42 00:03:25,380 --> 00:03:38,260 There was the, obviously the web application itself that they were using to collect information, but nothing really else on there, so no SSH keys or other ways that you would be able to log in usually with this type of vulnerability. 43 00:03:39,240 --> 00:03:44,820 So, looking around, very little, as I said, but I did find the access logs for this server. 44 00:03:45,400 --> 00:03:51,080 Some of the other servers, later on, like their access logs so big you can't pull it, it just crashes the server. 45 00:03:51,140 --> 00:03:54,960 But this one, I got lucky and I was able to actually pull down the file. 46 00:03:56,040 --> 00:04:04,740 And before I cover that, I'm just going to show what path traversal vulnerability is, just so some people understand it, if you don't work with web apps often. 47 00:04:05,020 --> 00:04:12,180 But a path traversal is when a web application is configured to grab a file from the server and that file is specified through some sort of argument. 48 00:04:12,360 --> 00:04:17,700 So, in this example, the file name argument is used to grab gift.png on the left. 49 00:04:18,500 --> 00:04:27,360 But if there's not proper sanitization of user input, then an attacker can just grab any file from the system. 50 00:04:27,680 --> 00:04:38,760 And so, usually it's starts in the web directory and so you have to do some dot dot slashes to get up a few directories to the top and then grab an already known file just so you can test it out. 51 00:04:38,760 --> 00:04:41,160 So, et cetera, password in this case. 52 00:04:42,100 --> 00:04:47,240 So now that we're caught up on web application testing, let's get to the access logs. 53 00:04:47,660 --> 00:04:56,940 So in here, going to the very top, so where usually the setup process is happening for the web server, we can see that the scammers are using a tool called btpanel. 54 00:04:56,940 --> 00:04:59,000 Some people might be familiar with it. 55 00:04:59,000 --> 00:05:05,080 It's a Chinese software for server administration through a web app. 56 00:05:05,200 --> 00:05:09,100 And that btpanel software uses phpMyAdmin. 57 00:05:09,520 --> 00:05:16,540 And looking at the, you can see the IP address of the scammer accessing that phpMyAdmin endpoint. 58 00:05:16,540 --> 00:05:27,000 And you can tell it's not one of those web crawlers, web scanners because it's phpMyAdmin underscore a long string of characters that's so random that a scanner's not going to find that. 59 00:05:27,000 --> 00:05:31,620 And also it's returning a 200 okay status code to that, which means it actually exists. 60 00:05:31,620 --> 00:05:32,920 That endpoint is real. 61 00:05:35,360 --> 00:05:42,900 Yeah, I plugged that IP into IP location and some of you might already know where it's from, but we'll get to that in a little bit. 62 00:05:43,300 --> 00:05:48,900 After that, obviously just did an Nmap scan of the web application. 63 00:05:49,620 --> 00:05:51,440 Just got to get some scanning started. 64 00:05:51,440 --> 00:05:53,140 And two open ports. 65 00:05:53,260 --> 00:05:58,520 443 obviously for HTTPS and so we need that open to access the site. 66 00:05:58,520 --> 00:06:01,280 And then also 21 for FTP. 67 00:06:01,280 --> 00:06:03,160 And that was kind of weird to me. 68 00:06:03,200 --> 00:06:05,300 FTP is slowly dying. 69 00:06:05,960 --> 00:06:07,300 1970s I think. 70 00:06:07,920 --> 00:06:17,360 But I tried multiple ways to get in through here because usually FTP if it's older setup, there's various different CVEs for it. 71 00:06:17,960 --> 00:06:19,520 Also tried brute forcing. 72 00:06:19,640 --> 00:06:20,960 That didn't work out. 73 00:06:21,320 --> 00:06:23,900 So I had to get back to the web application. 74 00:06:24,640 --> 00:06:37,740 And also if you look at the scan, some interesting stuff you can find with the SSL certificates is that the subject alternate names, it contains all the domains that are linked back to that web app. 75 00:06:37,960 --> 00:06:45,060 So you can just collect them that way instead of having to go look online, find different scammers. 76 00:06:45,060 --> 00:06:48,220 But this all links back to this IP address, this web application here. 77 00:06:48,880 --> 00:06:50,820 But this was interesting information. 78 00:06:50,820 --> 00:06:54,860 It wasn't an RCE or anything I was looking for like SQL injection or something like that. 79 00:06:54,860 --> 00:06:56,580 I wanted to take over this app. 80 00:06:56,580 --> 00:06:58,920 I didn't want to get information disclosure. 81 00:07:00,360 --> 00:07:03,840 So I had read access to the file system. 82 00:07:03,980 --> 00:07:05,740 The path traversal. 83 00:07:05,800 --> 00:07:08,420 I had a bunch of different domain names linked back to the web app. 84 00:07:08,680 --> 00:07:14,440 And I had to figure out like a little bit about how the back end works with that path traversal vulnerability. 85 00:07:14,580 --> 00:07:19,780 But I didn't really have any admin data besides the IP's access and the access logs. 86 00:07:20,180 --> 00:07:21,460 And no victim data at all. 87 00:07:21,460 --> 00:07:23,820 I didn't know who was being scammed exactly. 88 00:07:24,080 --> 00:07:26,440 General guess just of who it was. 89 00:07:26,520 --> 00:07:28,400 But I had to dig deeper. 90 00:07:28,500 --> 00:07:30,860 And try harder is offset you might say. 91 00:07:31,480 --> 00:07:33,040 Don't kill me for saying that. 92 00:07:34,280 --> 00:07:35,960 Yeah, so I did just that. 93 00:07:35,960 --> 00:07:36,840 Try harder. 94 00:07:37,020 --> 00:07:38,700 And this led to a breakthrough. 95 00:07:39,240 --> 00:07:45,520 I'm still going to cover it up because I don't want to reveal which end point is vulnerable to this. 96 00:07:45,520 --> 00:07:50,260 But it was a blind unauthenticated time based SQL injection vulnerability. 97 00:07:50,560 --> 00:07:55,120 Which in short is a really slow dump of a database. 98 00:07:55,360 --> 00:07:56,760 Very, very slow. 99 00:07:57,060 --> 00:08:03,340 And the way I was able to find this is just simple single quotation in an argument. 100 00:08:03,680 --> 00:08:05,940 And it returned a 200 okay status code. 101 00:08:05,940 --> 00:08:07,540 Not like a 500 error. 102 00:08:07,540 --> 00:08:08,780 Which is what you would expect. 103 00:08:08,780 --> 00:08:12,280 But in the message returned it said error. 104 00:08:12,380 --> 00:08:15,000 Which none of the other responses did. 105 00:08:15,080 --> 00:08:17,800 When you insert a colon in there. 106 00:08:17,800 --> 00:08:20,520 Or colon single quote whatever you're testing with. 107 00:08:21,120 --> 00:08:22,480 So yeah. 108 00:08:22,780 --> 00:08:25,380 Dumped the database for that domain. 109 00:08:26,480 --> 00:08:28,600 Some interesting tables in there. 110 00:08:28,900 --> 00:08:30,980 Dumped some of the contents of those tables. 111 00:08:32,140 --> 00:08:36,000 And looking at those tables, config was actually surprisingly boring. 112 00:08:36,220 --> 00:08:40,300 Most of the data in there was just what type of credit cards are you taking in. 113 00:08:40,300 --> 00:08:42,640 An activation key for the kit itself. 114 00:08:43,480 --> 00:08:45,200 Some other things like that. 115 00:08:45,540 --> 00:08:48,840 User info and records were encrypted blobs. 116 00:08:48,840 --> 00:08:50,280 So I tried dump and dump. 117 00:08:50,740 --> 00:08:53,020 And no luck. 118 00:08:53,580 --> 00:08:56,440 It just doesn't work with time based blind injections. 119 00:08:56,780 --> 00:08:58,280 Very hard, very slow. 120 00:08:58,280 --> 00:09:00,880 And also there was a ton of data in them. 121 00:09:01,280 --> 00:09:03,880 And then that left us the admin table. 122 00:09:04,260 --> 00:09:06,900 So in the admin table there was encrypted user names. 123 00:09:07,360 --> 00:09:10,940 Encrypted tokens like session tokens, login tokens. 124 00:09:11,080 --> 00:09:13,880 Hash passwords looking like MD5. 125 00:09:13,880 --> 00:09:16,220 Some permission levels one through four. 126 00:09:16,280 --> 00:09:20,880 And unencrypted last login times and IP addresses. 127 00:09:20,880 --> 00:09:22,520 For those admin users. 128 00:09:22,520 --> 00:09:23,720 That was awesome. 129 00:09:24,020 --> 00:09:26,680 So can anyone guess the country? 130 00:09:28,280 --> 00:09:29,080 China. 131 00:09:31,500 --> 00:09:32,720 You're so smart. 132 00:09:33,340 --> 00:09:34,160 It was China. 133 00:09:34,280 --> 00:09:37,560 And this IP address up here happens to be from the Shanghai region of China. 134 00:09:38,520 --> 00:09:42,180 Yeah, this is when I went ahead and published my first blog post. 135 00:09:42,180 --> 00:09:44,080 So I have two blog posts on this. 136 00:09:44,440 --> 00:09:45,840 The first one was published. 137 00:09:46,020 --> 00:09:47,400 I didn't really know it was a kit. 138 00:09:47,400 --> 00:09:51,560 I knew it was just a scammer site that they had set up. 139 00:09:51,560 --> 00:09:53,860 I didn't know there was a bunch more out there. 140 00:09:54,520 --> 00:09:59,360 And so I started looking through some of this data because I had a bunch . 141 00:09:59,540 --> 00:10:03,900 But again, I wanted to access the admin portion of the site. 142 00:10:04,680 --> 00:10:12,540 And so looking at one of the dumps, if you noticed earlier there was a telegram link in the description of one of the users . 143 00:10:13,400 --> 00:10:17,600 Going to that telegram profile you see this is WangduU0. 144 00:10:18,100 --> 00:10:30,020 And in his bio it links to another telegram channel which has at the time of taking the screenshot a few days ago is over 3,700 subscribers. 145 00:10:32,780 --> 00:10:39,120 And in this telegram channel we can see some demo videos of this kit that they're selling. 146 00:10:39,540 --> 00:10:42,060 How to posts to set up the kit. 147 00:10:42,480 --> 00:10:44,880 Announcements of how secure the product is. 148 00:10:44,880 --> 00:10:45,860 It's super secure. 149 00:10:45,860 --> 00:10:49,660 No one is taking your victims, your account credentials, et cetera. 150 00:10:50,040 --> 00:10:51,940 And then some stuff like this. 151 00:10:55,780 --> 00:10:57,020 Oh, you can't hear it. 152 00:10:59,240 --> 00:11:00,340 There's no audio. 153 00:11:00,340 --> 00:11:00,940 Okay. 154 00:11:01,500 --> 00:11:03,120 It's got some hype up music. 155 00:11:10,540 --> 00:11:11,420 Yeah. 156 00:11:11,460 --> 00:11:12,080 Who is this? 157 00:11:12,080 --> 00:11:13,660 Who is posting these videos? 158 00:11:13,660 --> 00:11:14,940 Who is making this kit? 159 00:11:15,280 --> 00:11:19,860 That's that WangduU0 character that we first found a link for. 160 00:11:20,020 --> 00:11:22,740 And so I actually got to chatting with him on telegram. 161 00:11:22,740 --> 00:11:27,000 I was pretending I was a ‑‑ which country I said I was. 162 00:11:27,060 --> 00:11:29,660 But I was obviously using Google translate to talk to him. 163 00:11:29,660 --> 00:11:32,880 So I had to say I didn't speak Chinese and all that. 164 00:11:33,140 --> 00:11:36,700 But got out of him that he's a current computer science student in China. 165 00:11:36,700 --> 00:11:41,580 At least at the time of talking to him it was about January time frame of this year. 166 00:11:41,860 --> 00:11:47,220 And so he may have graduated now but at the time of talking to him he was a computer science undergraduate it seemed like. 167 00:11:47,880 --> 00:11:56,880 And along with him, there's some other members of the group that do graphic design, web developers of course. 168 00:11:57,460 --> 00:12:01,620 And I got that information from a company called RE security. 169 00:12:01,760 --> 00:12:08,560 And it turns out, so when Googling the WangduU0 character, two blog posts from RE security popped up. 170 00:12:08,940 --> 00:12:20,880 And they had already done a good amount of research on this USPS submission campaign along with other campaigns of this group that they dubbed the submission triad had done. 171 00:12:21,480 --> 00:12:30,660 And so, cool. 172 00:12:30,660 --> 00:12:31,560 Thank you. 173 00:12:32,380 --> 00:12:40,220 Yeah, the submission triad, they had found some various vulnerabilities in the USPS kit beforehand. 174 00:12:40,460 --> 00:12:44,140 And so they had also found a similar SQL injection vulnerability in the kit. 175 00:12:44,140 --> 00:12:49,600 But the author of the kit had read their blog, patched the vulnerability, started encrypting data. 176 00:12:49,600 --> 00:12:55,040 He also added captchas to log ins for admins, like a bunch of other security features. 177 00:12:55,100 --> 00:12:57,220 But we're getting into how we bypassed all that. 178 00:12:57,220 --> 00:13:07,720 So, the RE security hunter team had mentioned in the blog that they had acquired, purchased through some means a kit from the submission triad. 179 00:13:07,720 --> 00:13:08,820 So I'm broke. 180 00:13:08,820 --> 00:13:11,260 These kits cost $200 a month. 181 00:13:11,740 --> 00:13:13,180 And I'm not paying that. 182 00:13:14,000 --> 00:13:14,940 Like, no. 183 00:13:15,200 --> 00:13:18,040 So, also I can't support scammers. 184 00:13:18,060 --> 00:13:19,380 So, that's another thing. 185 00:13:19,380 --> 00:13:21,400 But yeah, so I begged them. 186 00:13:21,820 --> 00:13:25,900 They get back to me and they're like, hey, can we read about what you've done? 187 00:13:25,900 --> 00:13:28,320 Can you tell us a little bit about what you're looking into? 188 00:13:28,580 --> 00:13:32,260 Talked back and forth and they were kind enough to send over the kit for free. 189 00:13:32,940 --> 00:13:37,220 And so, unzipping the kit, one of the first things I noticed was default credentials. 190 00:13:38,300 --> 00:13:41,520 Admin and the password of 1, 2, 3, 4, 5, 6. 191 00:13:43,060 --> 00:13:46,240 And then when you log in for the first time, you don't have to change it. 192 00:13:46,740 --> 00:13:49,340 So, that makes it nice and easy for us. 193 00:13:49,960 --> 00:13:54,740 And I will mention about 20% of the kits I ended up finding still had those default credentials. 194 00:13:56,280 --> 00:13:57,920 The thing was the hashes. 195 00:13:58,060 --> 00:14:00,000 So, it looked like MD5. 196 00:14:00,000 --> 00:14:01,200 I presumed it was MD5. 197 00:14:01,200 --> 00:14:06,620 The MD5 hash for 1, 2, 3, 4, 5, 6 did not line up with what was in the pre-prepared database. 198 00:14:07,000 --> 00:14:08,980 So, I knew there was something going on. 199 00:14:08,980 --> 00:14:10,900 There was some salt being added. 200 00:14:10,940 --> 00:14:16,720 Maybe it was some similar algorithm that I just didn't know about. 201 00:14:16,840 --> 00:14:21,080 The issue was, looking at the code, it was gross. 202 00:14:21,600 --> 00:14:23,620 Like, not even human readable. 203 00:14:24,780 --> 00:14:27,180 Very highly obfuscated PHP code. 204 00:14:27,940 --> 00:14:35,720 Along with that PHP code, it was using introspection, so you can't add echo statements in there to echo stuff out. 205 00:14:35,780 --> 00:14:42,880 And also, it had multiple times it was checking where, checking to see if it was being debugged. 206 00:14:43,040 --> 00:14:45,460 And so, I just couldn't find a way. 207 00:14:45,460 --> 00:14:49,620 I spent multiple days trying to de-obfuscate the code in there. 208 00:14:49,860 --> 00:14:56,240 That's when a friend of mine, actually up here in the first row, suggested using a technique called eval hooking. 209 00:14:56,800 --> 00:15:08,680 And so, using simple echo statements, so you hook the eval function, which it has to be plain PHP, plain text PHP, to be executed by the eval function for the page to work. 210 00:15:08,700 --> 00:15:15,680 So if you just hook into that function, echo out what it's executing, you can slowly figure out what's going on in the code. 211 00:15:17,020 --> 00:15:21,060 And so, you can see some of my notes here, and the variable names are disgusting, gross. 212 00:15:21,620 --> 00:15:25,420 But up in the middle, there's little comments added after them. 213 00:15:25,420 --> 00:15:29,800 And you can see that the user names are being encrypted with AES-128-CVC. 214 00:15:30,520 --> 00:15:38,700 And they're using the key of WDY-666666, just the mean length requirements. 215 00:15:38,980 --> 00:15:43,060 And then the ID of AES-128-WANG-DU8. 216 00:15:43,400 --> 00:15:48,760 And so, he loves using his own name in these passwords and stuff. 217 00:15:49,840 --> 00:15:51,860 So now the passwords were a bit trickier though. 218 00:15:51,860 --> 00:15:53,860 It took a little bit longer to figure out. 219 00:15:53,920 --> 00:15:56,760 And the passwords were appended with a salt. 220 00:15:57,120 --> 00:16:02,260 So, WANG-DU-U, again, more sixes, and then special characters. 221 00:16:02,620 --> 00:16:05,460 And then after that, they were hashed three times using empty five. 222 00:16:06,260 --> 00:16:08,180 The gold standard for hashing algorithms. 223 00:16:08,180 --> 00:16:13,140 I know, it's 20, he wrote it in 2023, so, like, yeah. 224 00:16:13,140 --> 00:16:16,260 I don't know what he's learning in school, but, yeah. 225 00:16:17,060 --> 00:16:18,720 Then also we look at the activation. 226 00:16:18,720 --> 00:16:26,060 So, looking into the kit, I noticed that when I would, like, spin up the server, it would check its activation. 227 00:16:26,820 --> 00:16:32,560 And so, this is some basic C4 encoded, well, hex and then basic C4 encoded data. 228 00:16:33,080 --> 00:16:41,260 And he hardcoded his IP address for his admin server, like, right there in the code. 229 00:16:41,260 --> 00:16:43,740 So, that's his IP address. 230 00:16:43,740 --> 00:16:48,020 I haven't checked recently if it's still up, but you can go say hi to him. 231 00:16:49,960 --> 00:16:51,620 But also, he was double dipping. 232 00:16:51,620 --> 00:16:53,860 So, he's charging 200 bucks a month for this kit. 233 00:16:53,940 --> 00:16:57,680 He makes tons of reassurances that he's not stealing their information. 234 00:16:57,680 --> 00:16:59,080 No one else is stealing their information. 235 00:16:59,080 --> 00:17:03,300 But every time an admin logs in, it sends their login token to him. 236 00:17:05,380 --> 00:17:12,060 So, he can just log in as that user and take their victim data along with their 200 bucks a month. 237 00:17:12,100 --> 00:17:15,060 So, no honor. 238 00:17:16,220 --> 00:17:16,700 But, yeah. 239 00:17:16,700 --> 00:17:20,400 So, now we have the method for caching of the passwords. 240 00:17:20,660 --> 00:17:26,900 And so, I go ahead and make a go tool, a little quick go tool to crack those passwords. 241 00:17:27,420 --> 00:17:30,860 And you can see my command line up there. 242 00:17:31,000 --> 00:17:36,060 It's kind of small up here, but just using Rocky against the hashes and printing them out. 243 00:17:36,060 --> 00:17:38,980 So, you can see, like, 1, 2, 3, 4, 5, 6, obviously, the default. 244 00:17:39,080 --> 00:17:45,480 But, like, straight zeros, 1, 2, 3, 1, 2, 3, 1, 2, 3, 3, 2, 1, admin, 3, 3, admin, etc. 245 00:17:45,480 --> 00:17:47,300 All these really easy passwords. 246 00:17:47,300 --> 00:17:50,080 But, obviously, it's Rocky, so it's only going to crack the easy ones. 247 00:17:50,480 --> 00:17:57,540 But, the issue was, some of the larger panels I was finding, Rocky wasn't cracking any of those passwords for the users. 248 00:17:57,980 --> 00:18:04,420 And so, I had to add normal password cracking techniques to crack them. 249 00:18:04,420 --> 00:18:11,600 So, the first thing I did was rules, basically, just adding suffixes to the Rocky word list as it's going through. 250 00:18:11,880 --> 00:18:20,420 Just append in 1 to the end, exclamation point, dollar sign, other different symbols and number patterns that I was seeing in a lot of the passwords. 251 00:18:20,860 --> 00:18:25,200 And then, I also needed a new word list for this, because they're mostly Chinese based. 252 00:18:26,060 --> 00:18:32,280 So, I needed a word list that wasn't Rocky, because Rocky is English, obviously, for the most part. 253 00:18:32,680 --> 00:18:35,380 And most other word lists are, like, English, French, that sort of thing. 254 00:18:35,520 --> 00:18:41,960 There's not many Asian word lists out there for a lot of Asian languages. 255 00:18:42,220 --> 00:18:45,700 So, the one I ended up choosing was the Keonashi word list. 256 00:18:45,700 --> 00:18:49,040 It was one of the only word lists I could find, actually, for this. 257 00:18:49,080 --> 00:18:55,240 And using that word list and these rules, I was able to crack over 130 of those hashes for those admin users. 258 00:18:56,580 --> 00:19:02,900 So now, we have decrypted usernames, we have cracked passwords, we can just log into these panels, right? 259 00:19:03,160 --> 00:19:06,540 Oh, and this is, like, this is the default admin, like, login screen. 260 00:19:07,080 --> 00:19:09,120 But no, you can't do that. 261 00:19:09,120 --> 00:19:14,160 The majority of those admin panels actually have wait lists set up for IP addresses. 262 00:19:14,160 --> 00:19:16,280 Okay, that's pretty good. 263 00:19:17,120 --> 00:19:21,360 Luckily for us, though, like, some of them just didn't set it up. 264 00:19:21,360 --> 00:19:25,940 So, we were able to test this out on a few different panels, three to be exact. 265 00:19:26,240 --> 00:19:32,840 And you enter using a password and solve the CAPTCHA, and then you just log in. 266 00:19:33,440 --> 00:19:36,000 So, this is the inside of the panel, this is the main dashboard. 267 00:19:36,480 --> 00:19:40,440 They got nice statistics, numbers, everything. 268 00:19:41,320 --> 00:19:45,820 And who doesn't love Excel or CSV format and stuff? 269 00:19:46,560 --> 00:19:51,400 So, they have that and you can view the domain names that they were scamming people from. 270 00:19:52,420 --> 00:20:05,460 But those restrictions on access and slash admin really hampered what we were able to do, or what I was able to do, because you couldn't dump any of the kids except for those three that had the wait list not enabled. 271 00:20:06,200 --> 00:20:16,620 And so, to bypass that, there's these end points that it reaches out to to authenticate, to grab victim data, to grab admin data, to list those domains that we just saw on the previous slides. 272 00:20:17,240 --> 00:20:20,740 And those end points don't have the wait list on them. 273 00:20:20,740 --> 00:20:22,900 So, they're not protected at all. 274 00:20:23,080 --> 00:20:27,480 And so, all I had to do was just authenticate directly to those end points. 275 00:20:27,660 --> 00:20:31,380 So, here I'm just authenticating and getting the login token. 276 00:20:31,800 --> 00:20:35,240 And here, this is just access in the data for the home panel. 277 00:20:35,240 --> 00:20:37,920 So, overall statistics for how many phishes. 278 00:20:38,060 --> 00:20:42,920 So, it looks like all records, this one had like 9,200 victims, it looks like. 279 00:20:43,460 --> 00:20:49,580 And so, now, using this, I mean, BurstFruit's awesome, but I didn't want to have to do this every time I found the kit. 280 00:20:49,600 --> 00:20:51,720 So, I automated the process. 281 00:20:51,720 --> 00:20:54,200 And here, we'll show a little demo of it. 282 00:20:54,380 --> 00:20:55,600 So, the capture pops up. 283 00:20:55,600 --> 00:20:59,680 I couldn't really find a bypass for the capture, so I had to solve it manually, unfortunately. 284 00:21:00,140 --> 00:21:02,680 Enter the capture, it goes through, dumps that data for me. 285 00:21:02,680 --> 00:21:08,180 And so, this kit that I just dumped there had 28 victims, so really small, brand new one. 286 00:21:08,720 --> 00:21:13,360 And then, this one we're about to have is going to have over like 5,000 victims in it. 287 00:21:14,380 --> 00:21:17,440 So, here, dumps the pending victims, complete victims. 288 00:21:17,920 --> 00:21:25,420 So, it's going to have, if you dumped over 1,000 victims at one time in a page, it would crash the server. 289 00:21:25,800 --> 00:21:34,780 And so, I would have to dump like 1,000 a page and then iterate through however many pages it was. 290 00:21:35,280 --> 00:21:37,740 And so, there we go, that's the recording. 291 00:21:37,820 --> 00:21:42,620 But, like 48 pending victims and 4,900 something completed victims. 292 00:21:43,980 --> 00:21:45,140 But we need more targets. 293 00:21:45,140 --> 00:21:46,600 So, I had the automation set up. 294 00:21:46,600 --> 00:21:54,460 I needed a better way to get these URLs other than them just texting me, because I only got a few text messages. 295 00:21:54,960 --> 00:21:56,380 So, I crowd sourced. 296 00:21:56,380 --> 00:21:58,960 I set up a site for people to submit URLs to. 297 00:21:59,300 --> 00:22:02,740 And it would grab, so there's a static JavaScript config file in there. 298 00:22:02,740 --> 00:22:07,120 I could grab that like C2 domain from that file. 299 00:22:07,260 --> 00:22:10,120 And that just makes my life easier. 300 00:22:10,120 --> 00:22:13,320 But also, I found a bunch of URLs here. 301 00:22:15,680 --> 00:22:21,100 So, r slash scams on Reddit, people posted screenshots of their text messages. 302 00:22:21,260 --> 00:22:26,340 So, I had to hand jam those URLs in, which is unfortunate, but it was okay. 303 00:22:27,200 --> 00:22:29,700 But yeah, just hand jam those URLs in. 304 00:22:30,000 --> 00:22:35,200 And one thing I also noticed when going through our shot scams, there was a copycat campaign going on. 305 00:22:37,320 --> 00:22:40,040 And this copycat campaign was interesting to me. 306 00:22:40,840 --> 00:22:47,740 Because they had ripped the entire front end of the submission triads kit and just placed it on top of their back end. 307 00:22:48,000 --> 00:22:56,740 And you could tell they had done that because the site was reaching out to end points that didn't exist on this server, but would exist on the submission triads back end. 308 00:22:56,960 --> 00:22:58,580 So, like WebSockets, for example. 309 00:22:58,860 --> 00:23:08,020 There's no need to set up WebSockets, they realize this, so they didn't set up WebSockets, but it's still trying to reach out to it because they just didn't even edit the JavaScript in the site. 310 00:23:08,320 --> 00:23:10,740 So, that was interesting. 311 00:23:10,840 --> 00:23:13,300 Didn't really end up exploiting this campaign. 312 00:23:13,680 --> 00:23:17,160 Just targeted the submission triads one, but something of note. 313 00:23:18,280 --> 00:23:24,120 So now, I was gathering those URLs from different places, and this was the process that I would go through. 314 00:23:24,120 --> 00:23:29,920 I would extract the admin panel URL from that static JavaScript config file. 315 00:23:30,120 --> 00:23:34,880 I would exploit that time-based SQL injection against that domain. 316 00:23:35,020 --> 00:23:44,180 Dump the admin table, decrypt the usernames from that, put the hashes in the cracker tool, let that run for a little bit, took forever. 317 00:23:45,160 --> 00:23:51,340 Once it was done, I would hopefully have a new login that I could add to that automation script that I just showed you. 318 00:23:52,280 --> 00:23:57,060 So now, after doing all this, got some interesting statistics. 319 00:23:58,060 --> 00:24:01,880 So, this is my chat GPT generated infographic. 320 00:24:03,520 --> 00:24:04,740 Look at that. 321 00:24:05,720 --> 00:24:11,340 But total times data was entered, so this is times credit card was entered. 322 00:24:11,400 --> 00:24:16,060 So, 1.2 million times a credit card was entered into this site. 323 00:24:16,060 --> 00:24:18,180 So they went through the whole process to enter a credit card. 324 00:24:18,440 --> 00:24:22,320 The total unique credit cards though was 438,000. 325 00:24:23,420 --> 00:24:25,940 Unique IPs, 73,000. 326 00:24:26,880 --> 00:24:29,140 Unique emails used 54,000. 327 00:24:29,140 --> 00:24:35,200 And then domains used by the scammers, they used over 1,100 domains, which is crazy. 328 00:24:36,240 --> 00:24:38,360 The thing is, this isn't even all the data. 329 00:24:38,360 --> 00:24:39,740 This is the ones I was able to find. 330 00:24:39,740 --> 00:24:41,500 There's more, there was more out there. 331 00:24:41,500 --> 00:24:44,480 They go up and down all the time, getting taken down. 332 00:24:44,800 --> 00:24:49,000 So, the numbers are much larger than this probably. 333 00:24:49,940 --> 00:24:55,720 So now, looking at those admin logins, we can do a simple map of their IP addresses. 334 00:24:56,100 --> 00:24:57,620 You can see where they're logging in from. 335 00:24:57,620 --> 00:25:00,440 We've got some interesting statistics on this. 336 00:25:00,500 --> 00:25:06,500 You can see a lot of the publicly known proxies are coming from the United States, so they're proxying to the U.S. 337 00:25:06,980 --> 00:25:09,160 There are some people logging in from the U.S. 338 00:25:09,160 --> 00:25:11,540 that aren't from publicly known proxies. 339 00:25:13,920 --> 00:25:23,000 Some in Europe, and so most of them are in China, but obviously anyone can buy this kit, so admins are going to be logging in from throughout the world. 340 00:25:23,980 --> 00:25:33,160 But zooming in on Asia, you can see cluster in Taiwan, you can see cluster, I think that's Hong Kong and Shanghai region. 341 00:25:33,580 --> 00:25:37,340 And then also some down in the Philippines and those islands. 342 00:25:39,160 --> 00:25:41,040 Now, mapping the victims the same way. 343 00:25:41,140 --> 00:25:43,200 This was wild. 344 00:25:44,260 --> 00:25:45,940 So, yeah. 345 00:25:46,160 --> 00:25:50,680 I mean, it's USPS, so obviously a ton in the U.S., but also a ton throughout the world. 346 00:25:51,300 --> 00:25:56,660 I'm going to guess this is a combination of people testing out those random links and also tourists. 347 00:25:56,660 --> 00:26:00,480 So people traveling, they get those text messages and enter their data that way. 348 00:26:01,120 --> 00:26:04,600 Zooming in on the U.S., it's basically a population density map. 349 00:26:04,980 --> 00:26:07,640 So tons around the East Coast, obviously. 350 00:26:08,000 --> 00:26:14,020 It's a little thin throughout the Midwest and then SoCal and up in Washington, Oregon. 351 00:26:14,020 --> 00:26:16,500 And also cluster out in Hawaii. 352 00:26:17,120 --> 00:26:19,920 So yeah, a lot of IP addresses there. 353 00:26:20,520 --> 00:26:21,700 More infographic. 354 00:26:22,260 --> 00:26:23,940 Let's look at the top three states. 355 00:26:23,940 --> 00:26:27,380 California was number one with 141,000 victims. 356 00:26:27,580 --> 00:26:31,660 Texas had 119,000 and Florida had over 100,000. 357 00:26:32,100 --> 00:26:38,920 Top three email domains used, Gmail was way at the top with 93,000. 358 00:26:38,980 --> 00:26:41,380 iCloud with 15 and Yahoo with 12. 359 00:26:42,240 --> 00:26:45,180 And then other stats. 360 00:26:45,280 --> 00:26:51,740 So the average credit cards entered, out of this 1.2 million entries, on average people entered 2.48 credit cards. 361 00:26:51,740 --> 00:26:53,240 So almost rounding up to three. 362 00:26:53,400 --> 00:26:59,080 And the reason for this was when you go through this process and you enter your credit card, it would be like, oh, this card's invalid, enter a new one. 363 00:26:59,100 --> 00:27:01,340 And so people would just keep entering credit cards. 364 00:27:01,740 --> 00:27:03,680 I saw six credit cards for some of them. 365 00:27:03,680 --> 00:27:04,660 It was crazy. 366 00:27:05,440 --> 00:27:13,780 And so it's unfortunate, but that's why unique email addresses and unique credit cards, that was such a big difference. 367 00:27:14,140 --> 00:27:17,140 Also you can see the number of .edu emails in there. 368 00:27:17,140 --> 00:27:22,500 So a lot of professors, staff at universities, students obviously, so 471 there. 369 00:27:22,640 --> 00:27:26,740 Some people were using the .mil email addresses, which I was kind of surprised about. 370 00:27:26,740 --> 00:27:31,020 So 3.mils in there and 17.govs, federal employees. 371 00:27:32,860 --> 00:27:34,320 So what happened with all this data? 372 00:27:34,320 --> 00:27:37,880 I had all this 1.2 million victim records here. 373 00:27:38,700 --> 00:27:40,340 I started looking for some help. 374 00:27:40,400 --> 00:27:43,460 So no one really wanted to reach back out to me. 375 00:27:43,460 --> 00:27:50,540 So I reported through Internet Crime Center's online forum and the FBI reported tip or whatever. 376 00:27:50,540 --> 00:27:52,460 And the postal inspectors, I emailed them. 377 00:27:52,560 --> 00:27:56,880 And no one really reached out until the banks did. 378 00:27:57,160 --> 00:28:02,740 One of the major bank's threat intelligence teams had read my blog on LinkedIn or something. 379 00:28:03,280 --> 00:28:07,660 And they got in touch with me, set up a meeting with their team. 380 00:28:07,680 --> 00:28:20,440 I just walked through what I had done and shared securely the victim data with them so that they could go through and find their customers, get those credit cards canceled, make sure any false charges get handled. 381 00:28:20,440 --> 00:28:23,320 And then they also passed it off to their network of banks. 382 00:28:23,420 --> 00:28:28,640 And so just that single major bank, they were able to help over 80,000 people, which is wild. 383 00:28:29,660 --> 00:28:32,520 And then with that, they also got me in touch with the U.S. 384 00:28:32,520 --> 00:28:33,520 Postal Inspector's Office. 385 00:28:33,520 --> 00:28:36,680 They had a contact in their cyber crimes division there. 386 00:28:36,780 --> 00:28:51,160 And so working with the postal inspectors, I was able to share that admin data along with the victim data and a chat export of my conversation with Wangdu Yu because I had gotten some interesting information from him in regards to the case that they were doing. 387 00:28:51,880 --> 00:29:01,320 One thing that they had mentioned, so the bank along with the postal inspector's office, is that it's really hard to identify victims in this case because there's so many different ways your credit card can get stolen. 388 00:29:01,700 --> 00:29:12,740 And having this like hard evidence, I don't know if, it's probably not admissible in court, but having this hard link between this is where you entered your credit card and they're known for stealing your credit card. 389 00:29:12,740 --> 00:29:13,960 So there you go. 390 00:29:13,960 --> 00:29:16,060 You can just link the two together directly. 391 00:29:16,600 --> 00:29:17,860 Investigation seems to be ongoing. 392 00:29:17,860 --> 00:29:19,040 There's been no update. 393 00:29:19,460 --> 00:29:27,800 If any of you have read the Wired article that was posted just a few days ago, Matt Bruges from Wired, he talks to the postal inspector's office. 394 00:29:27,800 --> 00:29:30,000 They say the investigation is ongoing. 395 00:29:31,860 --> 00:29:34,120 And so how do we fix this issue? 396 00:29:35,000 --> 00:29:40,900 Other than manning the middle on every text message, don't do that by the way. 397 00:29:41,520 --> 00:29:45,640 I'm not an expert in any of these fields, so SMS, iMessage, iOS, Android. 398 00:29:46,480 --> 00:29:50,040 But I think some better client side filtering needs to be done. 399 00:29:50,040 --> 00:29:52,500 So obviously, I'm going to say the buzzword AI. 400 00:29:52,920 --> 00:29:54,620 AI can actually be helpful in this. 401 00:29:54,680 --> 00:29:58,360 Identifying, hey, why is USPS texting you in the first place? 402 00:29:58,360 --> 00:30:03,420 And secondly, why are they linking you to this site that's obviously not the USPS's official site? 403 00:30:04,780 --> 00:30:08,520 So some third party integrations are actively doing stuff like this. 404 00:30:08,520 --> 00:30:14,220 So one example, I don't use them, this is just something I found, is Truecaller does something similar. 405 00:30:14,220 --> 00:30:19,200 And you can just integrate it into your, at least iOS and I assume Android as well. 406 00:30:19,940 --> 00:30:21,920 And they'll just do that filtering for you. 407 00:30:22,480 --> 00:30:25,740 So with that, that concludes my presentation. 408 00:30:25,840 --> 00:30:27,040 Thank you DEF CON. 409 00:30:27,080 --> 00:30:28,120 It's been amazing.