Skip to content
Access control Write-up Beginner

When “Login” Was Enough: How a Single Click Compromised an Application

The login endpoint issued a valid authenticated session when submitted with empty credentials, because the application treated IIS anonymous authentication as proof of identity. An attacker could reach the post-login dashboard and its data without any username or password.

dealonzius13 Follow

Published on medium.com

This wasn’t a toy app. It was a production web application, backed by a real user database, real data, and real risk.

Dealonzius, 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 trusted the upstream web server's authentication state and never checked that credentials were supplied or correct, so it failed open instead of failing closed.

Impact

Anyone who submitted the empty login form received an authenticated session and access to the dashboard and its data, with no credentials required.

What the attacker needed

No account needed; victim or attacker submits empty login form

The fix

The application should require credentials to exist and validate them, and should fail closed rather than trusting the upstream anonymous authentication state.

How it was found

  1. Open the login form and submit it with the username and password fields left empty.
  2. Observe that the application returns a valid session and sets authentication cookies.
  3. Observe the redirect to an authenticated page, confirming access without credentials.

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 login page is supposed to check who you are before letting you in. Here the server was set up to let anonymous visitors through, and the application wrongly read that as 'this person is already logged in', so it handed out a session to anyone who pressed the button. That means the door opened for people who never proved who they were.

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.