Improper Storage of Private Project’s Files
Private project files were stored in an S3 bucket with predictable timestamp-based paths, allowing an attacker to guess and access other users' private files. The attacker could view or download private files by fuzzing timestamps.
Published on medium.com
{{media:0}}
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 stored private files in a publicly accessible S3 bucket and used predictable timestamp-based paths without proper access controls.
What the attacker needed
A free account; ability to create projects
The fix
The issue was fixed by adding an authentication token verifier to view or download files from the S3 bucket.
How it was found
- Create a public project and note the S3 URL containing a timestamp-based path.
- Create a private project and observe a similar S3 URL with a different timestamp.
- Write a script to generate timestamps for a full day and fuzz the S3 bucket.
- Successfully access private files of other users.
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 save a file in a web app, it often goes to cloud storage like Amazon S3. The app used a simple number (a timestamp) in the file's web address, so anyone could change that number and see other people's private files. This is like storing documents in a shared folder where the filename is just the date and time.
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.