In late January, I have found and reported a Server-Side Request Forgery (SSRF) vulnerability on to Google’s VRP, which could be used to discover and query internal Google DNS servers to extract all kinds of corporate information like used internal IP addresses across the company as well as A and NS records exposing all kinds of hosts like Google’s Active Directory structures and also a fancy Minecraft server! 🙂  So here’s a quick write-up about the vulnerability.

As you might already know, the G-Suite Toolbox can be used to perform all kinds of trouble-shootings. Among all the available tools, there is one called “Dig” which – on Linux – can be used to query a DNS server for its records of a given domain, just like A- or MX records. In this case Google implemented a nice web interface for that tool to visually lookup DNS information. While it looks like a useful tool to query DNS servers from a Google perspective…

…the “Name server” field probably raises the attention of every bug hunter 😉 While playing around and trying to query for DNS records, the web application simply responds with a “Server did not respond message”:

So it really looks like the tool is trying to connect to to fetch the DNS information for my domain  – this really smells like a Server Side Request Forgery, doesn’t it?

Ok Google, give me a responding internal DNS server!

Thanks to BurpSuite’s intruder, brute-forcing for responding IP addresses can be quickly automated by instrumenting the corresponding HTTP POST “nameserver” parameter:

Some minutes later I’ve found one promising internal IP, which responded to the request – however just with an empty A record for my domain:

Since I do know about my own domain very well, it’s even more interesting to find out whether it’s possible to extract some internal information from Google, which are not publicly available.

Ok Google, give me your internal domain name!

Et voila. Found something here. It seems like Google is using “” as their corporate domain – at least some of their tools including one called “MoMa – Inside Google” is hosted under that domain. Now you could either brute force all subdomains of “” using the very same POST request to discover more subdomains (that’s what I actually did), or just google for them, which will reveal an interesting A record called “”.

Ok Google, just give me all your A records for “”!

This looks even more interesting in comparison to what is available on public DNS records:

This is now very internal!

Ok Google, give me the NS records (and their internal IPs) associated with that domain!

Ok Google, let’s get more specific. Give me information about the “gc._msdcs”!

Ok Google, anything else you want me to see?

After reporting this vulnerability to Google via their VRP, they quickly fixed this vulnerability. Thanks Google for the nice bounty!

Ok Google, Give Me All Your Internal DNS Information!
Tagged on:     

6 thoughts on “Ok Google, Give Me All Your Internal DNS Information!

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.