The public createGauge function in GaugeFactoryCL lacks access control, allowing anyone to trigger the creation of a new eternal farming incentive that pulls a fixed amount of reward tokens from the factory. If the factory holds reward tokens, an attacker can repeatedly call createGauge to drain them into farms they control.
The removeRole function incorrectly replaces a removed role with the last role from the global roles list, granting the user an unrelated role. An attacker could gain unauthorized administrative permissions such as BRIBE_ADMIN or GAUGE_ADMIN.
The isGenesis flag was meant to block external liquidity additions to Genesis Pool pairs before launch, but the RouterV2.addLiquidity check only blocked when totalSupply was zero, and Pair.mint had no isGenesis check at all. An attacker could add a tiny amount of liquidity directly via mint to make totalSupply non-zero, then use the router to add liquidity, disrupting the controlled launch.
The notifyRewardAmount function declares a return variable named rewardRate that shadows the contract's storage variable, so assignments only update the local copy. As a result, the stored rewardRate remains zero and rewardForDuration always returns zero, misleading dashboards and tools that rely on it.
The vote function blocks non-whitelisted or blacklisted tokenIds from voting after an epoch ends, but the deposit_for function calls poke without those checks. A holder of such an NFT can therefore increase the weight of existing votes after the voting window closes by depositing more balance.
The governor contract allowed proposals in the Expired or Defeated state to be executed, not just Succeeded ones. An attacker could execute an expired proposal that calls the minter's nudge function, which sets a once-per-epoch flag and forces the tail emission rate to 'no change', thereby blocking a legitimately passed emission-change proposal for that period.
The governor contract calculates the proposal threshold from total veBLACK voting power but calculates quorum from a cumulative sum of BLACK tokens ever burned for smNFTs, which only grows. As that burned total grows, the quorum target can become unachievable, so proposals to call the only reachable function, nudge(), could repeatedly fail and leave it unusable.
The quorum check in the governor contract only counts forVotes and abstainVotes, ignoring againstVotes. As a result, a proposal with overwhelming againstVotes can be marked Expired instead of Defeated, so the emissions rate does not decrease as intended.
The GaugeFactoryCL contract hardcodes a reward amount of 1e10 raw units when creating eternal farming incentives, without accounting for the reward token's decimals. For low-decimal tokens like USDC or WBTC, this results in an excessively large reward rate, causing a huge loss for the protocol.
The BlackGovernor contract's status variable is never updated because it is shadowed in the execute function, so the MinterUpgradeable's nudge function always reads the default status and sets tailEmissionRate to a constant value instead of adjusting it based on proposal outcome.
The governor contract did not check whether the NFT used for voting had been transferred after the vote, so a user could vote, transfer the NFT to another address they control, and vote again. This allowed repeated voting and could disrupt the voting process.
The BlackGovernor contract's proposal function passes block.number instead of block.timestamp to getVotes, causing the voting power check to always revert because it looks up a timestamp far in the past. This prevents any proposal from being created, completely blocking governance functionality.
The RouterV2 contract's swap functions use a route struct whose receiver field defaults to the zero address when not set, so swapped tokens are sent to address(0) and burned. Every swap through these functions fails to deliver tokens to users, causing 100% loss of funds.
The getsmNFTPastVotes function checks whether a token is currently a smart NFT rather than whether it was one at the queried timestamp, so tokens that became smart NFTs later are counted as having voting power at earlier times. This can give an account more past voting power than it should have, letting it propose or vote with inflated weight in the BlackGovernor contract.
The transferFrom function in VotingEscrow calls moveTokenDelegates, which incorrectly clears all checkpoints for the source representative because the token owner is already set to zero. An attacker could transfer a token to wipe delegation history, breaking voting logic and other functions that rely on checkpoints.
The contract's EIP-712 domain type hash omits the version field, but the domain separator is built with a version value included, so the two do not match. As a result, signatures produced for the delegation feature would not verify and delegateBySig would always fail.
The contract only applies the DAO-controlled tail emission rate when weekly emissions fall below a fixed threshold, so governance votes have no effect while emissions remain above that threshold. This means the DAO cannot adjust emissions as documented from epoch 67 onwards, undermining the intended governance control.
The claim_many() function in RewardsDistributor fails to check whether a token is managed by the Auto Voting Escrow Manager (AVM), unlike claim(). As a result, rewards for expired locks delegated to AVM are sent to the AVM contract instead of the original owner, causing permanent loss of rewards.
The setRouter function in GenesisPoolManager had an inverted require statement, so the owner could only set the router to the zero address, not a valid one. This prevented updating the router and could cause pool launches to fail if the router was zero.
The MinterUpgradeable contract incorrectly calculates circulatingBlack by subtracting the smNFT balance twice, leading to an understated rebase amount and overstated gauge emissions. This diverts value from LPs/stakers to veBLACK voters.
The BribeFactoryV3 contract's recoverERC20AndUpdateData function calls emergencyRecoverERC20 on the Bribe contract instead of the intended recoverERC20AndUpdateData, so the tokenRewardsPerEpoch mapping is not reduced when tokens are recovered. This can lead to over-distribution of rewards, as users may claim based on outdated values and potentially drain the Bribe contract's token balance.
The depositNativeToken function checks that an existing pair has zero token balances but does not verify that the pair was created by the protocol. An attacker can create an empty pair for the target tokens and send a tiny amount of each token to it, causing the legitimate deposit transaction to revert and blocking pool creation.
Rounding errors in the stable pool invariant calculation can make the invariant k equal zero, allowing a malicious first liquidity provider to repeatedly mint small liquidity, drain the pool, and inflate total supply until the pool is unusable.
The RouterV2 contract's removeLiquidityWithPermit and removeLiquidityETHWithPermit functions call permit without error handling, so an attacker can front-run the permit signature and cause the victim's transaction to revert. This leads to gas fee losses and a denial of service for permit-based liquidity removal.
BL
Blackhole
Medium
Instant results are busy. Press Enter to search every report.
No direct matches. Search every report above, or try a bug class like IDOR or SSRF.