Also, he's going to be speaking about finding hidden gems in temporary mail services. His name is Ben Bergkahn. He's a pen tester and red teamer. Previously, he has worked in many things. Now, I will get him on the stage and let him enjoy the presentation. Let's give him a round of applause! So, thank you everyone for coming to this session. I'm really excited to be here at DEF CON 2021. So, in this session, I'm going to talk about temporary mail services and how we can find good gems in those services. And before that, I want to thank my teammate, Berat Gokartislar. He's one of the other idea fathers of this project. My name is Berk, and I'm a penetration tester and a red team entry assist. And I'm currently working at SecArmy Ltd. as a security consultant. I'm also a member of Cobalt's core team and a signer grade team. And I'm a festival fan and a gym rat. So, let's talk about the main topics of my presentation. Temporary mail services, also known as disposal email services, are generally free email services that allow you to receive emails at a temporary address that self-destructs after a certain time elapses. While some temporary mail services are public and open for everyone, and others offer paid private services. So, what are the pros for temporary mail services? So, it's a short lifespan, automatically delayed email addresses and all associated messages after a set of time, and no long-term commitment. Users don't have to sign up or provide any personal information to use a temporary email address. And anonymity, they allow users to receive emails without revealing their personal email addresses. But it should be noted that the mails are hosted on the servers on these services. So, the mails you receive can be accessible from the service providers and we don't know if they actually destroy the emails really or not. So, this is up to them. Cons about spam avoidance. So, according to the services, incoming mails are said to be safe because they pass through the spam filter of their own. But this protection can be okay for newbies, but for the experienced hackers or the red teamers, it's not working well. And public accessibility. Many temporary mail services reveal inboxes to the public. This means that anyone can access all the emails that have been received by that inbox. While these features provide ease of access, it also poses significant privacy risks if sensitive information is sent to this address. And this title is going to be our main target in this presentation. So, story about this presentation. Just another day, just for a silly application, in a regular time, I tried to get an email and I used temporary mail. And I noticed that someone had linked an account from a shopping website. And after I received this password from email, I realized that there's money inside this user. And there's live orders inside it. So, I wondered if such things were common, and I realized that there are tons of similar situations. Then I wanted to dig deep about the situation and start my research. So, most temporary mail services, the most popular ones, are temper.email, mailplus, mailend, disbustable. These are all the public inboxes, and you can just access these inboxes. And what are these gems? So, people use these temporary email services for business emails. In addition to that, Spotify, Netflix, Facebook, Twitter, Instagram, YouTube, Amazon, Aliexpress, Discord, AT&T, Grammarly, TikTok, OnlyFans, Bitcoin accounts, and even porn accounts, and lots of public information. And patients, of course, and many, many more, they are using these services to get these services. And also, I noticed that the marketing emails from numerous Viagra sellers and dating apps, additionally, there were emails from pornographic sites. Also, in pornographic emails, the IP addresses from which a user logged in can be leaked. So, I hope that the users who use temp mail services in their private life also use VPNs. 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. So, it's easy. In this case, people are lazy, so they just press A and press Enter and just get the inbox and just use these inboxes. 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. 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. Also, saved credit cards, and studio information, etc. And also, Canopay and Temi accounts. Also, as you can see, someone uses Canopay. And inside the mail, they inform the user about the Cashcard Reserve account, and Temi is a shopping website. Also, I found a Discord account, but unfortunately, the user who uses this temporary mail service has a multi-factor authentication. I just tried for one account, but if you are lucky, you can find another one. Instagram addresses, so Instagram accounts, you can just reset the password, get into the account. And also, AT&T prepaid cards here, Facebook accounts, Amazon Web Services. And this is interesting, so I found hospital records in this temporary mail services. So, there's a patient who is living in the United States, and you can see their diseases and why their applicant is rejected, and which location they are going to, which hospital they are going to, which date, rejected date, etc. You can see, this is all public, you can find in temporary mail services. 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. A lot of secret information in public email services. And more, yeah, you can see. And also, I found Paxful. Paxful is a Bitcoin buying and selling application. 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. Just note the email, for example, someone registered for Amazon AWS, just don't change the password immediately. Just wait, note, and be sure about deleting the mail. So, there's an option in the mail deletion, in the temp mail service. So, delete the mail, note the email address, and wait maybe one week, maybe one month. 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. But, if you do this in a registration part, there's nothing inside. So, just be patient for that account. And also, I found an OnlyFans account here, Premium. Yeah, I don't prefer to use, but you can find Premium if you want. And then, there's another one. And someone just bought something, and there's an invoice in this mail services. And in that invoice, you can see there's just name and surname and address information here, location information. You can all find from here. And if you are a good, skilled pen tester, you can just social engineering these people. So, hey, Abdul, for example, this victim name is Abdul. And you can say, hey, Abdul, these items, blah, blah, blah, that you ordered will be sent to this address. You also know the address. Blah, blah, blah, stuck in the custom. So, you need to pay and bump payment link. And all this information is verified, because we know that. Name, surname, items, as you can see. So, it's a good social engineering example. You can see there's an example social engineering mail that you can just include a payment link, maybe fake custom website. The choice is Abdul attacker and depends on the scenario. Alternatively, you can get other information with that type of attacks. This method is very effective, because you have all the details about the order. It appears legitimate. And this is one of the interesting mails that I found. It says, nice to see you, I'm glad to meet you. I'm not married and have children. Maybe you can find your perfect match in all these mail services. It's up to you. And also, still there's a lot of accounts. So, as you can see, there's someone just signed up for the dynaxy.com as a BTC address, I guess. And you can see the IP information and new password, Facebook account still. There's tons of accounts in there. You can get anything you want. Also, there's another invoice thing from the right group, Financial Limited. And it's about positions between Euro and Canadian dollar. And as you can see, there's a previous ledger balance, something like 5K. I never even imagined it was 4K. I don't know. Maybe there's inside money in this account, but I didn't want to go in this account. Also, Netflix account. And I found an application that did buy. And when I entered, it said, you have nearly 69 Bitcoin. Probably a fake website, but good one. I will be very sorry if it's legit, by the way. And PlayStation Plus accounts, maybe TikTok accounts. And also, I found an information mail about the Temi website. Your order has been canceled due to payment. And I just wonder. And I reset the password and go into account. This is the reset password section. And I get the OTP, just reset the password. And I found the man called James Konda. And there's a live order inside this account. So I said, order in it. And also saved credit card information and the address information. Everything you need. Just a live. And about statistics, nearly 18,000 mail. Most of the emails come from TikTok, Intelliverse, and Supercell. However, as you can see, there are many other applications not listed there. As including them will require numerous slides. In summary, you can find all kind of accounts you want here. And in these days, every information is invaluable. And the software used by blue teams and cyber intelligence units for gathering information has now become highly advanced. 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. Please change your password. Even some websites are not waiting for a permission and change your password. They generate a random password. And after that, they say to you, I changed your password because your password is leaked. And for my presentation, I wrote a Python script that's called Temple Mail Spy. It just continues to recording and monitoring Temple Mail services. And it can be used with the Telegram and Slack notification API. It's fully customizable config. And this has different modes. This script can get all mails or just grab for a specific keyword. For now, it's only using two mail services because these two are the most popular ones, Yelp Mail and TempMail. But I will add more in the future. Also, I will add proxy specification because some TempMail services has rate-limiting issues. And as you can see, there's a customize option. So, you just need to set a keyword here. So, what do you want to know? For example, Facebook or you want Amazon or maybe you are hunting Bitcoin wallets. You just enter a Bitcoin and my script is going to monitoring continuously. And if there's a mail that shows up like Bitcoin and you just grab the Bitcoin, they just notify you from Slack or Telegram immediately. There's an email here you can find. So, these are the notification sections. After the script is over, it saves you what the mails save you as output. Mail link, mail sender, which mail service, from which mail service, get that mail, etc. And now, I have an enjoyable and classified example about my presentation. And just a regular day, I finish my script and I just run my script. And my script just found an invoice, invoice link. And I go to invoice, you can see here. And in the invoice, in the left bottom, there's a PHP debugger icon. And after I click that icon, I found a debugging page. And I found some important credentials inside that one. And I found some endpoints. And I do more recon about the website. And I found a slash admin endpoints. And when I go there, also thanks to PHP debugger, I found a credential and I go to admin panel. So, can you imagine that some guy just uses a temporary mail service for his admin panel. So, I just enter the credential and it asks me OTP, but no problem. So, it's temporary mail. So, I got the OTP from the temporary mail. And I enter it and boom, I got the admin page. Only I looked the temporary mail service and I got some interesting websites admin page. Okay. And I recon more and I realized that nearly 95% of the employees are using temporary mail services. That's very interesting. Everyone has a temporary mail. Yeah. And also, this company has a client. And you know that also this client uses temporary mail services. So, they assign their clients a temporary mail. Wow. Nice privacy. And I recon more. I found server information in there. And I access the database and get more information from here. I found a mail username and password and API stuffs. And I, as you can see, there's a mail username and password here. And I just enter their mails live thanks to temporary mail services. There's a lot of important stuff going on there. For example, there's a Kenya export pronunciation and branding agencies. Classified information I found here. Some employee names, social security numbers, etc. Government papers here I found. I hope there's no FBI here or something. This is educational purpose only. And I use every user's information. Company uses information and mail addresses. And I go to some client's mails. And there's invoices, live invoices. Money is there. And somehow I get a shell from that educational purpose company. But you need to know that the relevant vulnerability has been reported to the company and has been remediated. And during this research, no actions were taken that would harm the company's service and disrupt their operations. And this is my shell. I'm passing this quick. A lot of websites in it. And every website is a different database. As you can see, this is live. Different environments, lots of information. Database names, database passwords. Also, JVT secrets and SSL case. Everything. More password, email name. More temporary mail service. Because everyone is using temporary mail service. And I find someone in the database using another temporary mail service. And I go there. I get his account. And I get a different website. I just go to another admin panel. I go to a different website. Because everyone uses temporary mail service. Yeah. And this one is also another website that I found from the database. And more logging applications. This one is also different. More tracking caches. More information here. There's also email username and password in it. So, more emails. More good stuff. Payment links. There's a live payment link. Payment transactions. API keys. PayPal secrets. Everything. Credit card numbers. And I just get this from just looking around some kind of temporary mail service called Yelp mail. And I just found an invoice. And this comes to here. So, it's very interesting. And more information. See, I'm passing this fast. More tracking caches. And more temporary mail service. And now I'm in a conclusion in this research. I obtained hundreds of personal accounts. Shopping accounts with money inside. Patient information. IP details. Premium accounts. Company information. Company accounts. Compromised accounts. Compromised email accounts. Credit card information. Dozens of web applications. Numerous databases containing live data. Private and confidential API keys. Passwords. A little government document. Email correspondences. Secret payment system APIs. Company bank accounts. And SMS sending APIs. Customer accounts with money in them. And maybe more things in this. But, I don't know. I just report to them. And I just finish the shell part. Everything is remediated. And there's a bonus part here. So, I think maybe... I'm looking for this... I'm hunting this account. And maybe there's more guys like me who are hunting this service. So, I think that maybe I can create a phishing email for them. Something like... You can look your Bitcoin account here. And I just write a BBC script here. That's inside an Excel. There's a macro in it. And when someone opens that macro and allows... Opens the Excel and allows the macro... This script is just getting some environmental informations to my server. And I have a domain called moobitcoin.com. I just get domain for research purpose. I'm saying that because I signed some papers that I bought from this domain. Because they banned me in the first. And I said, hey, I'm just using this for research purpose. They sent me a paper and please sign. Okay, I sign. I'm not getting any credit card information from it. I'm just getting some, for example, hostname, username, and external IP, internal IP, etc. And then I create a phishing template. So these are the addresses. And as you know, these are the temporary mail addresses. The most used ones. Because, as I said, people are lazy. And they just press A or B. They just don't write their names. For example, I'm not writing my name. I just press A and look for the inbox. So I just put these ones, seven ones. And I create an example email template here. For example, hi, James. Thanks for buying blah, blah, blah Bitcoin from here. Your final balance here, please. We change your password for security purpose because you buy a Bitcoin. And you can find these credentials inside Excel file. And I zip that Excel. Because maybe there's a spam filter in here. And some spam filter just opens Excel. And look at the documents inside it. I know that. And because of that, I just password the Excel. And I write the PDF password to mail. Maybe. Why not? As you can see, there's an accountcredentials.zip. There's an attachment. And I send it. And it's just delivered. No spam. This does not look like a spam. And also, the other temporary mail services accepted this mail. So there's no spam. No spam filter is working. As I said in my previous slides, no spam filter is working. So don't believe everything you see in this mail services. Just... If there's something free, just don't click that one so fast, please. And if someone just opens my Excel, this request comes to my server. And I get an information about what is user name or host name, internal IP and external IP, et cetera. And this is my end of presentation. Thank you for listening to me.