Skip to content
Access control Disclosed report Beginner

Improper Session Invalidation – Auto Sign-In Without Credentials After Logout (Affects Chrome & Firefox)

After logging out, the web application automatically signs the user back in when they revisit the login page, without requiring credentials. An attacker with temporary physical access to the browser could regain access to the account.

pent0ss Follow

Originally disclosed on HackerOne

  • Disclosed after 10 days

Summary:

When a user logs out, the session is not invalidated properly. Revisiting the login page allows automatic re-authentication without any user input. This means the session remains active or is being improperly restored.

Tested on:

  • Google Chrome
  • Mozilla Firefox

Behavior is consistent across multiple browsers

Steps To Reproduce:

  1. Log in to the web application with a valid account.
  2. Click on the "Logout" button.
  3. Stay in the same browser, or open a new tab with the site.
  4. Click on “Sign In” or visit the login page.

Observe: User is automatically signed back in without entering email/password

Expected Behavior:

  • On logout, all session tokens should be invalidated both client and server-side.

  • Revisiting the login page must not restore access without re-authentication

Recommendation:

  • Properly invalidate the session on the server.
  • Remove all tokens/cookies from the browser.
  • Set cache-control headers to prevent session restoration via back/forward navigation.
  • Consider revoking refresh tokens where applicable

Impact

  • Logout becomes meaningless, giving a false sense of security.
  • If someone else gains temporary or physical access to the browser, they can easily regain access to the account without credentials.
  • Risk is amplified in environments like internet cafés, libraries, or if a device is lost/stolen.

Attachments

The original report as published on HackerOne, by pent0ss. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 5 min read.

What the report shows

The target is the Dust web application at https://eu.dust.tt/, and the feature under test is the ordinary login and logout flow. The researcher, pent0ss, reported the issue through HackerOne, where it was classified as Insufficient Session Expiration with a medium severity. The report was disclosed on 29 April 2025. No bounty figure is given.

The claim is simple: logging out does not properly end the session. When the user returns to the login page, the application signs them back in automatically, with no email or password entered. The researcher tested this on Google Chrome and Mozilla Firefox and found the behaviour consistent across both browsers.

Steps to reproduce

  1. Log in to the web application with a valid account.
  2. Click on the "Logout" button.
  3. Stay in the same browser, or open a new tab with the site.
  4. Click on "Sign In" or visit the login page.

The observed result is that the user is automatically signed back in without entering email or password.

Expected behaviour

The report states two expectations:

  • On logout, all session tokens should be invalidated both client and server side.
  • Revisiting the login page must not restore access without re-authentication.

The report does not include HTTP requests, responses, cookies or headers, so there is nothing to reproduce at the protocol level from the text alone. The report includes one attachment.

Root cause

The report points to session invalidation that is incomplete. The report does not identify the cause; it only states that the session "remains active or is being improperly restored". The report itself does not identify which of these applies; it only states that the session "remains active or is being improperly restored".

Impact

The report frames the impact around a false sense of security: logout becomes meaningless. If someone else gains temporary or physical access to the browser, they can regain access to the account without credentials. The risk is amplified in shared environments such as internet cafés and libraries, or if the device is lost or stolen. These are the report's own hedges; it does not claim remote exploitation or account takeover without access to the browser.

How this kind of bug works

A session normally has two halves: a client-side artefact (a cookie, a token in storage, or cached page state) and a server-side record that says the session is valid. Logout should destroy both. Bugs appear when only one side is handled.

Common mechanisms:

  • The server keeps the session record alive and the client keeps a valid cookie or token, so the next request is authenticated again.
  • The client clears the cookie but a refresh token or long-lived token remains, and the login page silently exchanges it for a new session.
  • The login page is served from the browser cache or the back/forward cache with an authenticated state, and a script on that page restores the session.
  • The application uses a single sign-on or identity provider session that is not terminated on logout, so the next visit to the relying application re-authenticates silently.

Defences are correspondingly layered: server-side session destruction, token revocation, clearing all client storage, and cache headers that prevent authenticated pages from being restored from history.

How to test for it

This is a manual, stateful test. Work through it methodically:

  1. Authenticate with a test account and confirm the session works.
  2. Record the cookies and tokens present before logout, using browser developer tools.
  3. Trigger logout through the normal UI control.
  4. Inspect what changed: which cookies were removed or expired, which storage entries remain, and whether any token still looks valid.
  5. Replay a previously captured authenticated request with the old cookie or token. A positive result is a successful authenticated response after logout.
  6. Visit the login page directly, in the same tab and in a new tab, and observe whether you are signed in without entering credentials.
  7. Test the back and forward buttons after logout to see whether an authenticated page is restored from cache.
  8. Repeat in more than one browser, since behaviour can differ between engines and their caching.

