altimate-code icon indicating copy to clipboard operation
altimate-code copied to clipboard

fix: the subscription detection route answers any local process

Open sahrizvi opened this issue 2 weeks ago • 0 comments

Found during the v0.12.11 release review of #1706 "feat: Claude subscription support through a Claude Agent provider". Deferred because the data is low sensitivity and the fix belongs in the shared route guard.

GET /altimate/provider/subscriptions refuses cross-site browser requests (browserOriginRefusal), but answers a request with no Origin and no Sec-Fetch-Site, so any local process can call it, and a DNS-rebinding page is same-origin. It returns only which subscription logins exist (names and sources, never a token). Consider requiring the server password or a per-process token for /altimate/* routes, or checking Host against the bound address.

sahrizvi avatar Nov 15 '26 21:11 sahrizvi