|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29333 output_buffering + trans_sess_id can corrupt session
Submitted: 2004-07-22 17:26 UTC Modified: 2004-07-23 06:14 UTC
From: alan at akbkhome dot com Assigned:
Status: Closed Package: Output Control
PHP Version: 4.3.8 OS: linux debian & redhat
Private report: No CVE-ID:
 [2004-07-22 17:26 UTC] alan at akbkhome dot com
if output_buffering is set to 4096 and trans_sess_id is used, the output may be broken:

In the reproduce example, the trans_sess_id writes
<a href="/translators/index.php/calendar/view" ?phpsessid="fa562d5bb14df890e6db68627ea76442">

Reproduce code:

htaccess includes:

php_value session.use_cookies 0
php_value session.use_trans_sid 1 
php_value output_buffering 4098

test.php just sets up enough variables to render the HTML

home.html.en.php is just a HTML which happens to have the url link in the right place to reproduce the bug.

Expected result:
on the "View your personal calendar": 

<a href="/translators/index.php/calendar/view?phpsessid=fa562d5bb14df890e6db68627ea76442">

Actual result:
on the "View your personal calendar": 

<a href="/translators/index.php/calendar/view" ?phpsessid="fa562d5bb14df890e6db68627ea76442">


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-07-22 17:30 UTC]
Note: this code worked perfectly on 4.3.1
 [2004-07-23 05:32 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

 [2004-07-23 06:14 UTC]
thanks illia - awsome work  
PHP Copyright © 2001-2015 The PHP Group
All rights reserved.
Last updated: Wed Dec 02 05:01:41 2015 UTC