Back to overview

Session management 5

Ensure the following occur:

Ensure sufficiently long and random session identifiers are used Generate a new session identifier: If a session was established before login, and successful login has occurred When changing from HTTP to HTTPS When re-authenticating Periodically otherwise. See SM 7 for session termination on logging out.

How to play?

John can predict or guess session identifiers because they are not changed when the user's role alters (e.g. pre and post authentication) and when switching between non-encrypted and encrypted communications, or are not sufficiently long and random, or are not changed periodically

Mappings

Owasp ASVS (4.0): 3.2.1 ,3.2.2 ,3.2.4 ,3.3.1

Capec: 31

Owasp SCP: 60,62,66,67,71,72

Owasp Appsensor: SE4-6

Safecode: 28

ASVS (4.0) Cheatsheetseries Index

ASVS V3.2 - Session Binding Requirements

ASVS V3.3 - Session Logout and Timeout Requirements

Attacks

Password Guessing/Brute Force Attacks

Replay attacks

Session Fixation

Session Hijacking (Man-in-the-Middle)

Loading comments 0%

Github logo View source on GitHub

Provided by dotNET lab

This website is created, hosted and provided by dotNET lab. dotNET lab provides training and guidance on secure software development. Contact us to get in touch!

OWASP Cornucopia

OWASP Cornucopia is originally created by Colin Watson. It is open source and can be downloaded free of charge from the OWASP website. It is is free to use. It is licensed under the Creative Commons Attribution-ShareAlike 3.0 license, so you can copy, distribute and transmit the work, and you can adapt it, and use it commercially, but all provided that you attribute the work and if you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar license to this one. OWASP does not endorse or recommend commercial products or services. OWASP Cornucopia is licensed under the Creative Commons Attribution-ShareAlike 3.0 license and is © 2012-2016 OWASP Foundation.