Interesting .DS_Store finding worth $$
A .DS_Store file was publicly accessible on an AWS-hosted site, and by recursively enumerating .DS_Store files in subdirectories the author found sensitive documents and a login page with only client-side authentication, which could be bypassed.
Hello fellow hacker, hope you’re doing well. In this write-up, I’ll discuss a bug I’ve discovered across multiple AWS URL within a private bug bounty program on Bugcrowd.
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 web server served hidden macOS metadata files (.DS_Store) and the login page relied on client-side authentication only.
What the attacker needed
No credentials provided; publicly accessible AWS endpoint; server serves .DS_Store files
How it was found
- Inspect the main website in the debugger and note AWS endpoints it communicates with.
- Brute force the AWS instance to find a .DS_Store file.
- Use a Python script to extract directory names from the .DS_Store file.
- Write a script to check each extracted directory for its own .DS_Store file.
- From the discovered directories, find sensitive documents and a login page with client-side authentication.
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 .DS_Store file is a hidden file that macOS creates to remember folder settings, and it can list the names of files in that folder. If a website accidentally leaves one accessible, an attacker can read those names and find files or pages that were not meant to be public. Here, the author used that to discover a login page whose protection was only in the browser, so it could be skipped.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.