Authentication and session-management testing — login flaws, credential stuffing/brute force and rate-limit bypass, username enumeration, password-reset and account-recovery abuse, MFA/2FA bypass, registration flaws, and session lifecycle weaknesses (fixation, weak tokens, logout, cookie flags). Use for any login, registration, recovery, or session feature.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Web Auth Session?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/anandjogawade-web-auth-session)
---
name: web-auth-session
description: Authentication and session-management testing — login flaws, credential stuffing/brute force and rate-limit bypass, username enumeration, password-reset and account-recovery abuse, MFA/2FA bypass, registration flaws, and session lifecycle weaknesses (fixation, weak tokens, logout, cookie flags). Use for any login, registration, recovery, or session feature.
---
# Authentication & Session Management
Authentication is where account takeover lives. Test the whole lifecycle: register → login → MFA → stay-logged-in → reset → logout. Confirm real impact (session granted, victim account controlled), not just error differences.
## Trigger phrases
`authentication, login, brute force, credential stuffing, password reset, account takeover, 2fa bypass, mfa bypass, otp, session fixation, rate limiting, username enumeration, remember me`
## 1. Pre-auth enumeration
- **Username enumeration:** differing responses/timings between valid and invalid users on login, registration ("already taken"), and reset ("email sent" vs "not found"). Build a user list for later attacks.
- **Default/weak credentials:** admin:admin, product defaults, seeded test accounts.
## 2. Credential attacks & rate limiting
- Brute force / password spraying (one password across many users to dodge lockout) / credential stuffing with breach combos — within RoE.
- **Rate-limit bypass:** rotate `X-Forwarded-For`/`X-Real-IP`, vary case/padding in username, use the password-reset or token-verify endpoint if login is limited, parallel requests, null-byte/unicode tricks, switch between web and API endpoints, reset the counter via a different flow. Lockout that counts by username but not IP (or vice-versa) is bypassable.
## 3. Password reset / account recovery (high ATO yield)
- **Host-header poisoning:** inject `Host`/`X-Forwarded-Host` so the reset link points to your domain → steal victim's token (→ `web-injection`).
- **Token weaknesses:** predictable/sequential tokens, short tokens brute-forceable, no expiry, reuse, token leaked in response/Referer, token not bound to user (use A's valid token to reset B).
- **Logic flaws:** reset without old password, changing the account identifier mid-flow, response-based bypass (manipulate JSON to skip verification), parameter pollution on `email`/`user`.
- **Security questions / OTP recovery:** guessable answers, OTP reuse/brute.
## 4. MFA / 2FA bypass
- **Flow bypass:** access post-login resources with the pre-MFA session, skip the MFA step by direct navigation, or replay the "MFA verified" response.
- **OTP brute force / no rate limit** on the verify endpoint; OTP reuse; OTP not invalidated after use; predictable OTP; leaked OTP in response.
- **Backup/remember-device:** forge "trusted device" cookie, downgrade to a weaker second factor, disable MFA via an under-protected settings endpoint, or use a recovery flow that skips MFA.
- **Race conditions** on OTP verification (→ `web-business-logic`).
## 5. Registration flaws
- Duplicate/overwrite existing accounts, email verification bypass, pre-verified via mass assignment (→ `web-access-control`), weak password policy, response manipulation to set role.
## 6. Session management
- **Token quality:** entropy/predictability of session IDs and tokens; are they signed/random?
- **Fixation:** does the session ID change after login? If not, a pre-set ID = fixation.
- **Lifecycle:** does logout invalidate server-side? Do tokens expire? Do password changes revoke other sessions? Concurrent-session handling.
- **Cookie flags:** `HttpOnly`, `Secure`, `SameSite`, scope/domain; JWT in localStorage (XSS-stealable). Missing flags feed XSS/CSRF chains.
- **"Remember me" tokens:** predictable, non-expiring, or reversible persistent cookies.
## 7. OAuth/JWT/SAML
If the app uses tokens or federated login, hand to `web-jwt-oauth`.
## Depth & chaining
- The win condition is **account takeover** — demonstrate controlling a victim account (preferably one you set up), not just a bypassed check.
- Chain: username enum → spray → weak session → full takeover; or host-header reset poisoning → token theft → ATO.
## Evidence
Show the granted session / controlled account, the exact bypass steps, and (for rate-limit) the volume achieved without lockout.