start	end	text
0	5220	Also, he's going to be speaking about finding hidden gems in temporary mail services.
5220	9620	His name is Ben Bergkahn. He's a pen tester and red teamer.
9620	13140	Previously, he has worked in many things.
13140	19040	Now, I will get him on the stage and let him enjoy the presentation.
19760	21960	Let's give him a round of applause!
30440	33960	So, thank you everyone for coming to this session.
33960	36800	I'm really excited to be here at DEF CON 2021.
36800	40520	So, in this session, I'm going to talk about temporary mail services
40520	44200	and how we can find good gems in those services.
44580	48640	And before that, I want to thank my teammate, Berat Gokartislar.
48640	52280	He's one of the other idea fathers of this project.
53400	57640	My name is Berk, and I'm a penetration tester and a red team entry assist.
57840	61520	And I'm currently working at SecArmy Ltd. as a security consultant.
61900	65660	I'm also a member of Cobalt's core team and a signer grade team.
65660	68160	And I'm a festival fan and a gym rat.
68880	72720	So, let's talk about the main topics of my presentation.
73440	78100	Temporary mail services, also known as disposal email services,
78100	81400	are generally free email services that allow you to receive emails
83660	88640	at a temporary address that self-destructs after a certain time elapses.
88720	92980	While some temporary mail services are public and open for everyone,
92980	97860	and others offer paid private services.
98660	101760	So, what are the pros for temporary mail services?
101760	105580	So, it's a short lifespan, automatically delayed email addresses
105580	109380	and all associated messages after a set of time,
109380	111140	and no long-term commitment.
111140	115520	Users don't have to sign up or provide any personal information
115520	118240	to use a temporary email address.
118580	122120	And anonymity, they allow users to receive emails
122120	125940	without revealing their personal email addresses.
126800	135800	But it should be noted that the mails are hosted on the servers on these services.
135800	140840	So, the mails you receive can be accessible from the service providers
140840	145800	and we don't know if they actually destroy the emails really or not.
145860	147740	So, this is up to them.
150400	153240	Cons about spam avoidance.
153240	158300	So, according to the services, incoming mails are said to be safe
158300	161420	because they pass through the spam filter of their own.
161620	165540	But this protection can be okay for newbies, but for the experienced hackers
165540	168800	or the red teamers, it's not working well.
169280	170980	And public accessibility.
171380	175460	Many temporary mail services reveal inboxes to the public.
175460	183080	This means that anyone can access all the emails that have been received by that inbox.
183480	188360	While these features provide ease of access, it also poses significant privacy risks
188360	191840	if sensitive information is sent to this address.
192160	195960	And this title is going to be our main target in this presentation.
196300	198340	So, story about this presentation.
199060	206780	Just another day, just for a silly application, in a regular time, I tried to get an email
206780	209060	and I used temporary mail.
209100	214020	And I noticed that someone had linked an account from a shopping website.
214020	221580	And after I received this password from email, I realized that there's money inside this user.
222040	225100	And there's live orders inside it.
225100	231840	So, I wondered if such things were common, and I realized that there are tons of similar situations.
231840	236080	Then I wanted to dig deep about the situation and start my research.
236580	245520	So, most temporary mail services, the most popular ones, are temper.email, mailplus, mailend, disbustable.
245560	252320	These are all the public inboxes, and you can just access these inboxes.
253100	255440	And what are these gems?
256060	263000	So, people use these temporary email services for business emails.
263000	270400	In addition to that, Spotify, Netflix, Facebook, Twitter, Instagram, YouTube, Amazon, Aliexpress, Discord,
270400	277800	AT&T, Grammarly, TikTok, OnlyFans, Bitcoin accounts, and even porn accounts, and lots of public information.
277800	284900	And patients, of course, and many, many more, they are using these services to get these services.
285940	291360	And also, I noticed that the marketing emails from numerous Viagra sellers and dating apps,
291360	295840	additionally, there were emails from pornographic sites.
295880	301600	Also, in pornographic emails, the IP addresses from which a user logged in can be leaked.
301600	308500	So, I hope that the users who use temp mail services in their private life also use VPNs.
310200	323100	And you just need to go to one of these email boxes and just type A, double A, triple A, or 1 to see what mail is coming there.
323100	324460	So, it's easy.
324460	334800	In this case, people are lazy, so they just press A and press Enter and just get the inbox and just use these inboxes.
336000	349780	And the example accounts for that, there's a Spotify account, a Steam account, and for some specific web applications, it's about a dancing application.
349780	361200	And this user is using a temporary mail service, so I can reset the password, enter the account, and there's different kinds of information in this account.
361200	367000	Also, saved credit cards, and studio information, etc.
367800	373040	And also, Canopay and Temi accounts. Also, as you can see, someone uses Canopay.
373160	379120	And inside the mail, they inform the user about the Cashcard Reserve account, and Temi is a shopping website.
380280	391180	Also, I found a Discord account, but unfortunately, the user who uses this temporary mail service has a multi-factor authentication.
391360	396940	I just tried for one account, but if you are lucky, you can find another one.
398040	404340	Instagram addresses, so Instagram accounts, you can just reset the password, get into the account.
405340	414540	And also, AT&T prepaid cards here, Facebook accounts, Amazon Web Services.
414720	420610	And this is interesting, so I found hospital records in this temporary mail services.
420610	436610	So, there's a patient who is living in the United States, and you can see their diseases and why their applicant is rejected,
436610	443150	and which location they are going to, which hospital they are going to, which date, rejected date, etc.
443150	447630	You can see, this is all public, you can find in temporary mail services.
447630	459230	There's more, you can see in this mail, they added attachments, and I opened, and there's a lot of patient information here, as you can see.
459230	464970	A lot of secret information in public email services.
465730	468930	And more, yeah, you can see.
470890	477970	And also, I found Paxful. Paxful is a Bitcoin buying and selling application.
478490	487430	But, I'm suggesting you, if you want to hunt these accounts, like this, be sure that don't take over the account in the beginning of the registration.
487710	497550	Just note the email, for example, someone registered for Amazon AWS, just don't change the password immediately.
497550	503190	Just wait, note, and be sure about deleting the mail.
503190	508250	So, there's an option in the mail deletion, in the temp mail service.
508250	513830	So, delete the mail, note the email address, and wait maybe one week, maybe one month.
513830	523050	And then, just reset the password, get the account, and you can see there's maybe good gems inside this account, maybe money, or maybe servers.
523050	527530	But, if you do this in a registration part, there's nothing inside.
527530	531270	So, just be patient for that account.
532210	537810	And also, I found an OnlyFans account here, Premium.
538050	541870	Yeah, I don't prefer to use, but you can find Premium if you want.
541870	543490	And then, there's another one.
544730	551350	And someone just bought something, and there's an invoice in this mail services.
551350	561530	And in that invoice, you can see there's just name and surname and address information here, location information.
561570	563450	You can all find from here.
563450	569290	And if you are a good, skilled pen tester, you can just social engineering these people.
569290	573510	So, hey, Abdul, for example, this victim name is Abdul.
573670	579030	And you can say, hey, Abdul, these items, blah, blah, blah, that you ordered will be sent to this address.
579030	580350	You also know the address.
580810	582830	Blah, blah, blah, stuck in the custom.
582930	586010	So, you need to pay and bump payment link.
586010	588810	And all this information is verified, because we know that.
588810	591910	Name, surname, items, as you can see.
592770	595130	So, it's a good social engineering example.
597210	604990	You can see there's an example social engineering mail that you can just include a payment link,
604990	606830	maybe fake custom website.
606830	610590	The choice is Abdul attacker and depends on the scenario.
610910	615170	Alternatively, you can get other information with that type of attacks.
615450	620270	This method is very effective, because you have all the details about the order.
620270	621410	It appears legitimate.
622950	626510	And this is one of the interesting mails that I found.
626590	629170	It says, nice to see you, I'm glad to meet you.
629170	630270	I'm not married and have children.
631210	636710	Maybe you can find your perfect match in all these mail services.
636710	638090	It's up to you.
638770	641250	And also, still there's a lot of accounts.
641250	650610	So, as you can see, there's someone just signed up for the dynaxy.com as a BTC address, I guess.
650610	655430	And you can see the IP information and new password, Facebook account still.
656330	658690	There's tons of accounts in there.
658690	662670	You can get anything you want.
662750	669670	Also, there's another invoice thing from the right group, Financial Limited.
669810	673270	And it's about positions between Euro and Canadian dollar.
673550	677090	And as you can see, there's a previous ledger balance, something like 5K.
677090	678850	I never even imagined it was 4K.
678850	679770	I don't know.
679770	685870	Maybe there's inside money in this account, but I didn't want to go in this account.
685870	687470	Also, Netflix account.
688530	691530	And I found an application that did buy.
691670	696930	And when I entered, it said, you have nearly 69 Bitcoin.
697510	700730	Probably a fake website, but good one.
700730	702970	I will be very sorry if it's legit, by the way.
704370	708930	And PlayStation Plus accounts, maybe TikTok accounts.
709170	713910	And also, I found an information mail about the Temi website.
714990	717890	Your order has been canceled due to payment.
717890	719590	And I just wonder.
719650	722310	And I reset the password and go into account.
722950	726470	This is the reset password section.
726470	728490	And I get the OTP, just reset the password.
728490	732150	And I found the man called James Konda.
732650	735250	And there's a live order inside this account.
735250	737330	So I said, order in it.
737330	741850	And also saved credit card information and the address information.
741850	742790	Everything you need.
742790	744070	Just a live.
745590	752170	And about statistics, nearly 18,000 mail.
752610	756890	Most of the emails come from TikTok, Intelliverse, and Supercell.
756890	760550	However, as you can see, there are many other applications not listed there.
760550	764010	As including them will require numerous slides.
764010	768210	In summary, you can find all kind of accounts you want here.
770810	775130	And in these days, every information is invaluable.
775310	782550	And the software used by blue teams and cyber intelligence units for gathering information has now become highly advanced.
782670	795610	And for example, if your password has been leaked on any dark website or a public forum, the websites just notify you about your password as leaked.
795610	796670	Please change your password.
796670	801610	Even some websites are not waiting for a permission and change your password.
801710	803210	They generate a random password.
803210	807810	And after that, they say to you, I changed your password because your password is leaked.
809950	817130	And for my presentation, I wrote a Python script that's called Temple Mail Spy.
817130	821410	It just continues to recording and monitoring Temple Mail services.
821950	824950	And it can be used with the Telegram and Slack notification API.
824950	826990	It's fully customizable config.
827070	830070	And this has different modes.
830430	835310	This script can get all mails or just grab for a specific keyword.
836050	842330	For now, it's only using two mail services because these two are the most popular ones, Yelp Mail and TempMail.
842330	845130	But I will add more in the future.
845130	850670	Also, I will add proxy specification because some TempMail services has rate-limiting issues.
852570	855190	And as you can see, there's a customize option.
855190	859370	So, you just need to set a keyword here.
859370	860910	So, what do you want to know?
860910	865130	For example, Facebook or you want Amazon or maybe you are hunting Bitcoin wallets.
865130	870770	You just enter a Bitcoin and my script is going to monitoring continuously.
870770	875970	And if there's a mail that shows up like Bitcoin and you just grab the Bitcoin,
875970	878610	they just notify you from Slack or Telegram immediately.
878610	881610	There's an email here you can find.
882310	885490	So, these are the notification sections.
886730	895910	After the script is over, it saves you what the mails save you as output.
895910	904730	Mail link, mail sender, which mail service, from which mail service, get that mail, etc.
906250	915870	And now, I have an enjoyable and classified example about my presentation.
919950	926010	And just a regular day, I finish my script and I just run my script.
926010	929890	And my script just found an invoice, invoice link.
930110	933090	And I go to invoice, you can see here.
933510	939450	And in the invoice, in the left bottom, there's a PHP debugger icon.
939450	942630	And after I click that icon, I found a debugging page.
942630	948750	And I found some important credentials inside that one.
948750	951030	And I found some endpoints.
951610	957070	And I do more recon about the website.
957070	960410	And I found a slash admin endpoints.
960490	967530	And when I go there, also thanks to PHP debugger, I found a credential and I go to admin panel.
968990	976570	So, can you imagine that some guy just uses a temporary mail service for his admin panel.
976590	981490	So, I just enter the credential and it asks me OTP, but no problem.
981490	984770	So, it's temporary mail. So, I got the OTP from the temporary mail.
985070	988750	And I enter it and boom, I got the admin page.
988750	994770	Only I looked the temporary mail service and I got some interesting websites admin page.
994770	1004150	Okay. And I recon more and I realized that nearly 95% of the employees are using temporary mail services.
1004150	1005690	That's very interesting.
1005750	1008590	Everyone has a temporary mail. Yeah.
1009190	1012670	And also, this company has a client.
1012670	1015710	And you know that also this client uses temporary mail services.
1015710	1019310	So, they assign their clients a temporary mail.
1019310	1021630	Wow. Nice privacy.
1021630	1026910	And I recon more. I found server information in there.
1026910	1034810	And I access the database and get more information from here.
1034810	1040610	I found a mail username and password and API stuffs.
1040610	1044130	And I, as you can see, there's a mail username and password here.
1044130	1050730	And I just enter their mails live thanks to temporary mail services.
1050730	1056130	There's a lot of important stuff going on there.
1056130	1063050	For example, there's a Kenya export pronunciation and branding agencies.
1063050	1067290	Classified information I found here.
1067290	1071330	Some employee names, social security numbers, etc.
1071710	1076610	Government papers here I found.
1077690	1080570	I hope there's no FBI here or something.
1081330	1083650	This is educational purpose only.
1086270	1090170	And I use every user's information.
1090170	1093350	Company uses information and mail addresses.
1093810	1096710	And I go to some client's mails.
1096710	1099050	And there's invoices, live invoices.
1099050	1101390	Money is there.
1101390	1109770	And somehow I get a shell from that educational purpose company.
1112290	1118490	But you need to know that the relevant vulnerability has been reported to the company and has been remediated.
1118490	1124350	And during this research, no actions were taken that would harm the company's service and disrupt their operations.
1125670	1128670	And this is my shell. I'm passing this quick.
1128670	1130710	A lot of websites in it.
1130770	1133230	And every website is a different database.
1133290	1135650	As you can see, this is live.
1136010	1138610	Different environments, lots of information.
1138610	1140950	Database names, database passwords.
1141310	1147150	Also, JVT secrets and SSL case.
1147150	1148110	Everything.
1148790	1151690	More password, email name.
1152210	1153670	More temporary mail service.
1153670	1155890	Because everyone is using temporary mail service.
1155890	1160810	And I find someone in the database using another temporary mail service.
1160810	1161890	And I go there.
1161890	1162930	I get his account.
1162930	1164230	And I get a different website.
1164230	1166810	I just go to another admin panel.
1166810	1169110	I go to a different website.
1169170	1171870	Because everyone uses temporary mail service.
1172850	1173610	Yeah.
1173610	1179830	And this one is also another website that I found from the database.
1180870	1183070	And more logging applications.
1183070	1184230	This one is also different.
1184230	1186070	More tracking caches.
1186350	1188310	More information here.
1188310	1191930	There's also email username and password in it.
1191930	1194550	So, more emails.
1194550	1197390	More good stuff.
1198130	1199510	Payment links.
1199510	1201030	There's a live payment link.
1201030	1202410	Payment transactions.
1203170	1204930	API keys.
1205210	1207110	PayPal secrets.
1207110	1208330	Everything.
1208350	1210330	Credit card numbers.
1210330	1217590	And I just get this from just looking around some kind of temporary mail service called Yelp mail.
1217590	1218710	And I just found an invoice.
1218710	1220670	And this comes to here.
1220690	1222490	So, it's very interesting.
1222970	1224290	And more information.
1224290	1226750	See, I'm passing this fast.
1226930	1229150	More tracking caches.
1229150	1231750	And more temporary mail service.
1231750	1236090	And now I'm in a conclusion in this research.
1236770	1239390	I obtained hundreds of personal accounts.
1239390	1241150	Shopping accounts with money inside.
1241150	1242350	Patient information.
1242350	1243390	IP details.
1243390	1244130	Premium accounts.
1244130	1245510	Company information.
1245510	1247170	Company accounts.
1247170	1248330	Compromised accounts.
1248330	1250030	Compromised email accounts.
1250030	1251270	Credit card information.
1251270	1253750	Dozens of web applications.
1253750	1256210	Numerous databases containing live data.
1256210	1259150	Private and confidential API keys.
1259190	1260710	Passwords.
1260910	1263190	A little government document.
1263470	1264970	Email correspondences.
1264970	1267050	Secret payment system APIs.
1267290	1269070	Company bank accounts.
1269070	1270910	And SMS sending APIs.
1271250	1273230	Customer accounts with money in them.
1273230	1275170	And maybe more things in this.
1275170	1277450	But, I don't know.
1277450	1280110	I just report to them.
1280110	1283650	And I just finish the shell part.
1284010	1285610	Everything is remediated.
1285610	1287240	And there's a bonus part here.
1288000	1292440	So, I think maybe...
1292440	1294260	I'm looking for this...
1294260	1297060	I'm hunting this account.
1297060	1300880	And maybe there's more guys like me who are hunting this service.
1300880	1306440	So, I think that maybe I can create a phishing email for them.
1307020	1307920	Something like...
1307920	1312380	You can look your Bitcoin account here.
1312380	1316640	And I just write a BBC script here.
1317640	1320760	That's inside an Excel.
1320760	1322520	There's a macro in it.
1322520	1324970	And when someone opens that macro and allows...
1325220	1327640	Opens the Excel and allows the macro...
1328240	1336560	This script is just getting some environmental informations to my server.
1336560	1339740	And I have a domain called moobitcoin.com.
1339740	1342060	I just get domain for research purpose.
1342060	1350140	I'm saying that because I signed some papers that I bought from this domain.
1350140	1353020	Because they banned me in the first.
1353100	1355820	And I said, hey, I'm just using this for research purpose.
1355820	1358120	They sent me a paper and please sign.
1358120	1359440	Okay, I sign.
1359620	1362800	I'm not getting any credit card information from it.
1362800	1369040	I'm just getting some, for example, hostname, username, and external IP, internal IP, etc.
1369840	1372560	And then I create a phishing template.
1372560	1373940	So these are the addresses.
1373940	1376020	And as you know, these are the temporary mail addresses.
1376020	1378000	The most used ones.
1378160	1381140	Because, as I said, people are lazy.
1381140	1382920	And they just press A or B.
1382920	1385600	They just don't write their names.
1385620	1388020	For example, I'm not writing my name.
1388020	1390960	I just press A and look for the inbox.
1390960	1393740	So I just put these ones, seven ones.
1393900	1397580	And I create an example email template here.
1397580	1398520	For example, hi, James.
1398520	1401600	Thanks for buying blah, blah, blah Bitcoin from here.
1401600	1403760	Your final balance here, please.
1403880	1407840	We change your password for security purpose because you buy a Bitcoin.
1407840	1413240	And you can find these credentials inside Excel file.
1413240	1415500	And I zip that Excel.
1415740	1419360	Because maybe there's a spam filter in here.
1419360	1422840	And some spam filter just opens Excel.
1423100	1425040	And look at the documents inside it.
1425040	1426100	I know that.
1426100	1429020	And because of that, I just password the Excel.
1429020	1431480	And I write the PDF password to mail.
1431760	1433260	Maybe. Why not?
1433600	1436040	As you can see, there's an accountcredentials.zip.
1436100	1437520	There's an attachment.
1438300	1439500	And I send it.
1439500	1442500	And it's just delivered.
1442500	1443580	No spam.
1443580	1445600	This does not look like a spam.
1445980	1453340	And also, the other temporary mail services accepted this mail.
1453660	1455200	So there's no spam.
1455200	1456560	No spam filter is working.
1456780	1461900	As I said in my previous slides, no spam filter is working.
1461900	1465360	So don't believe everything you see in this mail services.
1466180	1466820	Just...
1466820	1472280	If there's something free, just don't click that one so fast, please.
1473280	1480420	And if someone just opens my Excel, this request comes to my server.
1480420	1487700	And I get an information about what is user name or host name, internal IP and external IP, et cetera.
1489400	1491320	And this is my end of presentation.
1491320	1492600	Thank you for listening to me.
