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
{{ message }}
Repository navigation
[backend] Session tickets ride in URL query strings — they leak into browser history and any request logs #113
sessionTicket (auth.go:208-226) mints a credential that callers embed as ?ticket=... in a GET URL. Credentials-in-URL land in browser history, server access logs, and Referer-adjacent surfaces — a known anti-pattern. The mitigations here (single-use, path-bound, 1-minute TTL) make the exposure window small, but not zero: an exported-link pasted anywhere keeps working for 60s, and the URL with the ticket is retained in history permanently.
If the goal is "navigations that can't send Authorization", a short-lived HttpOnly cookie set by an authenticated POST (or a SameSite=Lax session cookie from the start) avoids URLs carrying credentials entirely.
Partially mitigated: fragment tokens are stripped via replaceState (never hit history/logs); ?ticket= URLs are single-use + 60s + path-bound, so a leaked URL is a spent credential. A cookie-session redesign is the real fix — deferred.
The cookie-session redesign you deferred is now done in PR #153: tickets ride an HttpOnly + SameSite=Strict + Path-scoped + TTL-bound cookie; ?ticket= no longer authenticates. Duplicates #151, which is closed.
Activity
sanketpatel32 commentedon Nov 22, 2026
Partially mitigated: fragment tokens are stripped via replaceState (never hit history/logs); ?ticket= URLs are single-use + 60s + path-bound, so a leaked URL is a spent credential. A cookie-session redesign is the real fix — deferred.
devin-ai-integration commentedon Nov 22, 2026
The cookie-session redesign you deferred is now done in PR #153: tickets ride an HttpOnly + SameSite=Strict + Path-scoped + TTL-bound cookie;
?ticket=no longer authenticates. Duplicates #151, which is closed.