mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-07 09:10:55 +00:00
HIGH severity: Three functions used hardcoded /tmp/env_config for uploading API keys, creating a TOCTOU race condition where attackers on multi-user systems could create symlinks to exfiltrate OPENROUTER_API_KEY and other credentials. Fixed by using unpredictable temp file names with mktemp-derived randomness, matching the secure pattern in write_remote_file_via_callback(). Affected functions: - inject_env_vars_with_ssh() (line 1094) - inject_env_vars_local() (line 1128) - inject_env_vars_cb() (line 1363) Agent: security-auditor Co-authored-by: spawn-bot <bot@openrouter.ai> Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| common.sh | ||
| github-auth.sh | ||
| key-request.sh | ||