WEBVTT

00:02.620 --> 00:03.880
Good morning.

00:04.900 --> 00:06.380
Hey, how is everyone doing?

00:07.900 --> 00:09.520
Excited to be here, second day.

00:10.160 --> 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.

00:21.460 --> 00:24.120
So to start off, just going to cover a little bit about who I am.

00:24.120 --> 00:26.020
So I work full time as a red team operator.

00:26.060 --> 00:30.660
I recently graduated university, first full time job, kind of lucky with that.

00:31.680 --> 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.

00:41.100 --> 00:45.480
And I also recently founded a company, Phantom Security Group, with a friend of mine.

00:47.080 --> 00:51.820
So, who here, show of hands, got one of these text messages?

00:52.460 --> 00:53.420
Okay.

00:54.840 --> 00:55.600
Okay.

00:55.980 --> 00:57.480
A little bit more than I expected.

00:57.480 --> 01:00.480
I expected a good amount, but yeah.

01:00.540 --> 01:01.820
How did this all start?

01:02.720 --> 01:07.460
Just one of those text messages that you just saw on screen, that most of you got it seemed.

01:09.420 --> 01:13.560
And that text message was just sent to the wrong man's wife.

01:14.200 --> 01:15.940
My wife, as it so happens.

01:15.940 --> 01:18.820
And she unfortunately fell victim to this scam.

01:19.300 --> 01:22.540
And then just a few days later, I got that text message.

01:23.000 --> 01:29.140
And I'm sitting there, I'm bored, we're on winter break, between semesters, and I love hacking web apps.

01:29.400 --> 01:32.140
And what did that text have in it?

01:32.640 --> 01:34.400
A link to a web app.

01:34.960 --> 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.

01:41.400 --> 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.

01:54.400 --> 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.

02:07.120 --> 02:09.880
And this is where they start, the scammers start collecting your data.

02:10.340 --> 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.

02:18.460 --> 02:22.420
So I loaded up Burp suite, community edition of course, I'm not rich.

02:23.620 --> 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,

02:36.460 --> 02:39.000
it was on the same server, for some of them it wasn't.

02:40.080 --> 02:41.620
And that became my new target.

02:42.260 --> 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.

02:47.960 --> 02:50.160
And I was like, why is there WebSockets going on?

02:50.160 --> 02:54.240
Why did they set up WebSockets just to give us a static HTML page?

02:54.240 --> 02:56.720
There's no reason to do that.

02:56.740 --> 03:00.920
But, that turned out to be one of the scammers' first of many mistakes.

03:01.380 --> 03:07.760
And that's because, by doing a simple path traversal, you could grab any file on the system basically.

03:07.760 --> 03:12.420
So like, it was just as simple as dot dot slash, dot dot slash, etc.

03:12.420 --> 03:14.200
You get the point.

03:14.640 --> 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.

03:25.380 --> 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.

03:39.240 --> 03:44.820
So, looking around, very little, as I said, but I did find the access logs for this server.

03:45.400 --> 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.

03:51.140 --> 03:54.960
But this one, I got lucky and I was able to actually pull down the file.

03:56.040 --> 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.

04:05.020 --> 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.

04:12.360 --> 04:17.700
So, in this example, the file name argument is used to grab gift.png on the left.

04:18.500 --> 04:27.360
But if there's not proper sanitization of user input, then an attacker can just grab any file from the system.

04:27.680 --> 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.

04:38.760 --> 04:41.160
So, et cetera, password in this case.

04:42.100 --> 04:47.240
So now that we're caught up on web application testing, let's get to the access logs.

04:47.660 --> 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.

04:56.940 --> 04:59.000
Some people might be familiar with it.

04:59.000 --> 05:05.080
It's a Chinese software for server administration through a web app.

05:05.200 --> 05:09.100
And that btpanel software uses phpMyAdmin.

05:09.520 --> 05:16.540
And looking at the, you can see the IP address of the scammer accessing that phpMyAdmin endpoint.

05:16.540 --> 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.

05:27.000 --> 05:31.620
And also it's returning a 200 okay status code to that, which means it actually exists.

05:31.620 --> 05:32.920
That endpoint is real.

05:35.360 --> 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.

05:43.300 --> 05:48.900
After that, obviously just did an Nmap scan of the web application.

05:49.620 --> 05:51.440
Just got to get some scanning started.

05:51.440 --> 05:53.140
And two open ports.

