Skip to content
Back to skills

Session Security

ASecurity

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.

  • 16 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 17, 2026
securitygotestingbackendsecurity

Works with

  • cli
  • mcp

Security analysis

A100/100

Scanned November 17, 2026

npx -y skills add AnandJogawade/Zazy-Pentest-Plugin-for-Claude --skill session-security --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Session Security?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Session Security
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/anandjogawade-session-security/badge)](https://www.skillsdirectory.com/skills/anandjogawade-session-security)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in security →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.