Back to skills
SKILL.md
Session Security
ASecuritySession-management testing — session token quality/entropy, fixation, lifecycle (logout/expiry/rotation on privilege change), concurrent sessions, cookie attributes (HttpOnly/Secure/SameSite/__Host-/__Secure- prefixes, scope/domain), token storage (localStorage vs cookie), and remember-me token weaknesses. Tier 1. Use for any authenticated session mechanism.
- 16 stars
- 0 votes
- 0 copies
- 3 views
- Added November 17, 2026
Works with
Security analysis
100/100npx -y skills add AnandJogawade/Zazy-Pentest-Plugin-for-Claude --skill session-security --agent claude-codeAre you the author of Session Security?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/anandjogawade-session-security)---
name: session-security
description: Session-management testing — session token quality/entropy, fixation, lifecycle (logout/expiry/rotation on privilege change), concurrent sessions, cookie attributes (HttpOnly/Secure/SameSite/__Host-/__Secure- prefixes, scope/domain), token storage (localStorage vs cookie), and remember-me token weaknesses. Tier 1. Use for any authenticated session mechanism.
---
# Session Management Security
How sessions are issued, protected, and destroyed. Weaknesses here enable hijacking, fixation, and persistence after logout.
## Trigger phrases
`session management, session fixation, session token, cookie flags, samesite, __host-, logout, token entropy`
## Checks
- **Token quality:** entropy/predictability of session IDs & tokens (sequential, time-based, guessable); are they random/signed? Collect many, analyze.
- **Fixation:** does the session ID change on login? If a pre-auth ID stays valid post-login → fixation.
- **Lifecycle:** logout invalidates server-side? Tokens expire (idle + absolute)? Password change / role change revokes other sessions? Concurrent-session policy?
- **Cookie attributes:** `HttpOnly`, `Secure`, `SameSite` (Lax/Strict/None), `Domain`/`Path` scope, and `__Host-`/`__Secure-` prefixes (enforce secure+host-scoping) [NEW/RARE check].
- **Storage:** JWT/session in `localStorage` (XSS-stealable) vs cookie; token in URL (leaks via Referer/logs).
- **Remember-me:** predictable, non-expiring, reversible, or not tied to password change.
## Modern / rare
- **Cookie sandwiching / prefix bypass** attempts against `__Host-`/`__Secure-` parsing; cookie injection via subdomain (combine with XSS/takeover).
- SameSite=Lax top-level-GET window; cookie scoping across subdomains enabling fixation.
## Escalation
Weak/stealable sessions → account takeover; no-logout-invalidation → persistence; fixation → victim-session hijack. Chain with XSS (token theft) and CSRF.
## Backend
Use the preferred Kali path (native Kali / WSL+Kali / Kali-SSH / Kali-MCP / HexStrike / Metasploit-MCP) or a headless browser for client-side steps; Windows-local only as last resort. See `zazy-orchestrator`.
## Verification (background, before reporting)
Re-confirm every candidate independently (second account/session, replay, or OAST) before marking CONFIRMED. Report true positives only; hold back anything not reproduced.
## Evidence
Token analysis, the specific weakness (fixation proof, missing flag, non-expiring token), and impact.
Attribution
Related skills
View all in security →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.