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
security: authenticate marketplace writes with the verified GitHub OAuth token #814
Companion to private marketplace backend issue Open-Less/openless-marketplace#5.
Finding
The desktop GitHub device flow obtains and verifies an access token, but discards it after reading /user.login; it stores only marketplaceDevLogin and all marketplace writes send the spoofable X-Dev-User header. The production backend currently trusts that header.
Required client fix
Store the GitHub OAuth token in the existing OS credential vault/keychain, never in preferences or logs.
Send it as Authorization: Bearer for authenticated marketplace operations after the backend accepts verified GitHub tokens.
Stop using X-Dev-User in production requests; retain login only as display/cache metadata, never authority.
Provide logout/token-revocation/expired-token handling without exposing the token to frontend JS if the current Rust IPC can attach auth itself.
Public browse/install must continue to work while logged out; upload/like/my-packs/delete must fail closed with a clear authentication error.
Add tests proving headers, persistence routing, logout, expired/invalid token behavior, and absence from serialized preferences/logs.
Release gate
No new Beta should ship marketplace write functionality that still relies on caller-supplied identity headers. Backend containment/verification and this client change must be coordinated and reviewed independently.
Found during the 2026-07-14 full-repository security review.
Activity