-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[Feature]: disable authz grant message grant #19737
Comments
i certainly support it, we help scammed users to try and get back whatever possible from their staked/unstaking coins - this grant to issue grants makes it pretty difficult if scammers are a little tech-savvy. |
I hadn't seen this feature request before, and I posted the below to Keplr repo, asking them to issue a warning before letting users sign GenericAuthorization with MsgGrant (even MsgSend, especially if combined with MsgUndelegate and MsgTokenizeShares): If there is no valid case where we would want to allow the grantee to be able to run MsgGrant transactions, then yes, disabling it would surely go a long way in protecting users. I am not sure that there is no legit case, but can't think of any myself. Also, I was going to ask for a MsgRevokeAll message, as I saw a case where an attacker, right after receiving the MsgGrant authorization, created grants for 2000 other addresses under its control (one example tx: https://www.mintscan.io/cosmos/tx/5C21BC64CF0FF8502DCF1DD623973FDB939B3519259881135E5861CC5BA16157?height=19607416). So, in case you keep the MsgGrant option in GenericAuthorization, maybe a MsgRevokeAll message can be considered? Please let me know if you think I should create a separate issue for this feature request, or it can be kept within the discussion of this current issue. Thanks. |
@arlai-mk Keplr extension for quite some time now gives a warning as well as an additional mandatory tickbox to the user when they are asked to sign any "potentially harmful" authz tx. Anyway, adding to this issue/suggestion: There is no reason to place hundreds or literally thousands of authz grants on a single account. I'm not sure what a reasonable number may be, but this should be limited. 100 seems adequate, but I will ask someone with a better idea to comment further. for context: |
Talking through this with @Cordtus it might make sense to introduce a new MsgRevoke variant that revokes all grants in one call so that a wallet can always restore it's sovereignty. |
Can you create an issue about this? |
It's done, please see issue #20139 |
my 2c's I believe this should be a wallet level concern not a SDK one. (the disabling of authz) there are several places where grants are part of the tech design of applications. |
Summary
disable authz grant of authz grant to avoid individuals accidentally authzing their entire account to a different account. We should provide this via accounts and sub accounts
Problem Definition
No response
Proposed Feature
disable message grant to be authzed
The text was updated successfully, but these errors were encountered: