Session Fixation Affecting pow package, versions <1.0.16


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    EPSS
    0.06% (27th 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 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

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
5.4 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    Low
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    Low
  • Integrity (I)
    Low
  • Availability (A)
    None
Expand this section

NVD

5.4 medium