Skip to content
Access control Write-up Beginner

Admin Dashboard Accessible Without Authentication

The admin subdomain's protected directories returned a 302 redirect to the login page for unauthenticated users, but the server still served the protected content if the redirect was not followed. An attacker could access admin-only directories without authentication.

GR1M Follow

Published on medium.com

I discovered this vulnerability during a bug bounty event sponsored by a local tech company in collaboration with our school.

Arnolex Taghoy, 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 application enforced authentication only by issuing a redirect rather than blocking the request and returning an error, so the protected content was still sent in the redirect response.

What the attacker needed

None

How it was found

  1. Find the admin subdomain with a login form.
  2. Run a directory brute-forcer and note directories returning 302.
  3. Open a protected directory in a browser and see the redirect to login.
  4. Access the same directory without following the redirect to get the content.

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 visit a protected page without logging in, the server often sends a '302' message that tells your browser to go to the login page instead. The mistake here is that the server still sent the protected page's content along with that redirect message. If a tool ignores the redirect, it can read the protected content directly, so the login check was not really enforced.

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.