Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cherrypy accepts user-supplied session identifiers #709

Closed
ghost opened this issue Jul 27, 2007 · 2 comments
Closed

Cherrypy accepts user-supplied session identifiers #709

ghost opened this issue Jul 27, 2007 · 2 comments

Comments

@ghost
Copy link

ghost commented Jul 27, 2007

Originally reported by: Anonymous


Cherrypy accepts user-supplied session identifiers. This makes session fixation attacks easier. In case session cookie contains sid that does not reference existing session the client-supplied id should be discarded and a new SID should be generated and sent to client.

Reported by pstradomski@gmail.com


@ghost
Copy link
Author

ghost commented Jul 27, 2007

Original comment by guest (Bitbucket: guest, GitHub: guest):


Perhaps changing lib.sessions.py, around line 71 to:

self.id = id
if self.id and self._load is None:
self.id = None
while self.id is None:

would be enough, but I'm not sure.

@ghost
Copy link
Author

ghost commented Jan 13, 2008

Original comment by Robert Brewer (Bitbucket: fumanchu, GitHub: fumanchu):


Fixed in [1840].

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

0 participants