05:53.260 --> 05:58.520
443 obviously for HTTPS and so we need that open to access the site.

05:58.520 --> 06:01.280
And then also 21 for FTP.

06:01.280 --> 06:03.160
And that was kind of weird to me.

06:03.200 --> 06:05.300
FTP is slowly dying.

06:05.960 --> 06:07.300
1970s I think.

06:07.920 --> 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.

06:17.960 --> 06:19.520
Also tried brute forcing.

06:19.640 --> 06:20.960
That didn't work out.

06:21.320 --> 06:23.900
So I had to get back to the web application.

06:24.640 --> 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.

06:37.960 --> 06:45.060
So you can just collect them that way instead of having to go look online, find different scammers.

06:45.060 --> 06:48.220
But this all links back to this IP address, this web application here.

06:48.880 --> 06:50.820
But this was interesting information.

06:50.820 --> 06:54.860
It wasn't an RCE or anything I was looking for like SQL injection or something like that.

06:54.860 --> 06:56.580
I wanted to take over this app.

06:56.580 --> 06:58.920
I didn't want to get information disclosure.

07:00.360 --> 07:03.840
So I had read access to the file system.

07:03.980 --> 07:05.740
The path traversal.

07:05.800 --> 07:08.420
I had a bunch of different domain names linked back to the web app.

07:08.680 --> 07:14.440
And I had to figure out like a little bit about how the back end works with that path traversal vulnerability.

07:14.580 --> 07:19.780
But I didn't really have any admin data besides the IP's access and the access logs.

07:20.180 --> 07:21.460
And no victim data at all.

07:21.460 --> 07:23.820
I didn't know who was being scammed exactly.

07:24.080 --> 07:26.440
General guess just of who it was.

07:26.520 --> 07:28.400
But I had to dig deeper.

07:28.500 --> 07:30.860
And try harder is offset you might say.

07:31.480 --> 07:33.040
Don't kill me for saying that.

07:34.280 --> 07:35.960
Yeah, so I did just that.

07:35.960 --> 07:36.840
Try harder.

07:37.020 --> 07:38.700
And this led to a breakthrough.

07:39.240 --> 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.

07:45.520 --> 07:50.260
But it was a blind unauthenticated time based SQL injection vulnerability.

07:50.560 --> 07:55.120
Which in short is a really slow dump of a database.

07:55.360 --> 07:56.760
Very, very slow.

07:57.060 --> 08:03.340
And the way I was able to find this is just simple single quotation in an argument.

08:03.680 --> 08:05.940
And it returned a 200 okay status code.

08:05.940 --> 08:07.540
Not like a 500 error.

08:07.540 --> 08:08.780
Which is what you would expect.

08:08.780 --> 08:12.280
But in the message returned it said error.

08:12.380 --> 08:15.000
Which none of the other responses did.

08:15.080 --> 08:17.800
When you insert a colon in there.

08:17.800 --> 08:20.520
Or colon single quote whatever you're testing with.

08:21.120 --> 08:22.480
So yeah.

08:22.780 --> 08:25.380
Dumped the database for that domain.

08:26.480 --> 08:28.600
Some interesting tables in there.

08:28.900 --> 08:30.980
Dumped some of the contents of those tables.

08:32.140 --> 08:36.000
And looking at those tables, config was actually surprisingly boring.

08:36.220 --> 08:40.300
Most of the data in there was just what type of credit cards are you taking in.

08:40.300 --> 08:42.640
An activation key for the kit itself.

08:43.480 --> 08:45.200
Some other things like that.

08:45.540 --> 08:48.840
User info and records were encrypted blobs.

08:48.840 --> 08:50.280
So I tried dump and dump.

08:50.740 --> 08:53.020
And no luck.

08:53.580 --> 08:56.440
It just doesn't work with time based blind injections.

08:56.780 --> 08:58.280
Very hard, very slow.

08:58.280 --> 09:00.880
And also there was a ton of data in them.

09:01.280 --> 09:03.880
And then that left us the admin table.

09:04.260 --> 09:06.900
So in the admin table there was encrypted user names.

09:07.360 --> 09:10.940
Encrypted tokens like session tokens, login tokens.

09:11.080 --> 09:13.880
Hash passwords looking like MD5.

09:13.880 --> 09:16.220
Some permission levels one through four.

09:16.280 --> 09:20.880
And unencrypted last login times and IP addresses.

