Skip to content

fix(auth): restrict browser credentials to Slack origins - #155

Open
dwaxe wants to merge 1 commit into
stablyai:mainfrom
dwaxe:dwaxe/restrict-browser-auth-origins
Open

dwaxe wants to merge 1 commit into
stablyai:mainfrom
dwaxe:dwaxe/restrict-browser-auth-origins

Conversation

@dwaxe

@dwaxe dwaxe commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Browser-session API calls currently construct their destination directly from the configured workspace URL, so a malformed or hostile value can receive the xoxc token and xoxd cookie.

This change accepts only canonical HTTPS workspace origins under slack.com, normalizes them before use, revalidates immediately before both browser transports, and rejects redirects. Standard-token routing and credential storage are unchanged.

This is the focused credential-destination portion of the earlier #128.

@dwaxe
dwaxe force-pushed the dwaxe/restrict-browser-auth-origins branch from 3517984 to bc25f2e Compare September 10, 2026 20:24
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.

1 participant