We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The StdTx.Fee can be set to a negative amount.
Since there is no validation both the FeePool will be corrupted and the first signature's balance increased.
This is a critical problem since any account can drain the fee pool and add the tokens to their own account.
Set StdTx to a negative Coins amount
The text was updated successfully, but these errors were encountered:
Ref #1273, which would have prevented this entire class of bugs, of which there have been several so far.
Sorry, something went wrong.
Potentially fits the security tag as well.
@cwgoes I agree. Any particular reason #1273 has not been implemented yet ? That could also avoid a lot of redundant .LT(0) checks.
Any particular reason #1273 has not been implemented yet?
Not any good one. We're on it.
alexanderbez
Successfully merging a pull request may close this issue.
Summary of Bug
The StdTx.Fee can be set to a negative amount.
Since there is no validation both the FeePool will be corrupted and the first signature's balance increased.
This is a critical problem since any account can drain the fee pool and add the tokens to their own account.
Steps to Reproduce
Set StdTx to a negative Coins amount
For Admin Use
The text was updated successfully, but these errors were encountered: