As of CVE-2026-115560, you can no longer set ini session settings when session.upload_progress.enabled is set to 'On', which is... a LOT of PHP configurations - this now brings up an Uncaught Error in patched versions - you would have to explicitly set these in the php.ini config, or change the aforementioned setting to 'Off' - just-released PHP 8.6.0 does set the session cookie settings in these files to what is specified by default
--- a/header.php
+++ b/header.php
@@ -50,10 +50,15 @@
}
unset($v);
+// as of CVE-2026-115560, you can no longer set these settings if
+// session.upload_progress.enabled is set to 'On'
if(!isset($_SESSION)) {
- ini_set('session.cookie_httponly', '1');
- ini_set('session.cookie_samesite', 'Lax');
- session_start();
+ if (ini_get('session.upload_progress.enabled' == 0)) {
+ ini_set('session.cookie_httponly', '1');
+ ini_set('session.cookie_samesite', 'Lax');
+ session_start();
+ }
+ else session_start();
}
// clear the global variables if register globals is on.
if(ini_get('register_globals')) {
--- a/user.php
+++ b/user.php
@@ -28,9 +28,14 @@
}
if(!empty($_POST['submit']) && $current == "login") {
- ini_set('session.cookie_httponly', '1');
- ini_set('session.cookie_samesite', 'Lax');
- session_start();
+ // as of CVE-2026-115560, you can no longer set these settings if
+ // session.upload_progress.enabled is set to 'On'
+ if (ini_get('session.upload_progress.enabled' == 0)) {
+ ini_set('session.cookie_httponly', '1');
+ ini_set('session.cookie_samesite', 'Lax');
+ session_start();
+ }
+ else session_start();
define("_LOGINCHECK", true);
include("user/login.php");
}
--- a/user/login.php
+++ b/user/login.php
@@ -70,10 +70,15 @@
setcookie($sitekey."_useruid", $passwd['uid'], array('expires' => time()+60*60*24*30, 'path' => "/", 'httponly' => true, 'samesite' => 'Lax'));
setcookie($sitekey."_salt", md5($passwd['email'].$encryptedpasswordb), array('expires' => time()+60*60*24*30, 'path' => "/", 'httponly' => true, 'samesite' => 'Lax'));
}
+ // as of CVE-2026-115560, you can no longer set these settings if
+ // session.upload_progress.enabled is set to 'On'
if(!isset($_SESSION)) {
- ini_set('session.cookie_httponly', '1');
- ini_set('session.cookie_samesite', 'Lax');
- session_start( );
+ if (ini_get('session.upload_progress.enabled' == 0)) {
+ ini_set('session.cookie_httponly', '1');
+ ini_set('session.cookie_samesite', 'Lax');
+ session_start();
+ }
+ else session_start();
}
session_regenerate_id(true);
$_SESSION[$sitekey."_useruid"] = $passwd['uid'];
@@ -89,10 +94,15 @@
setcookie($sitekey."_useruid", $passwd['uid'], array('expires' => time()+60*60*24*30, 'path' => "/", 'httponly' => true, 'samesite' => 'Lax'));
setcookie($sitekey."_salt", md5($passwd['email'].$encryptedpasswordm), array('expires' => time()+60*60*24*30, 'path' => "/", 'httponly' => true, 'samesite' => 'Lax'));
}
+ // as of CVE-2026-115560, you can no longer set these settings if
+ // session.upload_progress.enabled is set to 'On'
if(!isset($_SESSION)) {
- ini_set('session.cookie_httponly', '1');
- ini_set('session.cookie_samesite', 'Lax');
- session_start( );
+ if (ini_get('session.upload_progress.enabled' == 0)) {
+ ini_set('session.cookie_httponly', '1');
+ ini_set('session.cookie_samesite', 'Lax');
+ session_start();
+ }
+ else session_start();
}
session_regenerate_id(true);
$_SESSION[$sitekey."_useruid"] = $passwd['uid'];