Project

General

Profile

Actions

Bug #13333

closed

PHP error when saving Suricata rulesets

Added by Marcos M almost 2 years ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Suricata
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Affected Version:
Affected Plus Version:
Affected Architecture:

Description

In some cases, $enabled_rulesets_array in suricata_rulesets.php may not be an array which results in the following PHP errors:

[27-Apr-2022 17:57:15 America/Mexico_City] PHP Warning:  in_array() expects parameter 2 to be array, string given in /usr/local/www/suricata/suricata_rulesets.php on line 751
[27-Apr-2022 18:00:01 America/Mexico_City] PHP Warning:  in_array() expects parameter 2 to be array, string given in /usr/local/www/suricata/suricata_rulesets.php on line 492
[27-Apr-2022 18:00:01 America/Mexico_City] PHP Warning:  in_array() expects parameter 2 to be array, string given in /usr/local/www/suricata/suricata_rulesets.php on line 559
[27-Apr-2022 18:00:01 America/Mexico_City] PHP Warning:  in_array() expects parameter 2 to be array, string given in /usr/local/www/suricata/suricata_rulesets.php on line 626

This was triggered when existing rules were auto-enabled by SID Mgmt.

Actions

Also available in: Atom PDF