Skip to main content
Threat playbook

Category: Account & Session Attacks

Session fixation in the browser

Session fixation is when an attacker forces a victim to use a session identifier the attacker already knows, then takes over that session after the victim authenticates.

Quick answer

It can turn a normal login into account compromise without needing to steal a password—especially on poorly implemented web apps.

For token theft and session hijacking patterns, isolation reduces exposure by separating web execution from the endpoint and limiting session residue when the container is deleted.

Last updated

2026-01-29

How it usually happens in the browser

  • The attacker obtains or sets a session ID and tricks the victim into visiting a URL or page that uses it.
  • The victim logs in, and the app fails to rotate the session ID upon authentication.
  • The attacker reuses the known session ID to access the authenticated session.
  • The attacker performs actions as the victim and may create persistence mechanisms.

What traditional defenses miss

  • It’s an application-layer flaw; endpoint and network tools may not detect it.
  • Users can’t easily observe session ID rotation or cookie flags.
  • Modern apps often implement this correctly, but legacy or custom apps may still be vulnerable.

How isolation changes the game

  • Isolation reduces exposure to untrusted pages that initiate session fixation attempts and makes those sessions disposable.
  • Policy-based isolation is particularly useful for legacy/internal apps accessed via links and redirects.
  • Isolation complements app-side best practices: rotate sessions on login and use secure cookie settings.

Operational checklist

  • Ensure apps rotate session identifiers after authentication and privilege changes.
  • Set secure cookie flags and implement short session lifetimes for sensitive apps.
  • Isolate unknown domains and untrusted content that could initiate session fixation links.
  • Add monitoring for unusual session reuse patterns and unexpected session IDs in URLs.
  • For internal apps, run periodic security testing focused on session management.

FAQs.

References

  1. 01
  2. 02

Keep exploring

Access anything.
Expose nothing.

Legba is a disposable real browser: it spawns a clean session, does the work, and destroys itself on close.

chromium / real fingerprint · residential ip · burn on close

Real browser. Real IP. Real page. Spawn a session. Do the work. Destroy it. Off your device. Off your stack. Gone on close.