Back to overview

Session management 9

Protect session identifiers as if they are account credentials. For HTTP cookies:

Set cookies with the HttpOnly attribute, unless you specifically require client-side scripts within your application to read or set a cookie's value. Set the 'secure' attribute for cookies transmitted over an TLS connection. Consider making the whole ecommerce website 'SSL-only', adding the HTTP Strict Transport Security (HSTS) header and adding the domain to web browser pre-load lists.

How to play?

Ivan can steal session identifiers because they are sent over insecure channels, or are logged, or are revealed in error messages, or are included in URLs, or are accessible un-necessarily by code which the attacker can influence or alter

Mappings

Owasp ASVS (4.0): 1.9.1 ,3.1.1 ,7.1.1 ,7.1.2 ,7.2.1 ,9.1.3 ,9.2.2

Capec: 31 ,60

Owasp SCP: 69,75,76,119,138

Owasp Appsensor: SE4-6

Safecode: 28

ASVS (4.0) Cheatsheetseries Index

ASVS V1.9 - Communications Architectural Requirements

ASVS V3.1 - Fundamental Session Management Requirements

ASVS V7.1 - Log Content Requirements

ASVS V7.2 - Log Processing Requirements

ASVS V9.1 - Communications Security Requirements

ASVS V9.2 - Server Communications Security Requirements

Attacks

Cross-Site Scripting (XSS)

Session Fixation

Session Hijacking (Man-in-the-Middle)

Error message exploitation

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.