Inserting arbitrary files into anyone’s Google Earth Projects Archive
Google Earth Studio used incremental folder IDs and allowed saving projects into other users' folders without proper authorisation. By manipulating the project name and data, an attacker could insert files with arbitrary names and extensions, including HTML with JavaScript, into any user's Projects Archive zip file.
Published on websecblog.com
Google Earth Studio is a web-based animation tool for Google Earth's satellite and 3D imagery. It was first released in 2018 as an invite-only beta.
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 insert arbitrary files, including HTML with JavaScript, into any user's Projects Archive, leading to script execution when the victim opens the file; Google initially considered it low severity but later issued a reward.
What the attacker needed
A Google Earth Studio account; victim downloads and opens the archive
How it was found
- Create a project and note the folder ID in the save request.
- Change the folder ID to another user's folder ID to save the project there.
- Modify the project's data to contain a JavaScript payload.
- Change the project name to include a null byte and an .html extension.
- Save the project, which inserts a malicious HTML file into the victim's archive.
- The victim downloads their Projects Archive and opens the malicious file.
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.
Google Earth Studio is a tool for making 3D animations. Each project is stored in a folder, and folders were numbered simply (1, 2, 3...). Because the website did not check who owned a folder, someone could save their own project into another person's folder. They could also give the project a name that ended in .html and put JavaScript inside it, so when the victim downloaded their projects as a zip file and opened that file, the script would run.
What is IDOR?
One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.