A positive result looks like an authenticated response or an automatic sign-in after logout, with no credential entry. Common false positives:

  • The application re-authenticates through a still-valid identity provider session, which may be intended single sign-on behaviour rather than a flaw.
  • A page is restored from cache but its API calls fail, so the user only sees stale content, not live access.
  • The test account was signed in elsewhere and the session was legitimately shared.
  • A token appears in storage but is already rejected by the server; always confirm with a replay rather than inspecting storage alone.

How it is fixed

  • Destroy the server-side session record on logout, not just the client cookie.
  • Revoke refresh tokens and any other long-lived credentials issued to that session.
  • Clear all client-side storage that carries authentication state.
  • Send cache-control headers on authenticated pages so they are not restored from history or the back/forward cache.
  • Ensure the login page does not silently restore a session from residual state; require an explicit authentication step.

Hunting notes

This class of bug tends to hide in applications with several authentication paths: web sessions, mobile or API tokens, single sign-on, and "remember me" features. Logout is often implemented once and not updated when new token types are added, so the newest token type is the one left alive.

Recon signals worth noting: applications that issue both cookies and bearer tokens, login pages that redirect automatically, and any client-side code that reads tokens from storage on page load. Multi-tab behaviour and back/forward navigation are cheap to test and often overlooked.

Keep the impact grounded in the access model the report describes, such as shared or lost devices, rather than claiming remote takeover.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 7 min read.

What happened, in plain words

Dust is a web application reachable at https://eu.dust.tt/. Like most sites with accounts, it has a login page where you type your email and password, and a logout button that is supposed to end your session. A session is the period during which the site remembers that you are you, so you do not have to type your password on every page.

The researcher pent0ss reported through HackerOne that logging out does not really end the session. After clicking "Logout", going back to the login page or clicking "Sign In" signs the user straight back in, with no email or password entered. The issue was classified as Insufficient Session Expiration, with medium severity, and disclosed on 29 April 2025. No bounty amount is given.

The researcher tested this on Google Chrome and Mozilla Firefox and found the same behaviour in both.

Steps to reproduce

  1. Log in to the web application with a valid account.
  2. Click on the "Logout" button.
  3. Stay in the same browser, or open a new tab with the site.
  4. Click on "Sign In" or visit the login page.

The observed result is that the user is automatically signed back in without entering email or password.

Each step matters for a reason. Step 1 establishes a real, working session, so there is something to end. Step 2 is the action that is supposed to destroy it. Step 3 checks whether the problem depends on the tab you are in: staying put tests the same tab, and a new tab tests whether a fresh page load also restores access. Step 4 is the actual test, because a correct logout should leave you at a login page that asks for credentials.

Expected behaviour

The report states two expectations:

  • On logout, all session tokens should be invalidated both client and server side.
  • Revisiting the login page must not restore access without re-authentication.

The first point covers both halves of a session. The client side is your browser: cookies and stored values. The server side is the application's own record that says "this session is valid". Logout should destroy both. The second point is the user-visible promise: after logout, access should require credentials again.

The report contains no HTTP requests, responses, cookies or headers, so there is nothing at the protocol level to copy or replay from the text alone. The report includes one attachment.

Why it matters

The report frames the impact around a false sense of security: logout becomes meaningless. If someone else gains temporary or physical access to the browser, they can regain access to the account without credentials. The risk is amplified in shared environments such as internet cafés and libraries, or if the device is lost or stolen. These are the report's own limits; it does not claim remote exploitation or account takeover without access to the browser.

In general, how this kind of bug works

A session normally has two halves. On your side there is a client-side artefact: a cookie, a token kept in browser storage, or cached page state. On the application's side there is a server-side record saying the session is valid. Think of a cloakroom: you hold a ticket (the cookie) and the attendant holds a matching list (the server record). Logout should tear up the ticket and cross the entry off the list. Bugs appear when only one of the two is handled.

