pentesting, updated
Testing for session management schema
Check how session identifiers are generated, stored and transmitted across the whole app.
Goal
Build a picture of the session mechanism (cookie, token, server-side store) so later session checks have a target.
How to test
Identify the mechanism from the traffic:
curl -sI https://example.com/login -d "user=test&pass=test" | grep -i set-cookie
Note: cookie vs. bearer token vs. both, whether the session is stateful (server-side store) or stateless (signed JWT), and whether the same session ID is reused across subdomains or apps.
What to look for
A session scheme that mixes mechanisms inconsistently, or trusts a client-controlled value as part of the session identity.
Notes
This check frames the rest of the category — cookie attributes and JWT go deeper on each mechanism.
References
- OWASP WSTG-SESS-01 — Testing for Session Management Schema.