2026-06-11
What is session fixation — making a victim log in with an ID the attacker already knows
Session fixation makes a victim use an attacker-known session ID, then impersonates them after they log in with it. The main defense: regenerate the session ID on login (and on privilege change). Don't accept IDs from the URL, and set HttpOnly/Secure/SameSite on cookies.