Skip to content

Code4rena

BadgerDAO Zaps contest

Every publicly disclosed report for BadgerDAO Zaps contest and what kind of bugs they were.

disclosed reports
7
most reported class
Business logic
bug classes found
3
first disclosure
2021
Find BadgerDAO Zaps contest on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what BadgerDAO Zaps contest chose to make public.

Business logic

Improper implementation of slippage check

The redeem function in the Zap contract did not apply the caller's minimum-output limit to the branch that withdraws from the byvWbtc pool. An attacker or unlucky user could therefore receive far less than the requested minimum when redeeming through that pool.

BadgerDAO Zaps contest

Medium
Access control

Missing _token.approve() to curvePool in setZapConfig

The setZapConfig function updates the curvePool and token addresses but does not approve the new token for the new curvePool. If governance changes these addresses, the contract's minting function would fail because the token transfer would revert.

BadgerDAO Zaps contest

Medium
Access control

setGuardian() Wrong implementation

The setGuardian function in two zap contracts assigns the new address to the governance variable instead of the guardian variable. An attacker who gains the guardian role could therefore overwrite governance, though the text does not show this being exploited.

BadgerDAO Zaps contest

High
Business logic

calcMint always return poolId=0 and idx=0

The calcMint function in Zap.sol always returns poolId=0 and idx=0, contrary to its documentation which says it should return the most optimal route. This leads to suboptimal zap operations.

BadgerDAO Zaps contest

Medium
DoS

Excessive require makes the transaction fail unexpectedly

The deposit function checks a block lock on the RENCRV vault even when the deposit does not involve that vault, causing unrelated deposits to revert if the vault was used earlier in the same block. An attacker could exploit this to cause denial of service for other users' deposits.

BadgerDAO Zaps contest

Medium
Business logic

No slippage control on deposit of IbbtcVaultZap.sol

The deposit function in IbbtcVaultZap.sol lacks slippage control, exposing users to sandwich attacks. An attacker could manipulate the pool to cause the user to receive fewer tokens than expected.

BadgerDAO Zaps contest

Medium