php.net |  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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
44 - 16 = ?
Subscribe to this entry?

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

Reproduce code:
---------------
Made session dump with:
 $f=fopen("$name.profile","w");
 fwrite($f,session_encode());
 fclose($f);

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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-01-30 12:22 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

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

 [2004-02-04 19:17 UTC] sniper@php.net
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: Fri Dec 01 04:01:29 2023 UTC