CWE•Compound•Incomplete•20 recent CVEs
CWE-384Session Fixation
Description
Authenticating a user, or otherwise establishing a new user session, without invalidating any existing session identifier gives an attacker the opportunity to steal authenticated sessions.
[object Object]
Common consequences
- Access Control→Gain Privileges or Assume Identity
Potential mitigations
- Architecture and DesignInvalidate any existing session identifiers prior to authorizing a new user session.
- Architecture and DesignFor platforms such as ASP that do not generate new values for sessionid cookies, utilize a secondary cookie. In this approach, set a secondary cookie on the user's browser to a random value and set a session variable to the same value. If the session variable and the cookie value ever don't match, invalidate the session, and force the user to log on again.
- OperationUse an application firewall that can detect attacks against this weakness. It can be beneficial in cases in which the code cannot be fixed (because it is controlled by a third party), as an emergency prevention measure while more comprehensive software assurance measures are applied, or to provide defense in depth [REF-1481].
Related CWEs
Recent CVEs classified under this CWE
CVE-2026-648572026-09-09CVE-2026-866746.32026-09-08CVE-2026-761967.42026-09-08CVE-2026-862796.32026-09-07CVE-2026-852386.82026-09-03CVE-2026-846527.32026-09-02CVE-2026-185279.92026-08-28CVE-2026-818262026-08-27CVE-2026-705946.72026-08-04CVE-2026-692456.52026-08-03CVE-2026-164968.92026-07-28CVE-2021-320889.82026-07-27CVE-2026-160895.42026-07-17CVE-2026-598834.72026-07-08CVE-2026-146095.62026-07-03CVE-2026-137077.62026-07-01CVE-2026-562245.42026-06-30CVE-2026-400825.42026-06-25CVE-2026-564258.82026-06-22CVE-2026-125817.52026-06-22