Project

General

Profile

Actions

Bug #4330

open

file hash parameter in yaml accepts non valid values

Added by Peter Manev almost 4 years ago. Updated 2 months ago.

Status:
New
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:
Beginner, C, Good First Issue

Description

/opt/suritest/bin/suricata --dump-config |grep shanani
outputs.1.eve-log.types.4.files.force-hash.0 = shananigans

/opt/suritest/bin/suricata -S /dev/null  -l logs/  --runmode=autofp  -T
[2744673] 16/2/2021 -- 11:33:21 - (suricata.c:1616) <Info> (ParseCommandLine) -- Running suricata under test mode
[2744673] 16/2/2021 -- 11:33:21 - (suricata.c:1060) <Notice> (LogVersion) -- This is Suricata version 7.0.0-dev (6bfc5afa2 2021-02-13) running in SYSTEM mode
[2744673] 16/2/2021 -- 11:33:21 - (decode-erspan.c:55) <Warning> (DecodeERSPANConfig) -- [ERRCODE: SC_WARN_ERSPAN_CONFIG(329)] - ERSPAN Type I is no longer configurable and it is always enabled; ignoring configuration setting.
[2744673] 16/2/2021 -- 11:33:21 - (suricata.c:2775) <Notice> (SuricataMain) -- Configuration provided was successfully loaded. Exiting.
Actions #1

Updated by Jeff Lucovsky almost 4 years ago

There should be a call to `ConfNodeIsSequence` when a yaml sequence is expected.

Actions #2

Updated by Philippe Antoine 6 months ago

  • Assignee set to Community Ticket
  • Target version set to TBD
  • Label Beginner, C, Good First Issue added

Indeed
FileForceHashParseCfg. should do else if and end with else fail on unknown value

Actions #3

Updated by Pooja Gadige 2 months ago

Philippe Antoine wrote in #note-2:

Indeed
FileForceHashParseCfg. should do else if and end with else fail on unknown value

May I please claim this ticket and work on it?

Actions #4

Updated by Shivani Bhardwaj 2 months ago

May I please claim this ticket and work on it?

yes please. Set the Assignee to yourself and get started. :)

Actions #5

Updated by Pooja Gadige 2 months ago

  • Assignee changed from Community Ticket to Pooja Gadige
Actions #6

Updated by Pooja Gadige 2 months ago

Shivani Bhardwaj wrote in #note-4:

May I please claim this ticket and work on it?

yes please. Set the Assignee to yourself and get started. :)

Thank you, Shivani!

Actions

Also available in: Atom PDF