Printerpix and the not so private photo album
Printerpix stored uploaded photos in an S3 bucket that was publicly accessible and had indexing enabled, so any internet user could list and download all customer images. An attacker could enumerate and view private photos without authentication.
Published on pentestpartners.com
There are many services that allow digital photos to be converted to prints. These include a plethora of other printing services so that customer photos may be converted to picture books, mugs, magnetic photo tiles, clothing or even a throw.
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 bucket was configured to allow public read access and directory listing (indexing) was left enabled, despite signed upload URLs being used.
Impact
Any internet user could enumerate and download all uploaded customer photos, exposing private images; the bucket was later made inaccessible after migration.
What the attacker needed
No account needed to access bucket; Know the bucket URL
The fix
The vulnerability was fixed by migrating to a different cloud provider and configuring permissions on the new store to be more secure, and later moving image storage to a CDN that does not allow indexing.
How it was found
- Upload an image through the Printerpix designer, which returns a JSON with an S3 key and a signed upload URL.
- Send a PUT request to the signed upload URL to store the raw image.
- Later, a GET request is made to the bucket using the image key.
- Visit the bucket URL directly and observe that indexing is enabled, returning an XML list of all keys.
- Use the listed keys to access and download the images.
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.
A bucket is cloud storage where files are kept under names called keys. Here the bucket allowed anyone to list all the keys and then download the files, so private photos were exposed to anyone who found the bucket address.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.