|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27099 session_decode crash on incorrect data
Submitted: 2004-01-30 10:14 UTC Modified: 2004-02-04 19:17 UTC
From: oleg at khimich dot com Assigned:
Status: No Feedback Package: Session related
PHP Version: 4.3.4 OS: Windows XP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: oleg at khimich dot com
New email:
PHP Version: OS:


 [2004-01-30 10:14 UTC] oleg at khimich dot com
In incorrect data passed to session_decode function PHP engine may crash.

Reproduce code:
Made session dump with:

and then if partial read was made before decoding session:
 $t=fread($f,65000); instead of $t=fread($f,filesize("$name.profile"));
so, now in $t there is unclosed strings, brackets..
Now try to make session_decode($t) and php probably crash.

Expected result:
WinXP shows exeption for apache process


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-01-30 12:22 UTC]
Please try using this CVS snapshot:
For Windows:

I can not reproduce this. (try provide full example)

 [2004-02-04 19:17 UTC]
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Thu Sep 28 08:01:25 2023 UTC