Project

General

Profile

Actions

Bug #13730

closed

Suricata fails to download Emerging Threats rule archive due to a behavior change in a native PHP function in PHP 8.1

Added by Bill Meeks over 1 year ago. Updated over 1 year ago.

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

100%

Estimated time:
Plus Target Version:
Affected Version:
2.7.0
Affected Plus Version:
23.01
Affected Architecture:
All

Description

Suricata fails to download Emerging Threats rules archives in the latest pfSense DEVEL snapshots due to apparent changes in the behavior of the filter_var() function in PHP 8.1. Code that currently works fine in PHP 7.4 does not produce the same output in PHP 8.1, thus leading to the construction of an invalid URL for downloading Emerging Threats rules. The code is parsing the version string printed by the Suricata binary to pull out the only the numeric part.

A fix for this is being prepared and a pull request will be submitted for review and merge soon.


Files

Actions

Also available in: Atom PDF