09:20.880 --> 09:22.520
For those admin users.

09:22.520 --> 09:23.720
That was awesome.

09:24.020 --> 09:26.680
So can anyone guess the country?

09:28.280 --> 09:29.080
China.

09:31.500 --> 09:32.720
You're so smart.

09:33.340 --> 09:34.160
It was China.

09:34.280 --> 09:37.560
And this IP address up here happens to be from the Shanghai region of China.

09:38.520 --> 09:42.180
Yeah, this is when I went ahead and published my first blog post.

09:42.180 --> 09:44.080
So I have two blog posts on this.

09:44.440 --> 09:45.840
The first one was published.

09:46.020 --> 09:47.400
I didn't really know it was a kit.

09:47.400 --> 09:51.560
I knew it was just a scammer site that they had set up.

09:51.560 --> 09:53.860
I didn't know there was a bunch more out there.

09:54.520 --> 09:59.360
And so I started looking through some of this data because I had a bunch .

09:59.540 --> 10:03.900
But again, I wanted to access the admin portion of the site.

10:04.680 --> 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 .

10:13.400 --> 10:17.600
Going to that telegram profile you see this is WangduU0.

10:18.100 --> 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.

10:32.780 --> 10:39.120
And in this telegram channel we can see some demo videos of this kit that they're selling.

10:39.540 --> 10:42.060
How to posts to set up the kit.

10:42.480 --> 10:44.880
Announcements of how secure the product is.

10:44.880 --> 10:45.860
It's super secure.

10:45.860 --> 10:49.660
No one is taking your victims, your account credentials, et cetera.

10:50.040 --> 10:51.940
And then some stuff like this.

10:55.780 --> 10:57.020
Oh, you can't hear it.

10:59.240 --> 11:00.340
There's no audio.

11:00.340 --> 11:00.940
Okay.

11:01.500 --> 11:03.120
It's got some hype up music.

11:10.540 --> 11:11.420
Yeah.

11:11.460 --> 11:12.080
Who is this?

11:12.080 --> 11:13.660
Who is posting these videos?

11:13.660 --> 11:14.940
Who is making this kit?

11:15.280 --> 11:19.860
That's that WangduU0 character that we first found a link for.

11:20.020 --> 11:22.740
And so I actually got to chatting with him on telegram.

11:22.740 --> 11:27.000
I was pretending I was a ‑‑ which country I said I was.

11:27.060 --> 11:29.660
But I was obviously using Google translate to talk to him.

11:29.660 --> 11:32.880
So I had to say I didn't speak Chinese and all that.

11:33.140 --> 11:36.700
But got out of him that he's a current computer science student in China.

11:36.700 --> 11:41.580
At least at the time of talking to him it was about January time frame of this year.

11:41.860 --> 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.

11:47.880 --> 11:56.880
And along with him, there's some other members of the group that do graphic design, web developers of course.

11:57.460 --> 12:01.620
And I got that information from a company called RE security.

12:01.760 --> 12:08.560
And it turns out, so when Googling the WangduU0 character, two blog posts from RE security popped up.

12:08.940 --> 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.

12:21.480 --> 12:30.660
And so, cool.

12:30.660 --> 12:31.560
Thank you.

12:32.380 --> 12:40.220
Yeah, the submission triad, they had found some various vulnerabilities in the USPS kit beforehand.

12:40.460 --> 12:44.140
And so they had also found a similar SQL injection vulnerability in the kit.

12:44.140 --> 12:49.600
But the author of the kit had read their blog, patched the vulnerability, started encrypting data.

12:49.600 --> 12:55.040
He also added captchas to log ins for admins, like a bunch of other security features.

12:55.100 --> 12:57.220
But we're getting into how we bypassed all that.

12:57.220 --> 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.

13:07.720 --> 13:08.820
So I'm broke.

13:08.820 --> 13:11.260
These kits cost $200 a month.

13:11.740 --> 13:13.180
And I'm not paying that.

13:14.000 --> 13:14.940
Like, no.

13:15.200 --> 13:18.040
So, also I can't support scammers.

13:18.060 --> 13:19.380
So, that's another thing.

13:19.380 --> 13:21.400
But yeah, so I begged them.

13:21.820 --> 13:25.900
They get back to me and they're like, hey, can we read about what you've done?

13:25.900 --> 13:28.320
Can you tell us a little bit about what you're looking into?

