-
Notifications
You must be signed in to change notification settings - Fork 0
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
DOS WITH BLOCK GAS LIMIT IS POSSIBLE AT getInflationAmt()
#713
Labels
bug
Something isn't working
downgraded by judge
Judge downgraded the risk level of this issue
duplicate-360
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
sponsor duplicate
Sponsor deemed duplicate
Comments
Loop costs less than 100 gas per iteration, this looks off |
C4-Staff
added a commit
that referenced
this issue
Jan 6, 2023
duplicate of #652 |
dupe of #139 |
GalloDaSballo marked the issue as duplicate of #139 |
Awarding 25% due to very poor description |
GalloDaSballo marked the issue as partial-25 |
GalloDaSballo marked the issue as not a duplicate |
Duplicate of #360 |
L |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Something isn't working
downgraded by judge
Judge downgraded the risk level of this issue
duplicate-360
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
sponsor duplicate
Sponsor deemed duplicate
Lines of code
https://github.com/code-423n4/2022-12-gogopool/blob/main/contracts/contract/RewardsPool.sol#L74
Vulnerability details
getInflationAmt() is a public function and it contains the following unbounded for loop:
It is an unbounded loop, depending on the inflation intervals
If inflationIntervalsElapsed is big enough, block gas limit may be hit.
Recommended Mitigation Steps
Limit the max number of loop iterations to prevent hitting block gas limit.
The text was updated successfully, but these errors were encountered: