pentesting, updated
Testing for session puzzling
Check whether session variables set in one flow get reused unexpectedly in another, bypassing a step that should be required.
Goal
Confirm a session attribute set during one process (e.g. password reset) can’t be reused to skip a step in a different process.
How to test
Look for shared session keys across flows (session['user_id'] set by both login and a partial password-reset step, for example). Start one flow partway, then jump to a different, sensitive flow and see whether the partial state is enough to proceed.
What to look for
A multi-step process that completes (or skips a check) because a session variable from an unrelated flow satisfied its condition.
Notes
This is subtle and app-specific — map how each flow reads and writes session state before trying to puzzle it.
References
- OWASP WSTG-SESS-08 — Testing for Session Puzzling.