Common mechanisms:

  • The server keeps the session record alive and the browser keeps a valid cookie or token, so the next request is authenticated again.
  • The browser clears the cookie but a refresh token or long-lived token remains, and the login page silently exchanges it for a new session. A refresh token is a credential whose job is to obtain new short-lived access tokens without asking for a password again.
  • The login page is served from the browser cache or the back/forward cache with an authenticated state, and a script on that page restores the session. The back/forward cache is the browser keeping a fully rendered page in memory so the back button feels instant.
  • The application relies on a single sign-on or identity provider session that is not ended on logout, so the next visit re-authenticates silently. Single sign-on means one login is shared across several applications.

Defences are correspondingly layered: destroying the session on the server, revoking tokens, clearing all client storage, and sending cache headers that stop authenticated pages being restored from history.

How to test for it

This is a manual, stateful test: you carry a session through several steps and watch what changes.

  1. Authenticate with a test account and confirm the session works.
  2. Record the cookies and tokens present before logout, using browser developer tools.
  3. Trigger logout through the normal UI control.
  4. Inspect what changed: which cookies were removed or expired, which storage entries remain, and whether any token still looks valid.
  5. Replay a previously captured authenticated request with the old cookie or token. A positive result is a successful authenticated response after logout.
  6. Visit the login page directly, in the same tab and in a new tab, and observe whether you are signed in without entering credentials.
  7. Test the back and forward buttons after logout to see whether an authenticated page is restored from cache.
  8. Repeat in more than one browser, since behaviour can differ between engines and their caching.

A positive result looks like an authenticated response or an automatic sign-in after logout, with no credential entry. Common false positives:

  • The application re-authenticates through a still-valid identity provider session, which may be intended single sign-on behaviour rather than a flaw.
  • A page is restored from cache but its API calls fail, so the user only sees stale content, not live access.
  • The test account was signed in elsewhere and the session was legitimately shared.
  • A token appears in storage but is already rejected by the server; always confirm with a replay rather than inspecting storage alone.

How it is fixed

  • Destroy the server-side session record on logout, not just the client cookie.
  • Revoke refresh tokens and any other long-lived credentials issued to that session.
  • Clear all client-side storage that carries authentication state.
  • Send cache-control headers on authenticated pages so they are not restored from history or the back/forward cache.
  • Ensure the login page does not silently restore a session from residual state; require an explicit authentication step.

Where this bug tends to hide

This class of bug tends to appear in applications with several authentication paths: web sessions, mobile or API tokens, single sign-on, and "remember me" features. Logout is often implemented once and not updated when new token types are added, so the newest token type is the one left alive.

Signals worth noting: applications that issue both cookies and bearer tokens, login pages that redirect automatically, and any client-side code that reads tokens from storage on page load. Multi-tab behaviour and back/forward navigation are cheap to test and often overlooked.

Keep the impact grounded in the access model the report describes, such as shared or lost devices, rather than claiming remote takeover.

Glossary

  • Session: the period during which a site remembers who you are, so you do not re-enter your password on every page.
  • Session token: a value the site gives your browser to prove your session is valid on later requests.
  • Cookie: a small piece of data a site stores in your browser and sends back with each request to that site.
  • Client side: everything happening in your browser, such as cookies and stored values.
  • Server side: the application's own systems, including its record of which sessions are valid.
  • Session invalidation: ending a session so that its tokens no longer grant access.
  • Insufficient Session Expiration: the vulnerability class where a session is not properly ended when it should be, such as at logout.
  • Refresh token: a long-lived credential used to obtain new short-lived access tokens without asking for a password again.
  • Bearer token: a token that grants access to whoever presents it, like a ticket that is not tied to a person.
  • Cache: a copy of a page or data kept so it can be shown again quickly without fetching it fresh.
  • Back/forward cache: the browser keeping a fully rendered page in memory so the back and forward buttons feel instant.
  • Cache-control header: an instruction a server sends with a page telling the browser whether and how long to cache it.
  • Single sign-on (SSO): one login shared across several applications through a central identity provider.
  • Identity provider: the service that holds your login and confirms your identity to other applications.
  • Replay: sending a previously captured request again, here with an old cookie or token, to see whether it is still accepted.
  • False positive: a test result that looks like a bug but is not one, for example intended single sign-on behaviour.
  • HTTP request: the message your browser sends to a server asking for a page or data.
  • API: the interface an application uses to fetch and change data behind its pages.
  • Developer tools: the built-in browser panel that shows cookies, storage and network traffic.
  • CVSS: a standard scoring system for the severity of a security issue; no score is given for this report.

More by pent0ss

View all

1 more disclosed report, best first.

More from Dust

View all

The newest disclosed reports for this program.

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.