On the day of May 17, 2017 Zomato came public with the information that their database was breached and about 7 million user information was stolen. Soon it was found that this data was being sold in the darknet for estimated $1001. Zomato however got into touch with the hacker and after some exchange they seemed to have came in a mutual decision that the hacker will remove the database and will instead work with Zomato in fixing this bug. Zomato also announced that they will launch a bug bounty program in HackerOne. At the moment, Zomato has a simple program in HackerOne with only HoF for hackers. In recent days, many hackers in HackerOne were complaining that Zomato was not being responsible with their program and that they were not responding quick enough. This hacker raised the same issue and asked Zomato to update their policy and be more active. While this may bring some positive changes in Zomato responsible disclosure program, actions of this hacker was unethical. I decided to launch my own private check to see who this hacker could be.Â
First process was scanning social media sites for any old chatters on the hack. Some hackers like to boast about their hacks online in social media. I scanned twitter and facebook to see if there was any chatter. Unfortunately, this hacker knew how to cover his track. However some media sites were kind of blowing his cover. Seems like he had given some interview regarding the hack. After some check, I found that the data was being sold by the vendor nclay in a darknet website. I usually scan multiple .onion marketplace to see if there was any leaks after a website hack. After seeing the following picture, I immediately knew what site this was:Â
Second process was now to go to the darknet. (Not so darknet because this site is known)
I had visited this same .onion site before when investigating about Credit Card leaks etc. It was none other than Hansa market. Reddit list on darknet is here:Â https://www.reddit.com/r/darknetmarkets/wiki/superlist#wiki_hansa_market
The onion site that works for this is:Â hansamkt3iph6sbb.onion
You can browse the site without TOR here:Â http://hansamkt3iph6sbb.onion.link/
So now we know his handle: nclay
the site he uses to sell the file: Hansamarket
When going to his store we find this:Â
Now the deal is that, Edmodo recently emailed it user and informed them that they indeed a security breach. Users are requested to change their password immediately. He also provided some sample data which seems to have email address and bcrypt password of the accounts. Most accounts look to be of Edmodo employees because they contain the email address @edmodo.com.Â
So far we have been able to link the same hacker for both leaks. I am not familiar with how that specific marketplace works but it seems that 1 order has been placed based on his vendor profile.Â
So now lets break everything down:Â
This handle joined the site on 2017-05-07 UTC time which is when we started to pick chatter about hackers complaining about Zomatoâs unresponsive program. I can certainly bet that this hacker has reported bugs to Zomato through HackerOne platform.Â
This is still being edited. Any new information will be added below:
Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
â Live Streamingâ Interactive Chatâ Private Showsâ HD Qualityâ Free Actions
Free to watch ⢠No registration required ⢠HD streaming
On April 16, 2017 a hacking group from India claimed to have leaked some database dump of Snapchat users. Allegedly they claimed to have hacked Snapchat as retaliation to a report which accused CEO Evan Spiegel of saying that he does not want to do business in poor countries like India. No evidence of such statement by the CEO ever came out, but Indians started to retaliate against this. Many downloaded Snapchat App from the App Store and started to rate it a 1 star. Soon after that, rating of Snapchat in App Store in India went down overall to 1 star. While some rated it down to show their anger, hacking group known as Hell Shield Hackers (HSH) decided to take a different path.
Edit: During further investigation, I found that HSH was not involved on this hack. While talking with their team, it was found that they had been inactive for about 5 months. Â
One of the hackeers, Scientist Pandey posted in FB that Snapchatâs DB dump will be leaked online. As they promised, it was leaked online through the following url:Â https://ghostbin.com/paste/d7f4e. Supposedly this is a leak of about 1.7 million user accounts. Soon after the link was up and it was shared, news media (specially from India) got the wind of this and it started to hit multiple news. When these kind of leaks come out, I usually run a basic investigation to see how valid these are, following are the results:
First, I was made aware of this link through a Slack group I am part of. I knew that the hackers were making this public but did not know when. At about 5:00 am on April 17, 2017 when I woke up, I saw that this link had got mediaâs attention and one of my colleague shared this on the slack channel I am in. Soon after that couple of the members of that Slack channel who I have decided to keep private, decided to validate this âhackâ. Lets breakdown this hack:Â
First, one of the slack member raised concern that this dump looked pretty similar to one posted on January 1, 2014. In January 1, 2014 snapchatdb.info site went live. This site included a dump of some 4.6 million users found through an address book api that was exploited through rate limiting. Owner of SnapchatDB, censored the last two digit of the number when it was made public. Unfortunately the site is now down (it was down within 24 hrs of being live in January 1, 2014). However, thanks to WayBack machine we can grab a screencap of the site.Â
First analysis began on this image. When you check the banner image it has a supposed SQL query being done which then outputs some phone numbers and user account. The 1st phone number is 21232104XX. If we do the scan for this same number on the dump at https://ghostbin.com/paste/d7f4e, we can noticed that there is one user with that
So this already proves, that DB that was leaked on January 1, 2014 is the exact one that our alleged hackers posted today. Moving further, we found the SQL torrent of the previous leak.Â
After downloading the torrent, we got a .sql file which has the exact information when compared to what was found on the link our âhackersâ provided.Â
Which proves that Snapchat was not exactly hacked and the hackers just pasted an old data that was published online.Â
Some hackers and hacking group claimed this hack which was found to be fake.Â
Hacker known as Scientist Pandey posted on his Facebook that it was just a demo leak by the the Indian hackers and cyba_tiger. Unfortunately however, this was not a real hack. No data was stolen. âHackersâ here simply downloaded the file found online and shared it.Â
If you do find a vulnerability in Snapchat, report it to them through their bug bounty page here.
âFake it till you make it does not go with cybersecurityâ
In a fine afternoon of April 13, 2017, I kept getting a call in my secondary number. I decided to ignore it thinking it was advertisement. As the phone kept ringing I decided to pick it up. I was greeted with wonderful automated voice. It said that the person was from IRS Crime Branch, and that they noticed fraudulent activity in my tax. According to them, I had hid my income in my tax. I had heard a lot of stories about people getting scammed so I decided to see how it is like to be in the side of being a victim. I decided to call the number. (Btw this is the number if anyone wants to call: 202-621-0123)
After I called them, their âofficerâ picked up the phone and asked for my name. Once I gave my name, he told me that I had done some shady stuff with my taxes. (Man this is fun). I acted as if I was scared and told me how I can fix this as I did not want my employer to know about this. (Man my employer will get PISSED if I did shady stuff in my tax). He told me that, I do not need to worry because he will help me fix this. According to him IRS does not give everyone a chance. (I must be special then). Well moving forward, he told me to go to the nearest Government verified stores like Walmart, Staples etc.Â
Alright jokes aside, I was excited that I am going to Walmart yay! (But was I?). To make sure I could kind of raise his pressure, I told him Target was nearer so I wanted to go there. I kept repeating that, he got mad and said âSir why you keep repeating the same thing. Do you not understand what I say?â After I said sorry and that I would go to the nearest Walmart, he asked me for my zip code which I happily âprovidedâ. He was so kind, he even gave me the nearest Walmart based on the Zip code! I told him that I was in my car and was going to Walmart. (I donât even have a license let alone drive a car!) Next, I made him wait for 15 mins as I did other stuff. (Lets waste his time but not mine hehe).Â
Soon after that, I told him IÂ âreachedâ Walmart. He told me to go to the Gift card section and read out the names. I gave him some names by looking them on Walmartâs website. He told me to grab the Walmart gift card and get three of them. (He actually knew all the rules & regulations about how much you can buy in the card).Â
It was enough at this point so I decided to break and let him know that I was not going to fall for it. I wanted to scare him further so I said that I reported him to CBI. He gave a hilarious response: âSir its FBI not CBIâ. Why will I report him to FBI if he is in India? He thought that I had his location so he said âYou will know in 30 minutes and hung upâ. It has been 1 hr as of now. I am still writing this blog and nothing happened.Â
https://labs.detectify.com/2014/10/21/hostile-subdomain-takeover-using-herokugithubdesk-more/In the night of February 19, 2016 around 2:00 pm, I got a notification in a slack channel. A security researcher posted that someone had tweeted about a hack in secure2.donaldjtrump.com. Following are the details of my research on tracking back the hacker.Â
When I got that notification, it was pretty scary because I remember that secure2.donaldjtrump.com was used during the campaign for donation processing. This could lead to major breach if the server was hosting any confidential information. So I decided, to see who the hacker was.Â
First, going to the website, I was greeted with the following screen,Â
Seems like the hack is legit indeed and was not just a simple HTML injection. Now the work was to figure who hacked this. As seen the hacker did not give his real name on the screen (Who will actually give it right?)
Well, from my past research on blackhat hackers, specially the ones who hack web applications and deface them, I found that they are notorious for posting about their hacks in social media accounts. This is usually to gain praise or sometimes just to show off.Â
So a small Twitter search on the domain was fruitful for the start. Out of all the tweets about people donating, one tweet stood out:Â
Interesting... Seems like this twitter account had posted about the hack 2 hrs before. What was interesting was the smiley face. This raised some red flags and my gut claimed that this guy is behind but I had no evidence. Also who the hell tags Donald Trump to let him know his website is hacked?Â
Next, the tweet itself did not say much about the person who tweeted about this. So, I decided to check Zone H to see if a hacker had shared about the hack there. Zone H is a mirror site for hackers, so that they can archive their hacks and showcase it. Unfortunately, nothing popped up in Zone H. This felt like a dead end, until one of my friend, shared me a PDF file of a resume of Hussain Adnan (person who had tweeted about the hack).Â
The resume was a gold mine! Guess what it had?
So he just claimed on his own resume that he is Pro_Mast3r. Not only that, you could literally find this personâs digital footprint everywhere. Now, his FB post was more interesting than his tweet.Â
At the end, it all came to a circle. Full evidence to back up the claim that he was the hacker behind this hack.Â
Just an alert to all hackers (white hat hackers), platforms like HackerOne and Bugcrowd give you opportunity to be ethical and help companies and government organizations to be more secure. Use your talent for greater use. If you do find vuln on websites like such, try to reach out to someone at these companies and see if they can help instead of hacking the website and trying to claim it on Zone H for showoff.Â
How this hack actually went down?
A lot of people have tried to see how this hack was done. No, there was no server breach. No the hacker did not gain access to any confidential data. Instead this was just a subdomain takeover bug. More information on subdomain takeover can be found in this article by team at Detectify:Â https://labs.detectify.com/2014/10/21/hostile-subdomain-takeover-using-herokugithubdesk-more/Â Â
Your domain is now mine! - G Suite A record vulnerability
In part two of G Suite vulnerability discussion, I am writing about a simple but quite serious vulnerability in yet another part of G Suite Application. In general, G Suite is a major application of Google with multiple features. Its primary security relies on the concept of Domain Ownership Verification.Â
This vulnerability was found when researching a possible weird takeover at ubereats.com. First, while testing some DNS details at ubereats.com, I found that it had its A record set to Googleâs A record. This looked interesting to me so I decided to dig around and see what happens.Â
First, my initial thought was to give a shot at G Suite because that A record was a flashback to me. I had seen the same A record somewhere in G Suite but was not sure exactly which application of G Suite utilized it. When signing up in G Suite, it was interesting to see that despite having Googleâs A record, ubereats.com was not yet claimed.Â
As previously mentioned on the GÂ Suite Email vulnerability blog, they require specific records to be set for ownership verification. So my hands were tied on this case because I could not do much things to the domain. However when snooping around, I noticed that there was an option/facility called Add New Domain.Â
This was an interesting part of the research. This part of the application allows me to set a redirect for the domain I âownâ. So I decided to see if it actually worked. I clicked the âRedirect your naked domainâ function and was greeted by this page.Â
Interesting! However as usual my belief was that Google will force me to verify domain ownership before I could set anything up. I still decided to gave it a chance and replaced âwwwâ with âhackedâ. (Fair warning here: never put hacked when you are testing a domain takeover!) I went with âhackedâ because my experience said it should not work but my gut said it will.Â
Next, right after I pressed continue, it showed me the page where it listed the A records which had to be setup in order for the redirect to work.Â
And my reaction to this was:Â
One of the A record matched exactly to the one that Uber had on ubereats.com domain. Fingers crossed, I pressed âIâve completed these stepsâ hoping that Google will not stop me from taking that action.Â
Next thing I know is that the domain redirect was going through it. Once I visited ubereats.com it will take me to hacked.ubereats.com.Â
Bummer about this bug was that, I could not take the domain to other personal sites that I owned. So only risk was potential chances to scare the customers of the company and make them loose revenues. Specially in case of Uber, ubereats.com is an actively used site. So after it started to redirect, some complaints were made to Uber by their customers who were freaked out to see it.Â
After about 5 mins I reached out to a personal connection at Uber to make sure the issue was resolved quickly with minimal impact to customers. This was because, I took over the domain after 5 PM which could mean that they will (probably) not take a look at the report till the next business day. (This probably would not have happened after customersâ complains). Soon after that, Uberâs Security team released a quick fix (around 15 mins since exploitation).
Uber then ran an investigation to make sure other domains did not suffer the same risk. They also encouraged me to reach out to Google and inform them about this. Google validated that this was a vulnerability from their side and fixed it rather quick.Â
Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
â Live Streamingâ Interactive Chatâ Private Showsâ HD Qualityâ Free Actions
Free to watch ⢠No registration required ⢠HD streaming
I have emails - G Suite MX record vulnerability writeup
After recent finding about Uber and Sendgrid bug, I decided to check other third party applications that were also used for similar cases. During the investigation, some third party applications were found to be vulnerable including G Suite.Â
The initial research of this vulnerability started when investigating a vulnerability on whatsapp.net. It was interesting to see that whatsapp.net had its DNS in following manners (Image attached)
Based on this we can see that the MX setup is through Google. Further investigation showed it was through G Suite configuration which will require you to have such setup for the MX to work.Â
Next, we went to G Suite signup page, and then signed up for the domain which created email id [email protected]. At first, this did not bring any security risk because for G Suite to properly work, a domain ownership verification is required so going to gmail.com would show the following screen.
This shows that without domain verification nothing could be done. However when looking up how forwarding and routing was done with G Suite I found this document by Google. https://support.google.com/a/answer/2368153?hl=en
This stated that one could set a routing by using the Default Routing tab in Gmail Advanced settings located at  G Suite. This should still require domain verification. However it did not.Â
It did not take much work after that but to set the route in the following manners:Â
Next, I decided to send a test email to [email protected] which then arrived to my private email. Once that was verified to work I submitted the report to Facebook Security team through https://facebook.com/whitehat. Facebook fixed it in about 4 days of the report being sent.Â
Next, I found similar issue on Yelp through their yelp-support.com domain. Once I found the vulnerability on Yelp I realized this could be more wide spread than I had originally thought so I reached out to Google security team and reported it to their team as well.Â
In about 1 day of my report, Google fixed the issue from their side so now when trying to use Gmailâs advanced settings without verification domains will give the following alert:Â
âWe are unable to process your request at this time. Please try again later. (Error #1310)âÂ
There are some ways, I tried to set routing after that and I was successful but the system was set in a way that it would detect it and change it immediately setting it back go Google Emails App.Â
In the end, this vulnerability was fixed by Facebook, Yelp and Google as well  by January 31, 2017.
Following videos shows a PoC of how the exploit was done on Facebook:
When researching about MX records of slack.com, I noticed that they used a 3rd party email service. In that service, however slack.com was already claimed. After a little more research, I found that all the sub-domains of slack.com like teamname.slack.com also had MX set to the same service. These team domains were not claimed, so the emails for these domains could also be intercepted. What is the major issue with this? Could you send a message to your team from an email? These initial questions lead to a deeper research which discovered a critical vulnerability on Slack that would let me snoop into private slack messages.
To do further research on the question and gather relevant information, I looked for any way that these emails were being used by Slack. While browsing the HackerOne page for Slack, I noticed that they stated about the Email app that could be used as a way to send a message to a channel through the email. This service however was only applicable to member plans Standard and above. So I upgraded my plan to Standard and started to research on it.
After I installed the Email app on my channel I was provided with an email in the form [hashedtext]@uraniumsecteam.slack.com. The hashedtext was randomly generated to make sure they cannot be enumerated because someone could use that to spam the channel. As I mentioned, the email had uraniumsecteam.slack.com as the email domain. I previously mentioned that it had MX, which could be claimed. I proceeded with the plan and set the route in a way that all emails coming to @uraniumsecteam.slack.com would arrive to my inbox.
Letâs talk about the exploit scenario. Team X has a domain at x.slack.com. They use the default Email app which is widely used in Slack. Through the email app, they have provided a private email, as an example [email protected]. An intruder then claims x.slack.com through the email service they used and sets the route to their personal email like [email protected]. Once this is done, despite the team members sending a message to [email protected] they would not receive it because the hacker just intercepted it. He could then chose to forward the message to team, modify or edit it.
As soon as the issue was reported, it was escalated to tier 0 (critical vulnerability) because it possessed a significant threat where I could read messages of any team. A quick fix was then added by Slack, so that even if I claimed the domain, it would still reject the incoming email. Â A permanent fix was then deployed, which still lets claiming the domain but the email will now go through the app and reach the channel instead of reaching attackerâs channel.
Report link:Â
Timeline:Â https://hackerone.com/reports/163938
August 27, 2016 - Report Submitted to Slack
August 29, 2016 - Initial reply by Slack Security and triaged
September 8, 2016 - Report marked resolved, bounty awarded
After recent finding about one of the Uberâs subdomain takeover was publicly disclosed, I looked into Uber to find similar bugs. One of my colleagues Abhibandu Kafle, pointed out that em.uber.com also had CNAME pointing to SendGrid and could be vulnerable to similar kind of issue.
I had limited experience using SendGrid, so I focussed on finding other issues instead. Sometimes later, I decided to give it a shot anyway because looking at it through different angles can sometimes open various doors and I was running out of endpoints to look into. So I signed up on SendGrid, a transactional and marketing email service used by uber, to see what was possible.
Based on original hypothesis, I looked around to understand how to claim a domain through SendGrid. I could not edit contents of the domain, like you would normally do to demonstrate a subdomain hijacking, because it wasnât possible through SendGrid. There was an option called âwhite-labelâ, which would allow emails to be sent through a verified domain and this caught my eye.
Meanwhile, fortunately, I forgot my Uber accountâs password. So, I reset it and realized that the reset email Uber sent had reply email set to @em.uber.com. So, I knew that MX record for em.uber.com was being used somehow. A quick look into MX through dnsgoodies.com showed that MX was pointing to mx.sendgrid.net.
After I figured that I could play around with MX records for uber subdomains, I started to research more about SendGridâs workflow. I realized that I could claim em.uber.com in the Inbound Parse Webhook, a medium for email interception, which wasnât yet claimed by Uber. So, I thought this could be something I should focus on.
I looked around for API and found a python program written by SendGrid which could be used in inbound parse webhook. I tweaked the program so that it would display the emails in my terminal. Then I ran the python web application,which would setup a local http server on port 5000. I used ngrok to tunnel that to a web address so that Inbound parse could get a receiver domain where it could send POST requests.
Soon, I was able to receive emails in em.uber.com. This was also true with all of uberâs subdomain. One of them was www.uber.com, which was also used in their sentry(a crash reporter) plugin. This allowed me to receive sentry logs from www.uber.com because they were sent as email. This was a significant information disclosure for Uber.
Uber was able to quickly fix the vulnerability and told me that they also contacted SendGrid to see what they could do. SendGrid stated that the best option is for companies to claim the domain on their side.
After about 10 days after the bug was resolved, Uber rewarded me with $10,000 for reporting this bug.
Also at the moment of writing this bug, it has come to my attention that SendGrid has added extra verification which forces you to have a verified domain before adding a inbound parse webhook.
The Proof-Of-Concept video that was submitted along with the bug report is as follows:
Rojan Rijal @rojansec-blog - Tumblr Blog | Tumlook