Harden script execution #3

Closed
opened 2026-02-02 10:00:56 +01:00 by qwc · 0 comments
Owner

Phase 1: Security Hardening

ScriptPath array elements passed directly to /usr/bin/sh / sudo — injection risk.

Tasks

  • Validate script path is absolute, is a regular file (not symlink), is owned by root or target user
  • Validate ExeUser against system users

Files

  • backup.go
## Phase 1: Security Hardening ScriptPath array elements passed directly to `/usr/bin/sh` / `sudo` — injection risk. ### Tasks - Validate script path is absolute, is a regular file (not symlink), is owned by root or target user - Validate ExeUser against system users ### Files - `backup.go`
qwc closed this issue 2026-02-02 14:09:19 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
qwc-open/backive#3
No description provided.