qri icon indicating copy to clipboard operation
qri copied to clipboard

Local auth is weak

Open Arqu opened this issue 4 years ago • 0 comments

Our auth implementation for a local qri node has very weak guarantees about the actual user engaging with the API. The token provider simply hands out tokens for any correct username, given that profile private and public key exist in the profile store. Given that, an external user with the correct key pair in the store could self generate keys and use the API as we neither vet the token beyond that, nor do we validate the issuer of the token or similar fields.

Related to https://github.com/qri-io/qri/issues/1811

Arqu avatar Jun 15 '21 21:06 Arqu