Skip to content
Access control Write-up Beginner

How I Found Two Overlooked Vulnerabilities That Could Lead to Acc

The application failed to invalidate all active sessions immediately after a password change, leaving other sessions valid for about five minutes. Additionally, after logout, pressing the browser back button displayed cached pages containing sensitive personal data.

Ahmed Ashraf Shora Follow

Published on medium.com

In my recent exploration of a live web application, I encountered two subtle yet impactful vulnerabilities related to session management and cache handling. While they may seem minor at first glance, their combination could lead to serious security consequences — including unauthorized access and potential account…

Ahmed Ashraf Shora, 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 immediately revoke all sessions upon password change and did not set proper cache-control headers on sensitive pages.

Impact

An attacker with a hijacked session could continue accessing the account for several minutes after a password change, and cached pages could expose personal information even after logout.

What the attacker needed

Attacker has a valid session; victim changes password; victim logs out and someone uses back button

The fix

The application should invalidate all sessions immediately upon password change and set cache-control headers such as no-store on sensitive pages.

How it was found

  1. Log in to the same account in two different browsers.
  2. In one browser, change the account password.
  3. In the other browser, refresh the page and observe that the session remains active.
  4. Log out of the account.
  5. Press the browser's back button and observe that the previous page with sensitive information is displayed again.

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 change your password, the system should log you out everywhere else to stop anyone who might have stolen your session. Here, other sessions stayed active for a few minutes. Also, after logging out, the browser's back button could show private pages because the site didn't tell the browser not to save them.

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.