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

remove getStorageAt returning token and use local storage instead #2200

Merged
merged 4 commits into from
Dec 17, 2024

Conversation

zkokelj
Copy link
Contributor

@zkokelj zkokelj commented Dec 12, 2024

Why this change is needed

At the moment we are using local getStorageAt with argument 0x0 to get userID/token that is used in Metamask.
This is very risky and security vulnerability since any app that we connect to can make this call and it will be able to see token and with it our private data.

What changes were made as part of this PR

  • sqlite fix that allows us to run it locally
  • removing getStorageAt part where the gateway returns usedID and test that tests that
  • frontend change to use local storage instead of getStorageAt calls

PR checks pre-merging

Please indicate below by ticking the checkbox that you have read and performed the required
PR checks

  • PR checks reviewed and performed

Copy link
Collaborator

@tudor-malene tudor-malene left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@zkokelj zkokelj merged commit 7141014 into main Dec 17, 2024
2 checks passed
@zkokelj zkokelj deleted the ziga/remove_getStorageAt_for_userID branch December 17, 2024 11:18
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.

2 participants