💣 $10,000 Google Bug Bounty: How a Deserialization RCE in AppSheet Could Have Led to Remote Code Execution on Google’s Infrastructure
The AppSheet Automation feature allowed a user to supply a custom JSON body for a webhook step, which was deserialized without validation. An attacker could craft a malicious .NET object to execute arbitrary PowerShell commands on Google's backend servers.
Published on infosecwriteups.com
Google’s AppSheet is a no-code platform that powers thousands of business workflows. But in September 2022, one automation feature turned into a remote control for Google’s own servers.
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 backend deserialized user-supplied JSON without restricting allowed types, enabling .NET object injection.
Impact
An attacker could execute arbitrary commands on Google's servers, potentially stealing data or pivoting into Google Cloud Platform, though the text does not confirm actual exploitation beyond a callback.
What the attacker needed
An AppSheet account; ability to create automation bots; a server to receive callbacks
The fix
The vulnerability was fixed by enforcing type whitelisting in deserialization, sanitizing automation payloads, and preventing automation from spawning system processes.
How it was found
- Create an AppSheet account and go to Automation.
- Add a new Bot and set it to run on a schedule.
- Add a step to call a webhook.
- Set the method to POST and the URL to a test server you control.
- In the body, paste the malicious payload (changing the server address).
- Save and wait for the bot to run, then check your server logs for a request from Google's infrastructure.
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.
When a program receives data, it sometimes converts it back into objects in memory. If it does this without checking what kind of object it is, an attacker can send a special object that runs commands. Here, the AppSheet automation feature did exactly that, letting an attacker run commands on Google's servers.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.