one-way-door
Warn
Audited by Socket on Oct 26, 2026
1 alert found:
AnomalyAnomalyone-way-door-approve.ps1
LOWAnomalyLOW
one-way-door-approve.ps1
The code implements a plausible local approval-ledger hook and contains no evident malware or unauthorized network behavior. However, using the unvalidated session_id in filesystem paths creates a path traversal/path injection risk that can redirect reads, writes, and truncation outside the intended state directory. Validate the session identifier against a strict safe-character allowlist or derive a safe encoded filename before performing filesystem operations.
Confidence: 98%Severity: 62%
Audit Metadata