Skip to content
Access control Write-up Beginner

Appreciation Letter from NASA for Uncovering Unauthorized file Access

A restricted endpoint returned a 403 error, but a ZIP file at the same path was accessible and contained all files from that directory. An attacker could download and extract the archive to view sensitive files that should have been protected.

hackxb12 Follow

Published on medium.com

Hello, fellow bug hunters and aspiring security researchers! 🌟 I’m bhautikXploit (Bhautik Patel), a Security Researcher & bug hunter with a passion for uncovering vulnerabilities. In this post, I’ll be sharing how I got an Appreciation Letter from NASA — a moment that solidified my journey in the world of…

Bhautik Patel, on medium.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 web server applied access controls to the directory path but not to a ZIP archive of the same directory, allowing the archive to be downloaded without authentication.

Impact

An attacker could download and extract the ZIP file to access sensitive files that were otherwise restricted, potentially leading to data exposure.

What the attacker needed

None

How it was found

  1. Enumerate subdomains of the target domain.
  2. Filter for live subdomains.
  3. Gather endpoints from the live subdomains.
  4. Extract JavaScript file URLs and find an endpoint that returns 403.
  5. Search for archive files (.zip, .rar, .tar, .gz) among the collected URLs.
  6. Access a ZIP file with the same directory name as the restricted endpoint and extract its contents.

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 website had a folder that was supposed to be off-limits, and trying to open it directly gave an error. But the same folder was also available as a compressed ZIP file, and that file could be downloaded without any restriction. This let someone see all the files inside the folder.

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.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.