You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
save_api_key() in src/config/loader.rs:390 writes the API key using string interpolation:
format!("api_key = "{}"\n", key)
If the key value contains a " character, this produces invalid TOML or allows injection of additional key-value pairs. The migration code at lines 170-172 correctly uses toml::Table — save_api_key() should match.
Impact
API key containing " could corrupt auth file
Inconsistent with migration code pattern
Defensive coding issue (unlikely for real API keys but still a vulnerability)
Activity
fix: profiles bugs — path resolution, fail-fast, dedup merge (#238) (#…