Google did an Oopsie: a simple IDOR worth $3,133.7
An endpoint that imported Google Drive files accepted any file ID without checking the requester's permissions, so an attacker could supply a private file's ID and receive a token and the file's title. This allowed unauthorised access to metadata of private files.
infosecwriteups.com
Published on infosecwriteups.com
Back in 2019, when I had just started learning about hacking and bug bounty hunting, I had this dream of being in Google’s Hall of Fame.
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 learn the name and type of any private Google Drive file if they knew its ID, but could not access the file's contents.
What the attacker needed
Knowledge of the target file's ID; a Google account
How it was found
- Create a private file on a separate Google account.
- Intercept the request that imports a Google Drive file and note the docId parameter.
- Replace the docId with the private file's ID and send the request.
- Observe that the server returns a 200 response with a token and the file name.
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 you share a file on Google Drive, you can set it to private so only you can see it. The website had a feature to import a Drive file, and it asked the server for details using the file's ID. The server did not check if the person asking actually had permission to view that file, so anyone who knew a private file's ID could get its name and a token.
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.