Session Fixation Affecting pow Open this link in a new tab package, versions <1.0.16


0.0
medium
  • Attack Complexity

    Low

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • snyk-id

    SNYK-HEX-POW-1086584

  • published

    18 Mar 2021

  • disclosed

    7 Jan 2020

  • credit

    Unknown

How to fix?

Upgrade pow to version 1.0.16 or higher.

Overview

Affected versions of this package are vulnerable to Session Fixation via use of Plug.Session in Pow.Plug.Session if a persistent session store is used for Plug.Session, such as Redis or a database.

N.B.: Cookie store, which is used in most Phoenix apps, does not have this vulnerability.

A workaround is to call Plug.Conn.configure_session(conn, renew: true) periodically and after privilege change. A custom authorization plug can be written where the create/3 method should return the conn only after Plug.Conn.configure_session/2 have been called on it.

References