sc-session

Detect session management vulnerabilities in web applications and APIs.

7|Updated Apr 9, 2026
One-click install
npx skills add https://github.com/fatihkan/badi --skill sc-session-fatihkan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sc-session
Source: https://github.com/fatihkan/badi/tree/main/.claude/skills/security-check/sc-session
Command: npx skills add https://github.com/fatihkan/badi --skill sc-session-fatihkan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Detects and reports session management vulnerabilities across web applications, including cookie attributes, session lifecycles, and authentication flows.

Core Features & Use Cases

  • Detects session fixation, predictable tokens, insecure cookie attributes, missing regeneration on login, improper logout invalidation, and excessive timeouts across cookie-based, server-side, and token-based sessions.
  • Supports security audits for login/logout flows, and token lifecycle management in web services and APIs.

Quick Start

Run the sc-session scanner during security assessments to identify and remediate session-management flaws.

Frequently Asked Questions about sc-session

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

FAQPage Schema
How do I audit web applications for session management vulnerabilities?

To audit web applications for session management vulnerabilities, you need to validate cookie attributes, ensure session regeneration on login, and verify proper invalidation on logout. This detects session fixation, predictable tokens, and excessive timeouts across cookie-based, server-side, and token-based sessions.

What is session fixation and how does insecure session handling affect authentication flows?

Session fixation occurs when an attacker forces a user's session ID to remain unchanged, compromising authentication flows. Insecure session handling fails to regenerate tokens on login or improperly invalidates them on logout, allowing attackers to exploit predictable tokens and bypass security controls.

Can I detect session token vulnerabilities in web services and APIs?

Yes, you can detect session token vulnerabilities in web services and APIs by analyzing token lifecycles and authentication flows. This involves checking for session tokens in URLs, validating cookie attributes, and ensuring proper token invalidation during logout handling for both web services and APIs.

What's the best way to validate cookie security attributes during a security audit?

The best way to validate cookie security attributes during a security audit is to systematically check for insecure configurations and ensure proper session lifecycle management. This includes verifying session regeneration on login, avoiding session tokens in URLs, and confirming proper invalidation on logout.

Does this session management scanner check for improper logout invalidation and excessive timeouts?

Yes, this session management scanner checks for improper logout invalidation and excessive timeouts. It detects and reports these flaws across cookie-based, server-side, and token-based sessions, ensuring that session tokens are properly invalidated and timeout configurations do not expose the application to attacks.