agentleFS
mn-youssefmn-youssef/security-skills/skills/authentication-testing/SKILL.md

authentication-testing

Skill47 starsChanged 5 months agoMITView on GitHub

Use when testing login, sessions, password reset, OAuth/OIDC/SAML/SSO, MFA, and JWTs for weaknesses that lead to account takeover — credential attacks, session fixation, reset-token poisoning, MFA bypass, and token forgery. On apps you own or are authorized to test.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use your own accounts/app.

    line 22

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Authentication Testing (FIND/EXPLOIT — OWASP A07)

Overview

Break "are you who you say you are?" Account takeover (ATO) is the crown-jewel attack — one auth flaw often unlocks everything. Test the whole identity lifecycle, not just the login form.

Core principle: Auth is a flow, not a page. Bugs live in reset, refresh, federation, and state transitions — not just the password check.

Applies when / Skip when

  • Applies when: the app has any identity mechanism — login, sessions, accounts, tokens/JWT, OAuth/SSO, password reset, or MFA.
  • Skip when: the app is entirely anonymous with no authentication → N/A.
  • If N/A: report "authentication-testing: N/A — no authentication surface" and stop.

⚠️ Authorization

Use your own accounts/app. Do not credential-stuff real users or third parties. Brute-force only your own test accounts, throttled.

Surfaces to test (the whole lifecycle)

  1. Registration — username/email enumeration, weak password policy, duplicate/normalization.
  2. Login — rate limiting, lockout, error-message enumeration, default creds.
  3. Session — token entropy, fixation (rotate on login?), invalidation on logout/reset, cookie flags.
  4. Password reset — token entropy/expiry/reuse, host-header poisoning of reset links, user-id swap.
  5. MFA/2FA — bypass via flow skip, response tampering, backup-code abuse, OTP brute/rate, race.
  6. OAuth/OIDC/SAML/SSO — redirect_uri validation, state/CSRF, token leakage, SAML signature.
  7. JWT — alg:none, algorithm confusion, weak secret, signature not verified, no expiry/revocation.

See references/auth-attacks.md for concrete recipes per surface.

Quick reference — high-value bugs

BugTestImpact
User enumerationDifferent response/timing for valid vs invalid userTargeted attacks
No rate limitMany login/OTP attempts succeedBrute-force / ATO
Session fixationSession id unchanged after loginHijack
Reset poisoningHost/X-Forwarded-Host controls reset link domainATO via stolen token
Reset id swapReset for victim using your token/flowATO
MFA bypassSkip step / tamper "mfa":false / reuse codeATO past 2FA
OAuth open redirectredirect_uri to attacker domain leaks code/tokenATO
JWT forgeryalg:none / HS-RS confusion / weak secret acceptedFull impersonation

Output

Findings with the exact flow and request, which lifecycle stage, and whether it yields ATO. Note chains (e.g. enumeration + no-rate-limit + weak reset = full ATO) for vulnerability-chaining.

Hand-off

Reproduce on the running app via active-pentest; combine into ATO chains in vulnerability-chaining; fix via security-hardening (bcrypt/argon2, CSPRNG tokens, session rotation, strict redirect_uri, verified JWT signatures, rate limits + MFA).

Common mistakes

  • Testing only the login box — reset and federation flows are softer and just as fatal.
  • Decoding a JWT and assuming it's verified — prove the signature is checked (tamper it).
  • Treating MFA as unbreakable — most bypasses are logic flaws in the flow, not the crypto.
  • Ignoring timing/error differences that quietly enable user enumeration.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.