mizazhaider-ceh/agentarsenal/session-management-security

Claude Code and agent skill by mizazhaider-ceh/agentarsenal

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when assessing session management on an authorized

Install

npx vskill@latest install mizazhaider-ceh/agentarsenal/session-management-security

SKILL.md

The same SKILL.md was published earlier as mizazhaider-ceh/agentarsenal/session-management-security.

Sessions are what login creates: get the cookie handling wrong and authentication does not matter. This skill covers authorized testing of session management: cookie flags, fixation, timeouts, rotation, and logout. Test with your own accounts on systems you may assess.

Quick Workflow

  1. Map the session tokens: names, where they live, and their

lifetime.

  1. Check cookie attributes: Secure, HttpOnly, SameSite, and Path.
  2. Test session fixation: can you plant a session ID the victim

then uses.

  1. Test rotation: does the ID change at login and privilege change.
  2. Check timeouts: idle and absolute, enforced server side.
  3. Test logout: is the session destroyed server side, everywhere.
  4. Check concurrent sessions: limits and user visibility.
  5. Report each gap with the exact request sequence.

1. Cookie and fixation tests

bash
# Cookie attributes (your test login)
curl -s -i -X POST 'https://target.example/login' \
-d "user=test@example.com&pass=Test1234!" | grep -i "^set-cookie:" | head -5
# Want: __Host- prefix or Secure; HttpOnly; SameSite=Lax or Strict
# Missing Secure/HttpOnly/SameSite = findings, graded by context
bash
# Session fixation test:
# 1. get a session ID anonymously
curl -s -i 'https://target.example/' | grep -i "^set-cookie:" | head -3
# 2. log in WITH that cookie set; 3. check if the same ID is now authed
# If the pre login ID becomes the authed session: fixation works
echo "fix: rotate the session ID at login, always"
bash
# Rotation at privilege change: log in, then elevate (or step up auth)
# and check whether the session ID changed again
echo "also test: password change should kill other sessions (or warn)"

2. Timeout and logout

bash
# Idle timeout: wait past the stated idle limit, then use the session
# Absolute timeout: sessions must die even if active (8-24h typical)
# Test server side: the cookie expiring client side is not enforcement
echo "verify server side by using the old token after the window"
bash
# Logout completeness:
# 1. log out, 2. replay the old session cookie -> must be rejected
# 3. check: API tokens revoked? remember me cleared? other devices?
curl -s 'https://target.example/api/me' -H "Cookie: session=$OLD" | head -c 200
# 200 with the old cookie after logout = broken logout

Edge cases

  • JWTs as sessions. Then "logout" needs a denylist or short

expiry; verify which one exists.

  • SSO sessions layered under app sessions. Log out of both, and

test each layer.

  • Remember me tokens are long lived. They need rotation on use

and theft detection to be safe.

Escalation

  • Fixation works: demonstrate with two test accounts (attacker

plants, victim logs in) as the proof.

  • No server side invalidation: the finding is architectural;

recommend server side session stores.

Detection and defender view

Defenders see session attacks as fixation attempts (login with planted IDs), session reuse after logout, and concurrent session anomalies. They defend with the cookie attributes, rotation, and server side invalidation this skill tests, plus anomaly detection on session use. The durable design treats sessions as credentials: generated securely, bound to context, and revocable instantly.

Key references

  • CWE-384 (Session Fixation).
  • CWE-613 (Insufficient Session Expiration).
  • CWE-614 (Sensitive Cookie Without Secure Attribute).
  • OWASP Session Management Cheat Sheet.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/mizazhaider-ceh/agentarsenal/session-management-security/badge)](https://verified-skill.com/skills/mizazhaider-ceh/agentarsenal/session-management-security)

Something wrong with this skill or its page? Tell us.