testing-session-management-flaws

Tests web application session handling for fixation, weak entropy, and invalidation flaws.

954|172|Updated Mar 13, 2026
One-click install
npx skills add https://github.com/xalgord/xalgorix --skill testing-session-management-flaws
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing-session-management-flaws
Source: https://github.com/xalgord/xalgorix/tree/main/internal/tools/skills/data/web-application-security/testing-session-management-flaws
Command: npx skills add https://github.com/xalgord/xalgorix --skill testing-session-management-flaws

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Web applications often mishandle session lifecycle events, leaving stolen cookies valid after logout or password changes and allowing fixation or tampering attacks. This Skill provides a systematic methodology to identify and exploit session management weaknesses during authorized penetration tests.

Core Features & Use Cases

  • Session Cookie Identification and Hardening Audit: Isolate the real session cookie among many, then verify HttpOnly, Secure, SameSite flags, Domain scope, and expiry.
  • Fixation, Entropy, and Replay Testing: Compare pre/post-authentication identifiers, mutate token bytes to find the validated segment, and replay cookies across IPs and user agents.
  • Invalidation and Tampering Checks: Confirm sessions are revoked on logout, password change, email change, and 2FA activation, and test unsigned client-side session data for role tampering.
  • Use Case: During a bug bounty engagement, capture a session cookie, change the account password in a second browser, and replay the old cookie to prove sessions survive credential resets.

Quick Start

Test the target application's session management by capturing the login cookie, checking its flags, and replaying it after logout and password change to confirm invalidation.

Frequently Asked Questions about testing-session-management-flaws

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

FAQPage Schema
How do I test for session fixation in a web application?

Capture the session cookie before authenticating, log in while sending that same cookie, then compare the post-login value. If the identifier does not rotate on authentication, an attacker can plant a known value on a victim and hijack their authenticated session.

How to check if sessions are invalidated after password change?

Capture a valid session cookie, change the account password from a second browser or session, then replay the original cookie against a protected endpoint. An HTTP 200 response means old sessions survive the reset, which is a critical finding for compromised-credential scenarios.

What tools are used for session management testing?

Burp Suite Professional provides the proxy, Repeater for replay, and Sequencer for token randomness analysis across thousands of samples. curl or httpie handle manual cookie crafting and cross-IP replay, while browser DevTools inspect cookie flags, scope, and expiry.

How do I measure session token entropy?

Mutate one byte at a time in the token and replay it to identify which positions are actually validated, revealing the effective secret length. For statistical randomness, capture 5,000 or more freshly issued tokens in Burp Sequencer and analyze effective entropy bits.

Why is a missing HttpOnly flag on session cookies a risk?

Without HttpOnly, JavaScript can read the session cookie via document.cookie, so any reflected or stored XSS payload can exfiltrate it. This enables full account takeover without needing the victim's credentials.

When should session management testing not be performed?

Only test with written authorization for the target application, as replaying and tampering with sessions constitutes active exploitation. It is out of scope for production systems without a signed penetration testing agreement or bug bounty program coverage.