13:28.580 --> 13:32.260
Talked back and forth and they were kind enough to send over the kit for free.

13:32.940 --> 13:37.220
And so, unzipping the kit, one of the first things I noticed was default credentials.

13:38.300 --> 13:41.520
Admin and the password of 1, 2, 3, 4, 5, 6.

13:43.060 --> 13:46.240
And then when you log in for the first time, you don't have to change it.

13:46.740 --> 13:49.340
So, that makes it nice and easy for us.

13:49.960 --> 13:54.740
And I will mention about 20% of the kits I ended up finding still had those default credentials.

13:56.280 --> 13:57.920
The thing was the hashes.

13:58.060 --> 14:00.000
So, it looked like MD5.

14:00.000 --> 14:01.200
I presumed it was MD5.

14:01.200 --> 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.

14:07.000 --> 14:08.980
So, I knew there was something going on.

14:08.980 --> 14:10.900
There was some salt being added.

14:10.940 --> 14:16.720
Maybe it was some similar algorithm that I just didn't know about.

14:16.840 --> 14:21.080
The issue was, looking at the code, it was gross.

14:21.600 --> 14:23.620
Like, not even human readable.

14:24.780 --> 14:27.180
Very highly obfuscated PHP code.

14:27.940 --> 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.

14:35.780 --> 14:42.880
And also, it had multiple times it was checking where, checking to see if it was being debugged.

14:43.040 --> 14:45.460
And so, I just couldn't find a way.

14:45.460 --> 14:49.620
I spent multiple days trying to de-obfuscate the code in there.

14:49.860 --> 14:56.240
That's when a friend of mine, actually up here in the first row, suggested using a technique called eval hooking.

14:56.800 --> 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.

15:08.700 --> 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.

15:17.020 --> 15:21.060
And so, you can see some of my notes here, and the variable names are disgusting, gross.

15:21.620 --> 15:25.420
But up in the middle, there's little comments added after them.

15:25.420 --> 15:29.800
And you can see that the user names are being encrypted with AES-128-CVC.

15:30.520 --> 15:38.700
And they're using the key of WDY-666666, just the mean length requirements.

15:38.980 --> 15:43.060
And then the ID of AES-128-WANG-DU8.

15:43.400 --> 15:48.760
And so, he loves using his own name in these passwords and stuff.

15:49.840 --> 15:51.860
So now the passwords were a bit trickier though.

15:51.860 --> 15:53.860
It took a little bit longer to figure out.

15:53.920 --> 15:56.760
And the passwords were appended with a salt.

15:57.120 --> 16:02.260
So, WANG-DU-U, again, more sixes, and then special characters.

16:02.620 --> 16:05.460
And then after that, they were hashed three times using empty five.

16:06.260 --> 16:08.180
The gold standard for hashing algorithms.

16:08.180 --> 16:13.140
I know, it's 20, he wrote it in 2023, so, like, yeah.

16:13.140 --> 16:16.260
I don't know what he's learning in school, but, yeah.

16:17.060 --> 16:18.720
Then also we look at the activation.

16:18.720 --> 16:26.060
So, looking into the kit, I noticed that when I would, like, spin up the server, it would check its activation.

16:26.820 --> 16:32.560
And so, this is some basic C4 encoded, well, hex and then basic C4 encoded data.

16:33.080 --> 16:41.260
And he hardcoded his IP address for his admin server, like, right there in the code.

16:41.260 --> 16:43.740
So, that's his IP address.

16:43.740 --> 16:48.020
I haven't checked recently if it's still up, but you can go say hi to him.

16:49.960 --> 16:51.620
But also, he was double dipping.

16:51.620 --> 16:53.860
So, he's charging 200 bucks a month for this kit.

16:53.940 --> 16:57.680
He makes tons of reassurances that he's not stealing their information.

16:57.680 --> 16:59.080
No one else is stealing their information.

16:59.080 --> 17:03.300
But every time an admin logs in, it sends their login token to him.

17:05.380 --> 17:12.060
So, he can just log in as that user and take their victim data along with their 200 bucks a month.

17:12.100 --> 17:15.060
So, no honor.

17:16.220 --> 17:16.700
But, yeah.

17:16.700 --> 17:20.400
So, now we have the method for caching of the passwords.

17:20.660 --> 17:26.900
And so, I go ahead and make a go tool, a little quick go tool to crack those passwords.

