Fixed HTTP Session Cookies

This script is Copyright (C) 2010-2011 Tenable Network Security, Inc.


Synopsis :

The remote web application may be vulnerable to a session fixation
attack.

Description :

The remote web application uses cookies to track authenticated users.
If the session cookie is already present before authentication, it
remains unchanged after a successful login. That is, only server-side
variables are updated.

Session cookies are expected to be unpredictable in a secure web
application. If HTTP cookies can be manipulated (by injecting client-
side JavaScript for example), then the attacker does not have to break
the pseudo-random generator, and the web application is vulnerable to
a 'session fixation' attack.

See also :

http://en.wikipedia.org/wiki/Session_fixation
http://www.owasp.org/index.php/Session_Fixation
http://phpsecurity.org/ch04.pdf

Solution :

Fix the application so that the session cookie is re-generated after
successful authentication.

Risk factor :

Medium / CVSS Base Score : 5.1
(CVSS2#AV:N/AC:H/Au:N/C:P/I:P/A:P)

Family: Web Servers

Nessus Plugin ID: 46201 (fixed_session_cookies.nasl)

Bugtraq ID:

CVE ID: