Skip to content
Access control Write-up Beginner

The strangest scenario I’ve found: Improper authentication

A login page on a subdomain would grant an authenticated session to any visitor who downloaded one of three publicly indexed CSV files, without valid credentials. An attacker could then reach the administration panel of the profile named in the CSV file paths.

medium.com

Published on medium.com

It was the end of the day, and being tired, I decided to return to one of my targets to do some reconnaissance. And that’s how I play with the Google dorks.

k4e, 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 file-download endpoint created and attached an authenticated session for the user named in the file path without checking that the requester had logged in.

Impact

An unauthenticated attacker could obtain a session for the profile named in the CSV path and access that profile's full administration panel.

What the attacker needed

Publicly indexed CSV files; no account needed

How it was found

  1. Search the target domain for indexed CSV files using a search engine dork.
  2. Find a subdomain hosting three CSV files whose URLs contain a username and a /Home path.
  3. Open the subdomain and confirm it shows a login page.
  4. Download one of the CSV files.
  5. Return to the login page and refresh to be logged in as the user from the path.
  6. Log out, download a CSV again, and confirm the session returns.

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 session token is a short code a website gives your browser after you log in, so it remembers who you are on later requests. Here the site handed out that code to anyone who downloaded a public file, even without logging in. That meant a stranger could open the admin area of another user's profile.

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.