Skip to content

Code4rena

Blackhole

Every publicly disclosed report for Blackhole and what kind of bugs they were.

disclosed reports
24
most reported class
Business logic
bug classes found
5
first disclosure
2025
Find Blackhole on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Blackhole chose to make public.

Access control

Reward token in GaugeFactoryCL can be drained by anyone

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.

Blackhole

High
Business logic

isGenesis flag is ineffective to control add liquidity flow in RouterV2.addLiquidity()

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.

Blackhole

Medium
Smart contracts

Function return variable shadowing prevents storage updates in solidity

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.

Blackhole

Medium
Business logic

L2Governor.execute() accepts Expired / Defeated proposals, attacker front-runs BlackGovernor nudge() , blocks legitimate emission-rate votes, freezes tail emissions

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.

Blackhole

Medium
Business logic

Governance deadlock potential in BlackGovernor.sol due to quorum mismatch

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.

Blackhole

Medium
Business logic

1e10 fixed farming reward in GaugeFactoryCL

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.

Blackhole

Medium
Business logic

Zero-receiver fund burn

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.

Blackhole

Medium
Business logic

getsmNFTPastVotes incorrectly checks for Voting Power leading to some NFTs incorrectly being eligible to vote

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.

Blackhole

Medium
Business logic

Checkpoints are incorrectly cleared during transferFrom

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.

Blackhole

Medium
Crypto

EIP-712 domain type hash mismatch breaks signature-based delegation

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.

Blackhole

Medium
Business logic

Governance emission adjustment ignored when weekly emission above tail threshold

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.

Blackhole

Medium
Business logic

Logic error in AVM original owner resolution

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.

Blackhole

Medium
Business logic

Router address validation logic error prevents valid router assignment

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.

Blackhole

High
Business logic

Incorrect function call in BribeFactoryV3 recoverERC20AndUpdateData

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.

Blackhole

Medium
DoS

Griefing attack on GenesisPoolManager.sol::depositNativeToken leading to Denial of Service

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.

Blackhole

Medium
Business logic

First liquidity provider can DOS the pool of a stable pair

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.

Blackhole

Medium
DoS

ERC-2612 permit front-running in RouterV2 enables DoS of liquidity operations

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.

Blackhole

Medium