Open sherlock-admin3 opened 4 months ago
The protocol team fixed this issue in the following PRs/commits: https://github.com/allora-network/allora-chain/pull/457
Escalate
I believe this is HIGH due to the fact that this function located inside BeginBlocker
and block will be comprised once it will hit minting cap
Escalate I believe this is HIGH due to the fact that this function located inside
BeginBlocker
and block will be comprised once it will hit minting cap
You've created a valid escalation!
To remove the escalation from consideration: Delete your comment.
You may delete or edit your escalation comment anytime before the 48-hour escalation window closes. After that, the escalation becomes final.
As I understand, there are no limitations on this issue except hitting the minting cap, and it will happen every time, but I don't see how the report shows the loss of funds and the only impact is the compromised block, no?
yes, the only impact is the compromised block, medium, my bad
Planning to reject the escalation and leave the issue as it is.
Result: Medium Unique
volodya
Medium
Treasury cap restriction will not hold and one block per month will be compromised
Summary
Treasury cap restriction will not hold and one block per month will be compromised
Vulnerability Detail
Once a month emissions are calculated and there is no cap checking before
.AddEcosystemTokensMinted
.x/mint/module/abci.go#L178 if minted is more than cap there would be negative number here
x/mint/module/abci.go#L89 Which will trigger error invocation here
mint/keeper/emissions.go#L148 which will compromised block
Impact
Cap restriction will not hold and one block per month will be compromised
Code Snippet
Tool used
Manual Review
Recommendation