Improper Media Deletion How I Found Publicly Accessible Deleted Files
Product images uploaded to a payment and e-commerce platform remained publicly accessible via their CDN links even after being deleted in the UI, whether deleted before saving the product or after saving and later removing it. An attacker with the link could retrieve deleted files without authentication, causing privacy exposure and potential brand abuse.
Published on saconychukwu.medium.com
While testing a payment and e-commerce platform for potential security weaknesses, I discovered a flaw in how it handled file deletion for product images. Even after an image was deleted whether before saving the product or after saving and later removing it the file remained publicly accessible through its CDN link.
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 application removed the database reference to the image but never deleted the underlying object from public CDN storage.
Impact
Deleted images could remain publicly accessible to anyone with the link, causing privacy exposure and allowing attackers to serve misleading content from a trusted payment platform's CDN.
What the attacker needed
A merchant account able to upload product images; knowledge of the image's CDN URL
The fix
The application should delete the underlying file from CDN storage when an image is removed, not just the reference in the UI.
How it was found
- Go to the product creation page and upload an image as the cover.
- Delete the image before saving, then copy its upload URL from the browser network tab.
- Save the product without the image and open the copied URL in a private browsing window.
- Create a product with a cover image, save it, and copy the image's CDN URL.
- Delete the image or the whole product, then open the copied URL in a private browsing window.
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 upload a picture to a website, the site usually stores it on a separate file server (a CDN) and gives it a public web address. Deleting the picture in the website's interface only removes the reference to it; the file itself stays on the server and anyone who knows the address can still open it. This report shows that happening on a shopping platform, so deleted product photos could still be viewed by anyone with the link.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.