Project

General

Profile

Actions

Bug #9241

open
JI JI

windows: service registration loses quoting of command-line arguments

Bug #9241: windows: service registration loses quoting of command-line arguments

Added by Jason Ish about 7 hours ago. Updated about 4 hours ago.

Status:
In Review
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

--service-install and --service-change-params quote the executable but append other arguments unquoted. Paths containing spaces, such as C:\Program Files\Suricata\suricata.yaml, are split when the service starts. This can prevent startup through invalid paths or unwanted positional arguments becoming part of the BPF filter. Confirmed by source inspection in 8.0.7 and main at 9451642a28; separate from the executable-path fix in #8600. Preserve argument boundaries using proper Windows quoting and escaping in both service-registration paths.


Subtasks 1 (1 open — 0 closed)

Bug #9242: windows: service registration loses quoting of command-line arguments (8.0.x backport)AssignedJason IshActions

Related issues 1 (0 open — 1 closed)

Related to Suricata - Security #8600: windows: unquoted LocalSystem service ImagePathClosedPhilippe AntoineActions

JI Updated by Jason Ish about 7 hours ago Actions #1

  • Status changed from New to In Progress
  • Assignee changed from OISF Dev to Jason Ish
  • Target version changed from TBD to 9.0.0-beta1
  • Label Needs backport to 8.0 added

OT Updated by OISF Ticketbot about 7 hours ago Actions #2

  • Subtask #9242 added

OT Updated by OISF Ticketbot about 7 hours ago Actions #3

  • Label deleted (Needs backport to 8.0)

JI Updated by Jason Ish about 7 hours ago Actions #4

  • Related to Security #8600: windows: unquoted LocalSystem service ImagePath added

JI Updated by Jason Ish about 4 hours ago Actions #5

  • Status changed from In Progress to In Review
Actions

Also available in: PDF Atom