File tree Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ Version 1.1.27 under development
55--------------------------------
66
77- Bug: PHP 8.1 compatibility: Fix CFileCache call of file_get_contents (Bregi)
8+ - Bug: CVE-2022-41922. Prevent RCE when deserializing untrusted user input (fi3wey, marcovtwout)
89
910Version 1.1.26 September 30, 2022
1011--------------------------------
Original file line number Diff line number Diff line change @@ -168,18 +168,21 @@ public function __wakeup()
168168 {
169169 $ map =array ();
170170 $ params =array ();
171- foreach ( $ this ->params as $ name => $ value )
171+ if ( is_array ( $ this ->params ) )
172172 {
173- if ( strpos ( $ name, self :: PARAM_PREFIX )=== 0 )
173+ foreach ( $ this -> params as $ name=> $ value )
174174 {
175- $ newName =self ::PARAM_PREFIX .self ::$ paramCount ++;
176- $ map [$ name ]=$ newName ;
177- }
178- else
179- {
180- $ newName =$ name ;
175+ if (strpos ($ name ,self ::PARAM_PREFIX )===0 )
176+ {
177+ $ newName =self ::PARAM_PREFIX .self ::$ paramCount ++;
178+ $ map [$ name ]=$ newName ;
179+ }
180+ else
181+ {
182+ $ newName =$ name ;
183+ }
184+ $ params [$ newName ]=$ value ;
181185 }
182- $ params [$ newName ]=$ value ;
183186 }
184187 if (!empty ($ map ))
185188 {
You can’t perform that action at this time.
0 commit comments