> For the complete documentation index, see [llms.txt](https://hacking-notes.jord4n.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hacking-notes.jord4n.pro/cheat-sheets/authentication-sessions.md). Agents can also search and read this documentation through its [MCP server](https://hacking-notes.jord4n.pro/~gitbook/mcp).

# Authentication & Session Security Cheat Sheets

Authentication and session security cheat sheets for testing JWT, OAuth, OIDC, SAML, cookies, MFA, account takeover, password spraying, and password recovery.

### Authentication and session security testing cheat sheets

Use these authentication and session security cheat sheets during authorized penetration tests. Find practical commands, payloads, and workflows for testing web application login flows, identity protocols, session management, multi-factor authentication, and credential attacks.

Select a topic below to identify common authentication and session vulnerabilities.

<table data-view="cards" data-full-width="true" data-search="false"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><h3><i class="fa-key" style="color:yellow;">:key:</i></h3></td><td><h4>JWT Attacks</h4></td><td>JWT testing payloads for algorithm confusion, unsigned tokens, key injection, claim tampering and signature validation weaknesses.</td><td><a href="https://hacking-notes.jord4n.pro/cheat-sheets/authentication-sessions/jwt-attacks.md">JWT Attacks</a></td></tr><tr><td><h3><i class="fa-cookie-bite" style="color:yellow;">:cookie-bite:</i></h3></td><td><h4>Cookie Security</h4></td><td>Cookie security checks for Secure, HttpOnly, SameSite, prefixes, domain and path scope, session fixation, cookie tossing and storage limits.</td><td><a href="https://hacking-notes.jord4n.pro/cheat-sheets/authentication-sessions/cookie-security.md">Cookie Security</a></td></tr><tr><td><h3><i class="fa-fingerprint" style="color:yellow;">:fingerprint:</i></h3></td><td><h4>Session Attacks</h4></td><td>Session security tests for fixation, predictable identifiers, cookie scope, token rotation, logout invalidation and session lifecycle flaws.</td><td><a href="https://hacking-notes.jord4n.pro/cheat-sheets/authentication-sessions/session-attacks.md">Session Attacks</a></td></tr><tr><td><h3><i class="fa-user-shield" style="color:yellow;">:user-shield:</i></h3></td><td><h4>Account Takeover</h4></td><td>Account takeover tests for password reset poisoning, leaked tokens, email confusion, OAuth linking, MFA changes and chained workflow flaws.</td><td><a href="https://hacking-notes.jord4n.pro/cheat-sheets/authentication-sessions/account-takeover.md">Account Takeover</a></td></tr><tr><td><h3><i class="fa-mobile-screen" style="color:yellow;">:mobile-screen:</i></h3></td><td><h4>MFA Bypass</h4></td><td>MFA testing examples for response tampering, OTP limits, race conditions, recovery codes, remembered devices and enrollment weaknesses.</td><td><a href="https://hacking-notes.jord4n.pro/cheat-sheets/authentication-sessions/mfa-bypass.md">MFA Bypass</a></td></tr><tr><td><h3><i class="fa-link" style="color:yellow;">:link:</i></h3></td><td><h4>OAuth / OIDC</h4></td><td>OAuth and OpenID Connect tests for state validation, redirect URIs, code interception, token scopes, PKCE and identity claim enforcement.</td><td><a href="https://hacking-notes.jord4n.pro/cheat-sheets/authentication-sessions/oauth-oidc.md">OAuth / OIDC</a></td></tr><tr><td><h3><i class="fa-id-card" style="color:yellow;">:id-card:</i></h3></td><td><h4>SAML Attacks</h4></td><td>SAML testing references for assertion decoding, signature validation, XML signature wrapping, claim tampering, replay and identity provider trust.</td><td><a href="https://hacking-notes.jord4n.pro/cheat-sheets/authentication-sessions/saml-attacks.md">SAML Attacks</a></td></tr><tr><td><h3><i class="fa-spray-can" style="color:yellow;">:spray-can:</i></h3></td><td><h4>Password Spraying</h4></td><td>Password spraying commands for user discovery, account policy checks, AD and cloud authentication, attempt pacing and lockout-aware validation.</td><td><a href="https://hacking-notes.jord4n.pro/cheat-sheets/authentication-sessions/password-spraying.md">Password Spraying</a></td></tr><tr><td><h3><i class="fa-key" style="color:yellow;">:key:</i></h3></td><td><h4>Password Recovery</h4></td><td>Password recovery commands for hash identification, John the Ripper, SSH and GPG keys, KeePass databases, PFX certificates and PuTTY conversion.</td><td><a href="https://hacking-notes.jord4n.pro/cheat-sheets/authentication-sessions/password-recovery.md">Password Recovery</a></td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://hacking-notes.jord4n.pro/cheat-sheets/authentication-sessions.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