17:27.420 --> 17:30.860
And you can see my command line up there.

17:31.000 --> 17:36.060
It's kind of small up here, but just using Rocky against the hashes and printing them out.

17:36.060 --> 17:38.980
So, you can see, like, 1, 2, 3, 4, 5, 6, obviously, the default.

17:39.080 --> 17:45.480
But, like, straight zeros, 1, 2, 3, 1, 2, 3, 1, 2, 3, 3, 2, 1, admin, 3, 3, admin, etc.

17:45.480 --> 17:47.300
All these really easy passwords.

17:47.300 --> 17:50.080
But, obviously, it's Rocky, so it's only going to crack the easy ones.

17:50.480 --> 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.

17:57.980 --> 18:04.420
And so, I had to add normal password cracking techniques to crack them.

18:04.420 --> 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.

18:11.880 --> 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.

18:20.860 --> 18:25.200
And then, I also needed a new word list for this, because they're mostly Chinese based.

18:26.060 --> 18:32.280
So, I needed a word list that wasn't Rocky, because Rocky is English, obviously, for the most part.

18:32.680 --> 18:35.380
And most other word lists are, like, English, French, that sort of thing.

18:35.520 --> 18:41.960
There's not many Asian word lists out there for a lot of Asian languages.

18:42.220 --> 18:45.700
So, the one I ended up choosing was the Keonashi word list.

18:45.700 --> 18:49.040
It was one of the only word lists I could find, actually, for this.

18:49.080 --> 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.

18:56.580 --> 19:02.900
So now, we have decrypted usernames, we have cracked passwords, we can just log into these panels, right?

19:03.160 --> 19:06.540
Oh, and this is, like, this is the default admin, like, login screen.

19:07.080 --> 19:09.120
But no, you can't do that.

19:09.120 --> 19:14.160
The majority of those admin panels actually have wait lists set up for IP addresses.

19:14.160 --> 19:16.280
Okay, that's pretty good.

19:17.120 --> 19:21.360
Luckily for us, though, like, some of them just didn't set it up.

19:21.360 --> 19:25.940
So, we were able to test this out on a few different panels, three to be exact.

19:26.240 --> 19:32.840
And you enter using a password and solve the CAPTCHA, and then you just log in.

19:33.440 --> 19:36.000
So, this is the inside of the panel, this is the main dashboard.

19:36.480 --> 19:40.440
They got nice statistics, numbers, everything.

19:41.320 --> 19:45.820
And who doesn't love Excel or CSV format and stuff?

19:46.560 --> 19:51.400
So, they have that and you can view the domain names that they were scamming people from.

19:52.420 --> 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.

20:06.200 --> 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.

20:17.240 --> 20:20.740
And those end points don't have the wait list on them.

20:20.740 --> 20:22.900
So, they're not protected at all.

20:23.080 --> 20:27.480
And so, all I had to do was just authenticate directly to those end points.

20:27.660 --> 20:31.380
So, here I'm just authenticating and getting the login token.

20:31.800 --> 20:35.240
And here, this is just access in the data for the home panel.

20:35.240 --> 20:37.920
So, overall statistics for how many phishes.

20:38.060 --> 20:42.920
So, it looks like all records, this one had like 9,200 victims, it looks like.

20:43.460 --> 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.

20:49.600 --> 20:51.720
So, I automated the process.

20:51.720 --> 20:54.200
And here, we'll show a little demo of it.

20:54.380 --> 20:55.600
So, the capture pops up.

20:55.600 --> 20:59.680
I couldn't really find a bypass for the capture, so I had to solve it manually, unfortunately.

21:00.140 --> 21:02.680
Enter the capture, it goes through, dumps that data for me.

21:02.680 --> 21:08.180
And so, this kit that I just dumped there had 28 victims, so really small, brand new one.

21:08.720 --> 21:13.360
And then, this one we're about to have is going to have over like 5,000 victims in it.

21:14.380 --> 21:17.440
So, here, dumps the pending victims, complete victims.

21:17.920 --> 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.

21:25.800 --> 21:34.780
And so, I would have to dump like 1,000 a page and then iterate through however many pages it was.

21:35.280 --> 21:37.740
And so, there we go, that's the recording.

21:37.820 --> 21:42.620
But, like 48 pending victims and 4,900 something completed victims.

21:43.980 --> 21:45.140
But we need more targets.

