-
Notifications
You must be signed in to change notification settings - Fork 749
Closed
Labels
Milestone
Description
Summary of Bug
It is possible to use a module account address as the refund address for packet incentivisation. However, this module account may be blocked and fees would still be escrowed, since SendCoinsFromAccountToModule does not check that the sender address is blocked.
The problem arises when:
- fees are escrowed from a module account that is blocked,
- if any of the fees need to be refunded, then that fails because the module account is blocked and
SendCoinsFromModuleToAccountdoes check whether the recipient is in the blocked addresses list or not, and if it's blocked then it returns an error.
Expected Behaviour
A module account that is blocked should not be allowed to incentivize a packet.
Version
v4.0.0-rc2
Proposed solution
We should check after here in PayPacketFee in and here in PayPacketFeeAsync that the RefundAddress is not blocked and return an error otherwise.
For Admin Use
- Not duplicate issue
- Appropriate labels applied
- Appropriate contributors tagged/assigned
Reactions are currently unavailable