Skip to content

Commit c8edf97

Browse files
committed
Findings of classes are not allowed for unserialization
1 parent 2f50365 commit c8edf97

22 files changed

Lines changed: 25 additions & 25 deletions

include/inc_front/content/cnt13.article.inc.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@
278278

279279
case 29: $s_text .= ' '.$scrow['acontent_text'];
280280
case 2: if($content['search']['search_caption'] || $content['search']['search_filename']) {
281-
$scrow['acontent_form'] = @unserialize($scrow['acontent_form']);
281+
$scrow['acontent_form'] = @unserialize($scrow['acontent_form'], ['allowed_classes' => false]);
282282
if(isset($scrow['acontent_form']['images']) && is_array($scrow['acontent_form']['images']) && count($scrow['acontent_form']['images'])) {
283283
$s_imgname = '';
284284
foreach($scrow['acontent_form']['images'] as $s_imgtext) {
@@ -306,7 +306,7 @@
306306

307307
case 31: $s_text .= ' '.$scrow['acontent_html'];
308308
if($content['search']['search_caption'] || $content['search']['search_filename']) {
309-
$scrow['acontent_form'] = @unserialize($scrow['acontent_form']);
309+
$scrow['acontent_form'] = @unserialize($scrow['acontent_form'], ['allowed_classes' => false]);
310310
if(isset($scrow['acontent_form']['images']) && is_array($scrow['acontent_form']['images']) && count($scrow['acontent_form']['images'])) {
311311
foreach($scrow['acontent_form']['images'] as $s_imgtext) {
312312
if($content['search']['search_caption']) {
@@ -323,7 +323,7 @@
323323

324324
// search recipe
325325
case 26: $s_text .= ' '.$scrow['acontent_text'].' '.$scrow['acontent_html'];
326-
$scrow['acontent_form'] = @unserialize($scrow['acontent_form']);
326+
$scrow['acontent_form'] = @unserialize($scrow['acontent_form'], ['allowed_classes' => false]);
327327
if(isset($scrow['acontent_form']['preparation'])) {
328328
$s_text .= ' '.$scrow['acontent_form']['preparation'].' '.$scrow['acontent_form']['ingredients'];
329329
$s_text .= ' '.$scrow['acontent_form']['calorificvalue'].' '.$scrow['acontent_form']['calorificvalue_add'];

include/inc_front/content/cnt2.article.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
**/
1111

1212
//images (gallery)
13-
$image = @unserialize($crow["acontent_form"]);
13+
$image = @unserialize($crow["acontent_form"], ['allowed_classes' => false]);
1414

1515
if(is_array($image) && ($image_count = count($image))) {
1616

include/inc_front/content/cnt21.article.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
}
3535

3636
$CNT_TMP .= headline($crow['acontent_title'], $crow['acontent_subtitle'], $template_default['article']);
37-
$content['page_file'] = @unserialize($crow['acontent_form']);
37+
$content['page_file'] = @unserialize($crow['acontent_form'], ['allowed_classes' => false]);
3838
if(!empty($content['page_file']['source'])) {
3939
$CNT_TMP .= empty($content['page_file']['pfile']) ? '' : include_url($content['page_file']['pfile']);
4040
} elseif(!empty($content['page_file']['pfile'])) {

include/inc_front/content/cnt25.article.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function get_mediaplayer_stream($fileid=0, $flash=false) {
7878

7979
}
8080

81-
$fmp_data = @unserialize($crow["acontent_form"]);
81+
$fmp_data = @unserialize($crow["acontent_form"], ['allowed_classes' => false]);
8282

8383
if(isset($fmp_data['fmp_template'])) {
8484

include/inc_front/content/cnt27.article.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
//FAQ
2020

21-
$crow["acontent_form"] = @unserialize($crow["acontent_form"]);
21+
$crow["acontent_form"] = @unserialize($crow["acontent_form"], ['allowed_classes' => false]);
2222
$crow["acontent_image"] = empty($crow["acontent_image"]) ? '' : explode(":", $crow["acontent_image"]);
2323

2424
if(!empty($crow["acontent_form"]['faq_template']) && file_exists(PHPWCMS_TEMPLATE.'inc_cntpart/faq/'.$crow["acontent_form"]['faq_template'])) {

include/inc_front/content/cnt28.article.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
if(!empty($crow["acontent_template"]) && is_file(PHPWCMS_TEMPLATE.'inc_cntpart/felogin/'.$crow["acontent_template"])) {
3939

40-
$_loginData = @unserialize($crow["acontent_form"]);
40+
$_loginData = @unserialize($crow["acontent_form"], ['allowed_classes' => false]);
4141

4242
$_loginData['template'] = render_device( @file_get_contents(PHPWCMS_TEMPLATE.'inc_cntpart/felogin/'.$crow["acontent_template"]) );
4343

include/inc_front/content/cnt31.article.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
//images (gallery)
2424

25-
$image = @unserialize($crow["acontent_form"]);
25+
$image = @unserialize($crow["acontent_form"], ['allowed_classes' => false]);
2626
$crow['acontent_template_listmode'] = empty($crow['acontent_template_listmode']) ? false : true;
2727
if(empty($image['fieldgroup'])) {
2828
$image['fieldgroup'] = '';

include/inc_front/content/cnt8.article.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
// Check if custom array is given or parse it based on the default behavior
2323
if(!isset($content['alink']['inject'])) {
2424

25-
$content['alink'] = @unserialize($crow["acontent_form"]);
25+
$content['alink'] = @unserialize($crow["acontent_form"], ['allowed_classes' => false]);
2626

2727
if(!isset($content['alink']['alink_id'])) {
2828
$content['alink']['alink_id'] = explode(':', $crow['acontent_alink']);

include/inc_front/content/cnt9.article.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
}
3535

36-
$media = @unserialize($crow['acontent_form']);
36+
$media = @unserialize($crow['acontent_form'], ['allowed_classes' => false]);
3737
$media["source"] = '';
3838
$media["code"] = '';
3939
$media["alt"] = '';

include/inc_front/content/cnt_functions/cnt13.func.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ function search() {
204204
$s_text .= ', '.$value['cnt_editor'];
205205
}
206206

207-
$value['cnt_object'] = @unserialize($value['cnt_object']);
207+
$value['cnt_object'] = @unserialize($value['cnt_object'], ['allowed_classes' => false]);
208208

209209
if(!empty($value['cnt_object']['cnt_searchoff'])) {
210210
continue;

0 commit comments

Comments
 (0)