You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 26, 2023. It is now read-only.
github-actionsbot opened this issue
Feb 21, 2023
· 0 comments
Labels
DuplicateA valid issue that is a duplicate of an issue with `Has Duplicates` labelHighA valid High severity issueRewardA payout will be made for this issue
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
DuplicateA valid issue that is a duplicate of an issue with `Has Duplicates` labelHighA valid High severity issueRewardA payout will be made for this issue
bin2chen
medium
deposits OUT_OF_GAS attacks
Summary
deposits lacks the maximum limit. Can be OUT_OF_GAS attacks
Vulnerability Detail
At present, in order to avoid OUT_OF_GAS attacks, the following two mechanisms have been added:
However, there is no limit on the maximum number of BountyCore.deposits, If it is too large, OUT_OF_GAS will appear.
DepositManagerV1.refundDeposit() -> bounty.getLockedFunds()
And the cost of adding a deposit is not high, At least only 1gwei token is required.
suggested to add the maximum limit of deposit, and the issuer is not subject to this limit.
Impact
OUT_OF_GAS attacks, can't refund.
Code Snippet
https://github.com/sherlock-audit/2023-02-openq/blob/main/contracts/DepositManager/Implementations/DepositManagerV1.sol#L171-L172
https://github.com/sherlock-audit/2023-02-openq/blob/main/contracts/Bounty/Implementations/BountyCore.sol#L340-L341
Tool used
Manual Review
Recommendation
Duplicate of #77
The text was updated successfully, but these errors were encountered: