API key leaked to child processes via os.Environ() #3
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: High
When launching claude or codex:
os.Environ()passes all parent env vars to the child, includingOCGO_API_KEY. Any subprocess run by claude/codex can read the API key from/proc/<pid>/environor environment inspection.File:
cmd/ocgo/main.go:234-237,cmd/ocgo/main.go:276Fix: Filter
OCGO_API_KEYout of the environment before passing to children, or build a clean env without it.