Skip to content
SSRF Write-up Intermediate

SSRF to query google internal server

The G-Suite Toolbox 'Dig' tool allowed users to specify an arbitrary nameserver, which the server would then query. An attacker could use this to query internal Google DNS servers and extract sensitive information such as internal IP addresses and DNS records.

Julien Ahrens Follow

Published on rcesecurity.com

In late January, I have found and reported a Server-Side Request Forgery (SSRF) vulnerability on toolbox.googleapps.com 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…

Julien Ahrens (@MrTuxracer), on rcesecurity.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Impact

An attacker could discover and query internal Google DNS servers, extracting internal IP addresses and DNS records that reveal corporate infrastructure.

What the attacker needed

Access to the G-Suite Toolbox Dig tool

The fix

The vulnerability was fixed by Google after being reported.

How it was found

  1. Use the Dig tool and set the nameserver to [redacted] to test for SSRF.
  2. Brute-force internal IP addresses via the nameserver parameter to find a responding DNS server.
  3. Query internal domains such as corp.google.com to discover internal records.
  4. Extract A and NS records for internal hosts like [redacted].google.com.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A server-side request forgery (SSRF) happens when a website lets you make requests to other servers on its behalf. Here, the DNS lookup tool let users choose which server to query, so an attacker could make Google's servers query internal machines that are not normally reachable from the internet.

What is SSRF?

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.

More by Julien Ahrens

View all

17 more disclosed reports, best first.

More from Google

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Server-side request forgery (SSRF)

The lesson behind this report.

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.