Session Fixation Affecting pow package, versions <1.0.16


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.06% (28th percentile)

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 IDSNYK-HEX-POW-1086584
  • published18 Mar 2021
  • disclosed7 Jan 2020
  • creditUnknown

Introduced: 7 Jan 2020

CVE-2020-5205  (opens in a new tab)
CWE-384  (opens in a new tab)

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

CVSS Scores

version 3.1