Session Security: Cookies, Tokens and Session Fixation

Session Security testing should only be performed in a lab or an authorized system. Request/Response, server behavior, Roles, State, and impact are checked, using minimal tests that do not compromise data.
Web and API security testing should examine trust boundaries, permissions, input, state, and business logic. Every test in this article is intended for a lab, CTF, or a system for which explicit authorization has been granted. This article focuses on Session Security testing and is intended for Web PT students. The goal is to provide a working methodology that can be applied in practice, during professional interviews, and in a work environment, without settling for a dictionary definition.
The main challenge is that data is almost always partial. Secure/HttpOnly/SameSite, rotation, expiration can indicate a direction, but their meaning depends on time, asset, user, and expected activity. Therefore, we will build the test around an investigative question, required evidence, and a clear completion criterion.
The practical scenario in the article is: Comparing a Session before and after Login/Logout in a lab. All examples are lab data or descriptions of processes. When it comes to Penetration Testing, Web, or Cloud, one must work only with explicit permission, a defined Scope, and the ability to stop the test.




