🔐Session Hijacking
Also known as Session Hijack, Cookie Hijacking, Session Theft
Stealing someone's login so you can act as them. No password is needed.
Think of it like
Think of it like a wristband at a fair. Whoever has it gets in as you.
Example
A script on a forum page reads Lucy's session cookie and sends it away. The attacker pastes it in and is logged in as Lucy.
Why it matters
Definition
Example code
http
Set-Cookie: session=7f3a9c; HttpOnly; Secure; SameSite=LaxCommon mistake
Key takeaways
- 1The ID is the key. Whoever holds it is you.
- 2Many ways to steal. XSS, open Wi-Fi and leaked links.
- 3Lock the cookie. HttpOnly, Secure and short lives.