21:45.140 --> 21:46.600
So, I had the automation set up.

21:46.600 --> 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.

21:54.960 --> 21:56.380
So, I crowd sourced.

21:56.380 --> 21:58.960
I set up a site for people to submit URLs to.

21:59.300 --> 22:02.740
And it would grab, so there's a static JavaScript config file in there.

22:02.740 --> 22:07.120
I could grab that like C2 domain from that file.

22:07.260 --> 22:10.120
And that just makes my life easier.

22:10.120 --> 22:13.320
But also, I found a bunch of URLs here.

22:15.680 --> 22:21.100
So, r slash scams on Reddit, people posted screenshots of their text messages.

22:21.260 --> 22:26.340
So, I had to hand jam those URLs in, which is unfortunate, but it was okay.

22:27.200 --> 22:29.700
But yeah, just hand jam those URLs in.

22:30.000 --> 22:35.200
And one thing I also noticed when going through our shot scams, there was a copycat campaign going on.

22:37.320 --> 22:40.040
And this copycat campaign was interesting to me.

22:40.840 --> 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.

22:48.000 --> 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.

22:56.960 --> 22:58.580
So, like WebSockets, for example.

22:58.860 --> 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.

23:08.320 --> 23:10.740
So, that was interesting.

23:10.840 --> 23:13.300
Didn't really end up exploiting this campaign.

23:13.680 --> 23:17.160
Just targeted the submission triads one, but something of note.

23:18.280 --> 23:24.120
So now, I was gathering those URLs from different places, and this was the process that I would go through.

23:24.120 --> 23:29.920
I would extract the admin panel URL from that static JavaScript config file.

23:30.120 --> 23:34.880
I would exploit that time-based SQL injection against that domain.

23:35.020 --> 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.

23:45.160 --> 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.

23:52.280 --> 23:57.060
So now, after doing all this, got some interesting statistics.

23:58.060 --> 24:01.880
So, this is my chat GPT generated infographic.

24:03.520 --> 24:04.740
Look at that.

24:05.720 --> 24:11.340
But total times data was entered, so this is times credit card was entered.

24:11.400 --> 24:16.060
So, 1.2 million times a credit card was entered into this site.

24:16.060 --> 24:18.180
So they went through the whole process to enter a credit card.

24:18.440 --> 24:22.320
The total unique credit cards though was 438,000.

24:23.420 --> 24:25.940
Unique IPs, 73,000.

24:26.880 --> 24:29.140
Unique emails used 54,000.

24:29.140 --> 24:35.200
And then domains used by the scammers, they used over 1,100 domains, which is crazy.

24:36.240 --> 24:38.360
The thing is, this isn't even all the data.

24:38.360 --> 24:39.740
This is the ones I was able to find.

24:39.740 --> 24:41.500
There's more, there was more out there.

24:41.500 --> 24:44.480
They go up and down all the time, getting taken down.

24:44.800 --> 24:49.000
So, the numbers are much larger than this probably.

24:49.940 --> 24:55.720
So now, looking at those admin logins, we can do a simple map of their IP addresses.

24:56.100 --> 24:57.620
You can see where they're logging in from.

24:57.620 --> 25:00.440
We've got some interesting statistics on this.

25:00.500 --> 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.

25:06.980 --> 25:09.160
There are some people logging in from the U.S.

25:09.160 --> 25:11.540
that aren't from publicly known proxies.

25:13.920 --> 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.

25:23.980 --> 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.

25:33.580 --> 25:37.340
And then also some down in the Philippines and those islands.

25:39.160 --> 25:41.040
Now, mapping the victims the same way.

25:41.140 --> 25:43.200
This was wild.

25:44.260 --> 25:45.940
So, yeah.

25:46.160 --> 25:50.680
I mean, it's USPS, so obviously a ton in the U.S., but also a ton throughout the world.

25:51.300 --> 25:56.660
I'm going to guess this is a combination of people testing out those random links and also tourists.

25:56.660 --> 26:00.480
So people traveling, they get those text messages and enter their data that way.

26:01.120 --> 26:04.600
Zooming in on the U.S., it's basically a population density map.

26:04.980 --> 26:07.640
So tons around the East Coast, obviously.

26:08.000 --> 26:14.020
It's a little thin throughout the Midwest and then SoCal and up in Washington, Oregon.

26:14.020 --> 26:16.500
And also cluster out in Hawaii.

