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` labelMediumA valid Medium severity issueRewardA payout will be made for this issue
When the bounty is created the attacker can fund the bounty contract with so many different worthless ERC20 tokens that the limit is reached and no additional ERC20 tokens can be deposited.
Impact
The attacker can DOS the funding functionality such that the ERC20 token limit is used up with useless tokens.
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` labelMediumA valid Medium severity issueRewardA payout will be made for this issue
HollaDieWaldfee
medium
Attacker can fund bounty contract with multiple worthless ERC20 such that TOKEN_ADDRESS_LIMIT is reached
Summary
A bounty contract can only be funded with a certain amount of different ERC20 tokens that are not in the
DepositMangerV1
's whitelist.It is checked in the
DepositManagerV1
contract if this amount has been reached:https://github.com/sherlock-audit/2023-02-openq/blob/main/contracts/DepositManager/Implementations/DepositManagerV1.sol#L36-L50
This can be exploited.
Vulnerability Detail
When the bounty is created the attacker can fund the bounty contract with so many different worthless ERC20 tokens that the limit is reached and no additional ERC20 tokens can be deposited.
Impact
The attacker can DOS the funding functionality such that the ERC20 token limit is used up with useless tokens.
Code Snippet
https://github.com/sherlock-audit/2023-02-openq/blob/main/contracts/DepositManager/Implementations/DepositManagerV1.sol#L36-L50
Tool used
Manual Review
Recommendation
The bounty issuer should be able to specify a list of tokens that can be used for funding.
Duplicate of #530
The text was updated successfully, but these errors were encountered: