Highlights
Denial of Service: 4 prior fixes. Scrutinize any change in this area.
internal/inputs/commands.go: most-fixed (2 issues). Treat as high-risk during review.
4 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns
The bug types that recur here, drawn from past fixes, not open vulnerabilities.
Command Injection: Environment variables (FLEX_CMD_PREPEND/APPEND) could be exploited to inject arbitrary commands during os/exec execution flows. Developers must ensure that all command construction utilizes strict parameter-level segregation instead of raw string appending, and that explicit opt-in flags remain active.
Man-in-the-Middle: Bypassing host-key verification exposes SSH and SCP connections to eavesdropping and interception. Secure transport paths must enforce validation against a known_hosts store rather than defaulting to insecure bypasses.
Insecure Cryptography: The use of broken hashing algorithms like MD5 or fast key derivation like single-round SHA256 exposed stored parameters to rapid offline brute-force attacks. Cryptographic mechanisms must utilize modern key-stretching functions like PBKDF2 with adequate iteration counts.