Skills

Authentication Session Testing

Black-box testing of the full authentication and session lifecycle - registration...

Install

npx skills add xalgorix/xalgorix --skill authentication-session-testing -g -a claude-code -y
Repository
xalgorix/xalgorix1.3k
Category
Testing
Updated
5d ago
License
Apache-2.0
Context cost
Mediumabout 1,998 tokens
Runs scripts
No, instructions only

What it does

Black-box testing of the full authentication and session lifecycle - registration, login, MFA, password reset, recovery, email change, logout, refresh, device trust - and session token handling including fixation, invalidation, replay, and cross-context binding.

Authentication and Session Testing

Purpose

Test the entire account and session lifecycle as a state machine, not just login. Every lifecycle transition (register, verify, login, MFA, reset, recovery, email change, role change, logout) is a boundary where revocation, binding, or downgrade logic is forgotten.

Entry Conditions

  • The target has any account lifecycle: signup, login, password reset, MFA, profile/email change, or log-out-other-sessions features
  • You hold at least one valid account (ideally two, plus control of a second email address)

Step 0: Find the REAL Session Token

Apps set many cookies (analytics, CSRF, consent). Delete cookies one at a time and re-request a protected page - the one whose removal logs you out is the session token. Test only that one for the flaws below.

Session Lifecycle Matrix

Capture a valid session token, then perform each lifecycle event in a SEPARATE session and replay the old token against a protected route. Record status + body differential for each:

EventQuestionEvidence to capture
Logoutis the old token dead server-side?old cookie replay after logout
Password changeare other sessions revoked?old session still valid after change
Password resetdoes reset invalidate all sessions?old session after reset completes
MFA change / enrollmentare sessions re-verified?old session after MFA enrollment
Role change (up or down)does privilege apply to existing sessions?old session reaching admin route after downgrade
Account disable / deletionimmediate revocation?old session after admin-side disable
Email changedoes notification + re-verification occur?old session after email change

A stale token still working after logout is a server-side revocation failure (critical for stolen-session scenarios) - prove it with a state-changing request, not a cached GET.

Session Token Handling

Read the whole SKILL.md on GitHub

More in Testing