Skip to content
Account takeover Write-up Beginner

How I Discovered an Account Takeover Vulnerability via Improper S

After logging out, the account settings page could still be reached with the browser back button and changes to email or phone number were accepted without re-authentication. Someone with temporary access to a logged-out device could therefore alter another user's account details.

RAHUL -Nj Follow

Published on medium.com

Bug bounty hunting is an exciting journey where even small observations can lead to serious security findings. In this write-up, I will explain how I discovered an account takeover vulnerability caused by improper session management on a company’s website.

RAHUL -Nj, 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 server did not invalidate the session on logout and sensitive pages were served from the browser cache, so the settings form still submitted successfully.

Impact

An attacker with temporary access to a device could modify account details such as email or phone number, which could lead to account takeover.

What the attacker needed

Valid user account; temporary access to the logged-out device

The fix

Sessions should be invalidated on logout, sensitive pages should be sent with no-store cache headers, and sensitive changes should require re-authentication.

How it was found

  1. Log in with a valid account.
  2. Open the account settings page.
  3. Log out.
  4. Press the browser back button.
  5. The settings page appears again.
  6. Change the email or phone number and submit; the change is accepted.

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 log out of a website, the server should forget your session so old pages cannot be used again. Here the browser could still show the settings page from its cache, and the server accepted changes without checking the user was still logged in. That means anyone using the same device afterwards could change the account's email or phone number.

What is Account takeover?

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.