26:17.120 --> 26:19.920
So yeah, a lot of IP addresses there.

26:20.520 --> 26:21.700
More infographic.

26:22.260 --> 26:23.940
Let's look at the top three states.

26:23.940 --> 26:27.380
California was number one with 141,000 victims.

26:27.580 --> 26:31.660
Texas had 119,000 and Florida had over 100,000.

26:32.100 --> 26:38.920
Top three email domains used, Gmail was way at the top with 93,000.

26:38.980 --> 26:41.380
iCloud with 15 and Yahoo with 12.

26:42.240 --> 26:45.180
And then other stats.

26:45.280 --> 26:51.740
So the average credit cards entered, out of this 1.2 million entries, on average people entered 2.48 credit cards.

26:51.740 --> 26:53.240
So almost rounding up to three.

26:53.400 --> 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.

26:59.100 --> 27:01.340
And so people would just keep entering credit cards.

27:01.740 --> 27:03.680
I saw six credit cards for some of them.

27:03.680 --> 27:04.660
It was crazy.

27:05.440 --> 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.

27:14.140 --> 27:17.140
Also you can see the number of .edu emails in there.

27:17.140 --> 27:22.500
So a lot of professors, staff at universities, students obviously, so 471 there.

27:22.640 --> 27:26.740
Some people were using the .mil email addresses, which I was kind of surprised about.

27:26.740 --> 27:31.020
So 3.mils in there and 17.govs, federal employees.

27:32.860 --> 27:34.320
So what happened with all this data?

27:34.320 --> 27:37.880
I had all this 1.2 million victim records here.

27:38.700 --> 27:40.340
I started looking for some help.

27:40.400 --> 27:43.460
So no one really wanted to reach back out to me.

27:43.460 --> 27:50.540
So I reported through Internet Crime Center's online forum and the FBI reported tip or whatever.

27:50.540 --> 27:52.460
And the postal inspectors, I emailed them.

27:52.560 --> 27:56.880
And no one really reached out until the banks did.

27:57.160 --> 28:02.740
One of the major bank's threat intelligence teams had read my blog on LinkedIn or something.

28:03.280 --> 28:07.660
And they got in touch with me, set up a meeting with their team.

28:07.680 --> 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.

28:20.440 --> 28:23.320
And then they also passed it off to their network of banks.

28:23.420 --> 28:28.640
And so just that single major bank, they were able to help over 80,000 people, which is wild.

28:29.660 --> 28:32.520
And then with that, they also got me in touch with the U.S.

28:32.520 --> 28:33.520
Postal Inspector's Office.

28:33.520 --> 28:36.680
They had a contact in their cyber crimes division there.

28:36.780 --> 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.

28:51.880 --> 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.

29:01.700 --> 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.

29:12.740 --> 29:13.960
So there you go.

29:13.960 --> 29:16.060
You can just link the two together directly.

29:16.600 --> 29:17.860
Investigation seems to be ongoing.

29:17.860 --> 29:19.040
There's been no update.

29:19.460 --> 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.

29:27.800 --> 29:30.000
They say the investigation is ongoing.

29:31.860 --> 29:34.120
And so how do we fix this issue?

29:35.000 --> 29:40.900
Other than manning the middle on every text message, don't do that by the way.

29:41.520 --> 29:45.640
I'm not an expert in any of these fields, so SMS, iMessage, iOS, Android.

29:46.480 --> 29:50.040
But I think some better client side filtering needs to be done.

29:50.040 --> 29:52.500
So obviously, I'm going to say the buzzword AI.

29:52.920 --> 29:54.620
AI can actually be helpful in this.

29:54.680 --> 29:58.360
Identifying, hey, why is USPS texting you in the first place?

29:58.360 --> 30:03.420
And secondly, why are they linking you to this site that's obviously not the USPS's official site?

30:04.780 --> 30:08.520
So some third party integrations are actively doing stuff like this.

30:08.520 --> 30:14.220
So one example, I don't use them, this is just something I found, is Truecaller does something similar.

30:14.220 --> 30:19.200
And you can just integrate it into your, at least iOS and I assume Android as well.

30:19.940 --> 30:21.920
And they'll just do that filtering for you.

30:22.480 --> 30:25.740
So with that, that concludes my presentation.

30:25.840 --> 30:27.040
Thank you DEF CON.

30:27.080 --> 30:28.120
It's been amazing.

