hunt-session

Identify and exploit session-management weaknesses across web app login and logout flows.

3.3k|507|Updated May 5, 2026
One-click install
npx skills add https://github.com/elementalsouls/Claude-BugHunter --skill hunt-session-elementalsouls
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: hunt-session
Source: https://github.com/elementalsouls/Claude-BugHunter/tree/main/skills/hunt-session
Command: npx skills add https://github.com/elementalsouls/Claude-BugHunter --skill hunt-session-elementalsouls

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Identify and validate weaknesses in session management that can lead to account takeover, unauthorized access, or persistent sessions, through structured testing of session issuance, invalidation, and binding controls.

Core Features & Use Cases

  • Evaluate session fixation defenses and whether a login flow regenerates the session
  • Detect inadequate invalidation on logout, password-change, and email-change
  • Assess session-id entropy, and JWT-as-session risks without exp and revocation
  • Test refresh-token rotation and reuse-detection across OAuth/SSO
  • Verify device-bound-session (DBSC) downgrades and cookie attribute hardening
  • Map findings to concrete remediation and secure coding practices

Quick Start

Describe a realistic two-session scenario to validate fixation and persistence, then document findings and mitigations.

Frequently Asked Questions about hunt-session

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test for session fixation and account takeover vulnerabilities?▼

Testing for session fixation requires simulating two real sessions, an attacker and a victim, to verify if the login flow regenerates the session ID. You validate persistence by checking whether the application invalidates old identifiers after authentication.

What are the security risks of using JWT as a session management mechanism?▼

Using JWT for session management introduces risks if tokens lack exp claims or revocation mechanisms. You must assess token entropy and insufficient invalidation during logout and password changes to prevent persistent unauthorized access.

How do I validate OAuth refresh token rotation and reuse detection?▼

Validating OAuth refresh token rotation requires testing SSO flows to confirm the server detects replay attacks. You apply body-diff verification across two sessions to ensure stolen tokens are invalidated upon reuse.

Does this approach work for testing device-bound sessions and cookie hardening?▼

Yes, this approach tests device-bound sessions by attempting downgrades against DBSC implementations. It verifies cookie attribute hardening, ensuring flags like HttpOnly and Secure prevent cross-session theft risks.

What is the best way to map session management findings to OWASP WSTG?▼

Mapping session management findings to OWASP WSTG involves aligning discovered fixation and invalidation weaknesses with standard testing guides. You document persistent cross-session risks and specify concrete remediation practices for secure coding.