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
Attacker can DOS bounty by funding it with worthless ERC20 tokens
Summary
Bounties can only be funded with a set number of non-whitelisted ERC20 tokens. By adding worthless ERC20 tokens an attacker can stop the bounty issuer from adding their own deposit.
Vulnerability Detail
In DepositManagerV1.fundBountyToken() the contract limits the number of non-whitelisted ERC20 token deposits. By adding worthless ERC20 tokens an attacker can stop the bounty issuer from adding their own deposit. This will only work for bounties funded with non-whitelisted ERC20 tokens, e.g. the project's own token.
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
Ruhum
medium
Attacker can DOS bounty by funding it with worthless ERC20 tokens
Summary
Bounties can only be funded with a set number of non-whitelisted ERC20 tokens. By adding worthless ERC20 tokens an attacker can stop the bounty issuer from adding their own deposit.
Vulnerability Detail
In
DepositManagerV1.fundBountyToken()
the contract limits the number of non-whitelisted ERC20 token deposits. By adding worthless ERC20 tokens an attacker can stop the bounty issuer from adding their own deposit. This will only work for bounties funded with non-whitelisted ERC20 tokens, e.g. the project's own token.Impact
Bounty issuer won't be able to fund their bounty.
Code Snippet
DepositManagerV1.fundBountyToken()
Tool used
Manual Review
Recommendation
Using a bounty-specific whitelist would allow the issuer to specify the tokens they accept.
Duplicate of #530
The text was updated successfully, but these errors were encountered: