Skip to content
Info disclosure Write-up Intermediate

research

A hyperlink in a Google Earth Pro pin could point to a local file with a null byte and .html suffix, causing the app to read and display that file's contents. An attacker could read arbitrary local files on macOS.

Omar Espino Follow

Published on omespino.com

Summary Arbitrary local file read (macOS) via <a> and null byte (%00) element in Google Earth Pro Desktop app

Omar Espino, on omespino.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

Root cause

Likely the app did not properly validate or sanitise hyperlink URLs, allowing a null byte to truncate the path and a fake .html extension to bypass restrictions, leading to local file disclosure.

Impact

An attacker could read arbitrary local files on macOS through the Google Earth Pro Desktop app.

What the attacker needed

Google Earth Pro Desktop app installed; User creates a pin with a malicious link; User clicks the link

How it was found

  1. Download and install the Google Earth Pro Desktop app for macOS.
  2. Open the app, create a new Pin, add a name, click add link, and paste a hyperlink pointing to a local file with a null byte and .html suffix.
  3. After creating the pin, click the hyperlink in the Places pane to view the file contents.

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 hyperlink in a pin could be made to point to a file on the user's own computer, like a password file. By adding a special invisible character and a fake web address ending, the app was tricked into showing that file's contents. This let an attacker read any file the user could access.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by Omar Espino

View all

4 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.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.