Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

if order of claims changes, frontend should detect it so the user money is not wasted #13

Open
nanaknihal opened this issue Mar 19, 2022 · 0 comments

Comments

@nanaknihal
Copy link
Owner

the sandwich requires topbread and bottombread to have certain field names. They must have different field names, otherwise it would be insecure:

bottombread = '"sub":'
topbread = '", '

is insecure as bottombread can be put anywhere and the user can include other parts of jwt in their credentials

Topbread must have a different credential

But that requires a specific claim always coming directly after sub. The frontend should detect when this is not the case (e.g. server changed the JWT format) and prevent the user from submitting even the proof

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

No branches or pull requests

1 participant