Skip to content
Info disclosure Write-up Beginner

How I was able to access permanently deleted files from Google Dr

A print preview link for a shared PDF remained accessible after the file was permanently deleted from Google Drive. An attacker who had the link could retrieve the file during the link's 30–60 minute expiry window.

Krishnadev P Melevila Follow

Published on cybersecuritywriteups.com

It all started with a simple test — something any curious tech enthusiast might try. I had a PDF file stored in Google Drive.

Krishnadev P Melevila, on cybersecuritywriteups.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 print preview link is a cached or tokenised URL that remains valid until its normal expiry, without checking whether the underlying file has been deleted.

Impact

A person who obtained the print preview link before deletion could still access the file for up to 30–60 minutes after permanent deletion, creating a brief data exposure risk.

What the attacker needed

Attacker has the print preview link; File is permanently deleted; Access within 30–60 minutes

The fix

The print preview link should be invalidated immediately when the file is permanently deleted, rather than waiting for its normal expiry.

How it was found

  1. Create a shareable link for a PDF and view it.
  2. Open the link in incognito mode and click the Print option.
  3. Copy the print preview link from the browser.
  4. Move the file to Trash and permanently delete it from Google Drive.
  5. Try accessing the copied print preview link.

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, the service may create a temporary link for viewing or printing. This link can keep working even after you delete the file, because the service does not check deletion status. So someone with the link could still see the file for a short time after you think it is gone.

What is Info disclosure?

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

More by Krishnadev P Melevila

View all

18 more disclosed reports, best first.

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.