Skip to content

fix(ai): pass Antigravity CSRF token via stdin not argv#462

Merged
tw93 merged 1 commit into
tw93:mainfrom
darion-yaphet:fix/antigravity-csrf-token-stdin
Jun 15, 2026
Merged

fix(ai): pass Antigravity CSRF token via stdin not argv#462
tw93 merged 1 commit into
tw93:mainfrom
darion-yaphet:fix/antigravity-csrf-token-stdin

Conversation

@darion-yaphet

Copy link
Copy Markdown
Contributor

The CSRF token was passed to curl as a -H argument, exposing it in ps output to any local user during the request window. Move the token to curl --config - (stdin), matching the existing pattern in fetch_kaku_assistant_models. Payload and non-secret headers stay on argv. Token is escaped for curl config quoting rules.

The CSRF token was passed to curl as a -H argument, exposing it in
`ps` output to any local user during the request window. Move the
token to curl --config - (stdin), matching the existing pattern in
fetch_kaku_assistant_models. Payload and non-secret headers stay on
argv. Token is escaped for curl config quoting rules.
@vercel

vercel Bot commented Jun 15, 2026

Copy link
Copy Markdown

@darion-yaphet is attempting to deploy a commit to the Tw93 Team on Vercel.

A member of the Team first needs to authorize it.

@tw93

tw93 commented Jun 15, 2026

Copy link
Copy Markdown
Owner

Thanks for catching this and sending the patch.

Merged via #462. I kept the Antigravity CSRF-token fix and expanded the same protection to the other usage fetchers: provider Authorization headers and the Claude/Kimi refresh-token form fields now go through curl --config - via stdin instead of process argv. I also added tests for curl config escaping and for keeping the Antigravity CSRF token out of argv.

Main checks are green, and I refreshed the notarized nightly build here:
https://github.com/tw93/Kaku/releases/download/nightly/Kaku-nightly.dmg

Please try that build and let me know if anything still looks off.

@tw93 tw93 closed this Jun 15, 2026
@tw93 tw93 reopened this Jun 15, 2026
@tw93 tw93 merged commit de1c971 into tw93:main Jun 15, 2026
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants