Skip to content

bank.SendKeeper breaks intended least authority permissioning #2887

Closed
@cwgoes

Description

bank.SendKeeper is intended only to allow transfers of coins between accounts, but in fact it allows arbitrary minting or burning of coins with keeper.inputOutputCoins, because the invariant inputs.Sum() == outputs.Sum() is only checked in ValidateBasic() on bank.MsgSend. Modules which are passed a bank.SendKeeper have just as much power as modules which are passed the full bank.BaseKeeper.

Recommended mitigation: remove inputOutputCoins from the sendKeeper (it isn't used in any other modules presently).
Alternative mitigation: repeat the necessary validation, which is very inexpensive, in the keeper.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions