Skip to content
Business logic Write-up Beginner

Got Deactivated? No Problem — Here’s a 10-Minute Window

A deactivated super admin account retained full access for 5 to 10 minutes because the session was not invalidated. An attacker with an active session could invite new admins, change settings, or exfiltrate data after deactivation.

ValidByAccident Follow

Published on medium.com

You ever get kicked out of somewhere but the door takes 10 minutes to actually lock?

ValidByAccident, 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 did not invalidate or re-check existing sessions server-side upon deactivation, relying instead on a delayed session expiry.

Impact

A deactivated super admin could, for 5 to 10 minutes, invite new admins, change settings, exfiltrate data, or sabotage the organisation, though the text notes the security team argued this only matters if the attacker already controls the session.

What the attacker needed

Two super admin accounts; attacker controls an active session

The fix

Deactivation should immediately terminate all active sessions and block server-side actions for that account.

How it was found

  1. Create two super admin accounts, one as the actor and one as the target.
  2. Log into both accounts in different browsers.
  3. From the first admin, deactivate the second admin.
  4. Switch to the second admin's browser and observe that the session still has full access.

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 an account is deactivated, the system should immediately stop accepting its existing login session. Here, the session kept working for several minutes, so someone whose account was just disabled could still perform admin actions. This is a logic flaw: the system knew the account was deactivated but did not enforce it on active sessions.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More by ValidByAccident

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.