Skip to content
Access control Write-up Beginner

Browser Back Button

After a user logged out, pressing the browser back button still showed the application dashboard and allowed the tester to reset a password and sign in as the victim. The text also claims an admin account could be created the same way, though no screenshots of that are shown.

medium.com

Published on medium.com

Mmmmm, it’s theory time. Well, you guys are lucky because I don’t do theory at all, but it’s needed for your basics.

Ghost, 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 relied on the browser's cached pages and did not expire the session server-side on logout, so back-button navigation still rendered authenticated content and actions.

Impact

An attacker with brief physical access to an unlocked, logged-out browser could view sensitive pages and reset the account password, and the author claims could also create an admin account.

What the attacker needed

Physical access to an unlocked laptop; victim previously logged in and out; attacker knows the username

The fix

The application should send cache-control headers and expire the user session on the server side at logout.

How it was found

  1. Find an open laptop showing the application login page and press the browser back button.
  2. The dashboard appears; open the user profile and click the reset password option.
  3. Enter the new password details and click Update.
  4. A success message is shown.
  5. Enter the victim's username with the new password and click sign-in.
  6. The tester is logged in as the victim.

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 site should forget who you are and stop showing your private pages. Here, the browser kept a saved copy of the logged-in pages, so pressing the back button showed them again and the site still let the tester change the password. That means anyone who gets a moment alone with an unlocked laptop could take over the account.

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.