altimate-code
altimate-code copied to clipboard
Backport upstream v1.18 security hardening (debug config redaction, http(s)-only browser URLs, escaped OAuth error page)
Three hardening fixes upstream shipped in v1.18 that our fork (based on v1.17.9) does not have yet:
debug configprints credentials.altimate-code debug configwrites the resolved configuration with provider API keys, tokens and auth headers in clear text. Users paste this output into bug reports.- Browser opens any URL scheme. Every browser-opening call passes the URL straight to
open(). The most exposed path is MCP OAuth: the authorization URL comes from the MCP server, so a malicious or compromised server can make us openfile://or a custom-scheme URL, which launches local apps. Model-written markdown links in the TUI are also opened unchecked. - Unescaped text on the Snowflake OAuth error page. The local callback page interpolates
error_descriptionfrom the callback query into HTML without escaping.
Upstream fixes: 82d4c89031, 29f07e0c69, and the escaping part of e8fea9e63a.
Folding in #1629: also bump open to 11.0.4 (upstream opencode 1.18.33 browser-open fix), which addresses Windows/WSL command injection through the opened URL; packages/opencode/package.json still pins open 10.1.2.