Top Banner
Broken Authentication & Session Management
6

Broken Authentication & Session Management. What is it ? Bad implementation of authentication and session management. If an attacker can get your session.

Jan 03, 2016

Download

Documents

Branden Craig
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Broken Authentication & Session Management. What is it ? Bad implementation of authentication and session management. If an attacker can get your session.

Broken Authentication &

Session Management

Page 2: Broken Authentication & Session Management. What is it ? Bad implementation of authentication and session management. If an attacker can get your session.

What is it ?

• Bad implementation of authentication and session management.

• If an attacker can get your session ID, then they can steal your session

• Could happen over unsafe medium.

• Could happen if an attacker can get your password.

Page 3: Broken Authentication & Session Management. What is it ? Bad implementation of authentication and session management. If an attacker can get your session.

Broken Authentication and Session Management - Vulnerabilities

• Password not hashed.

• Weak Password recovery method .

• Exposed Session-Ids’.

• Long session timeout.

• Improper rotation of session-ids’ after logout.

• Sending session-ids’ , passwords over unencrypted connections.

Page 4: Broken Authentication & Session Management. What is it ? Bad implementation of authentication and session management. If an attacker can get your session.

Session Fixation Attack

Page 5: Broken Authentication & Session Management. What is it ? Bad implementation of authentication and session management. If an attacker can get your session.

Broken Authentication and Session Management - Prevention

• Always use https for any authenticated URLs.

• If storing credentials in a database, store them encrypted or hashed.

• Set session timeouts to as low as possible to reduce the risk of exposure to someone who forgets to log out at a public terminal.

• Try to store SessionIds in cookies

• Invalidate session properly

Page 6: Broken Authentication & Session Management. What is it ? Bad implementation of authentication and session management. If an attacker can get your session.

Thank You