Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Ticket #710 (defect)

Opened 1 year ago

Last modified 1 year ago

Allow forcing a new session id

Status: closed (fixed)

Reported by: pstradomski@gmail.com Assigned to: fumanchu
Priority: normal Milestone: 3.1
Component: CherryPy code Keywords:
Cc:

It should be possible to cherrypy to destroy current session and create a new one with different SID. With such a function it is easier to prevent session fixation attacks because if an attacker forces user to use a SID known to attacker, then after login such session would be destroyed and a new SID generated and sent to user effectively rendering old (attacker-supplied) SID worthless.

Attachments

sessregen.patch (4.8 kB) - added by fumanchu on 07/28/07 14:43:40.
patch to regenerate session

Change History

07/28/07 14:43:40: Modified by fumanchu

  • attachment sessregen.patch added.

patch to regenerate session

07/28/07 14:46:19: Modified by fumanchu

  • owner changed from rdelon to fumanchu.
  • status changed from new to assigned.
  • milestone set to 3.1.

Here's a patch against trunk. If you try it out and it does what you want, I'd be happy to apply it.

07/28/07 14:48:03: Modified by fumanchu

(Copied from mailing list):

In PHP this can be accomplished by calling session_regenerate_id()
(see http://www.php.net/manual/en/function.session-regenerate-id.php)

Here is an explanation of possible attack vectors:
http://www.webappsec.org/projects/threat/classes/session_fixation.shtml

10/26/07 21:23:18: Modified by fumanchu

  • status changed from assigned to closed.
  • resolution set to fixed.

Fixed in [1770].

Hosted by WebFaction

Log in as guest/cpguest to create tickets