File Disclosure via .DS_Store file (macOS)
A macOS .DS_Store file was left publicly accessible on a web server, and it listed the names of files in the directory. An attacker could read those file names and then fetch the listed files directly, though the report only shows harmless asset files being exposed.
Published on omespino.com
Title Directory Listing Disclosure via .DSStore file (macOS) Product / URL: https://live.oculus.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 site owner uploaded a folder from macOS to the web server without removing the hidden .DS_Store metadata file, so the server served it as a normal static file.
Impact
The exposed file names could reveal directory contents, but the report only demonstrates harmless image and asset files, and the program concluded that no sensitive data was exposed.
What the attacker needed
A .DS_Store file left on a public server; no authentication needed
The fix
The .DS_Store files were removed from the server, and the reporter confirmed the issue was patched.
How it was found
- Request the .DS_Store file from the assets directory of the site, which downloads automatically.
- Save a small parser script and run it against the downloaded file to print the listed entries.
- Request the .DS_Store file from the images subdirectory and run the parser again to list its files.
- Open one of the listed files in a browser to confirm it is publicly reachable.
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 copy a folder on a Mac, the system quietly adds a small hidden file called .DS_Store that remembers how the folder looked. If that file is uploaded to a website by mistake, anyone can download it and read the names of the files in that folder. The names alone are not secret data, but they can point an attacker to files that should not be public.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.