How i Access The Deleted Files of Someone in Google Drive | Bug Bounty
A file shared publicly in Google Drive remained downloadable via the direct download endpoint after being moved to the trash, even though the normal preview page said it was in the owner's trash. Anyone with the original link could still download the file until it was permanently deleted.
Published on ph-hitachi.medium.com
The Illusion of Deletion: How Trashed Files in Google Drive Can Still Be Accessed — Understanding Google Drive’s Trashed File Accessibility
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, moving a file to the trash does not revoke existing sharing permissions; the file remains accessible via direct download until permanently deleted.
Impact
Anyone with the original direct link could still download the file until the owner permanently deleted it, which could lead to unintended data exposure because the UI made it appear inaccessible.
What the attacker needed
File shared publicly with link; attacker has the direct link; file moved to trash but not permanently deleted
The fix
Google stated this is working as intended; users should manually remove public sharing before trashing and permanently delete the file to truly revoke access.
How it was found
- Share a file publicly with 'Anyone with the link' as viewer.
- Move the file to the trash.
- Try to access the file via its usual Google Drive link and see the message that it is in the owner's trash.
- Use the direct download endpoint with the file ID to download the file successfully.
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 in Google Drive, you give people a link. Moving the file to the trash does not automatically remove that link's access. The normal web page stops showing a preview, but a different download address still works, so the file can still be downloaded by anyone who has the link.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.