Skip to content

Code4rena

Golom contest

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

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

Disclosed reports

Newest first. Only what Golom contest chose to make public.

Access control

veNFT withdraw and merge fail for approved callers

The veNFT contract's merge and withdraw functions allow approved spenders to call them, but the internal _burn function incorrectly passes msg.sender instead of the token owner to _removeTokenFrom, causing a revert. As a result, approved callers cannot merge or withdraw veNFTs, limiting functionality to the token owner only.

Golom contest

Medium
Business logic

Pre-check is not correct

A pre-check in the fillCriteriaBid function can revert a transaction even though the subsequent settlement logic would succeed. An attacker could cause a legitimate bid fill to fail under specific conditions, disrupting protocol functionality.

Golom contest

Medium
Smart contracts

Use call() rather than transfer() on address payable

The smart contract uses `.transfer()` to send ether, which forwards only 2300 gas units. An attacker could cause payments to fail if the recipient is a contract requiring more gas, or if gas costs rise, breaking the protocol.

Golom contest

Medium
Access control

Some setters’ timelock can be bypassed

The timelock mechanism for setting privileged addresses in several contracts could be bypassed by the owner. An attacker with owner privileges could set a new minter or distributor without waiting for the intended delay, reducing the notice period for such changes.

Golom contest

Medium
Business logic

When MIN_VOTING_POWER_REQUIRED is changed, previous votes are not affected

When the minimum voting power threshold is changed, previously cast votes are not re-evaluated, so token IDs with voting power below the new threshold can still have their old votes counted. An attacker could exploit this to retain influence from spam or low-power votes after the threshold is raised.

Golom contest

Medium
Business logic

Repeated calls to multiStakerClaim in the same block leads to loss of funds

The reward distributor allowed the same staker reward to be claimed multiple times for one epoch if the claims occurred in the same block, because moving locked tokens to a new lock created a new token ID that bypassed the per-token claim check. An attacker could drain the contract's WETH balance by repeatedly claiming and merging locks within the epoch-changing block.

Golom contest

High
Business logic

Cannot remove delegation from a token to another token

The removeDelegation function in a vote-escrow contract removes the token from its own list of delegators instead of from the delegatee's list, so a user cannot undo a delegation. The delegatee permanently keeps the voting power, which could enable governance attacks.

Golom contest

High
Access control

Voter in VoteEscrowCore can permanently lock user tokens

A malicious voter can call voting() or attach() to increase a token's attachments or set its voted status, preventing withdrawal, merge, or transfer. This locks the user's tokens in the contract indefinitely.

Golom contest

Medium
Crypto

Replay attack in case of hard fork

The contract computes the EIP-712 domain separator once in the constructor using the chain ID at deployment time. If the chain undergoes a hard fork, the cached domain separator remains tied to the old chain ID, so signatures intended for one chain could be replayed on the other.

Golom contest

Medium
Access control

VoteEscrowDelegation._transferFrom can only be executed by the token owner

The internal transfer routine calls a delegation-removal function that only accepts the token owner as caller, so transfers initiated by an approved operator or approved address revert. As a result, only the token owner can move a delegated token, breaking the expected approval-based transfer flow.

Golom contest

Medium
Business logic

_writeCheckpoint does not write to storage on same block

The checkpoint-writing function in a vote-escrow delegation contract updated a memory copy instead of storage when overwriting a checkpoint in the same block, so the second delegation in that block was not saved. An attacker could repeatedly delegate and remove a token in one transaction to multiply their delegation power.

Golom contest

High
Smart contracts

Use safeTransferFrom Instead of transferFrom for ERC721

The contract moved ERC721 tokens with transferFrom rather than safeTransferFrom, so it never checked whether the receiving address could handle NFTs. If the recipient was a contract that does not implement the receiver hook, the token could become permanently stuck there.

Golom contest

Medium
Access control

Owner can not set the ve address via RewardDistributor.addVoteEscrow

The addVoteEscrow function assigned the ve address from an uninitialised storage variable instead of the function parameter, so the ve address stayed at zero. This prevented veNFT holders from claiming reward tokens and Ether rewards through multiStakerClaim.

Golom contest

High
DoS

NFTs that don’t have a checkpoint can’t be transferred

The removeDelegation function underflows when a token has no checkpoints, causing a revert that prevents transferring such tokens. An attacker could not exploit this for gain, but it temporarily blocks transfers for affected tokens.

Golom contest

Medium
Business logic

Old delegatee not deleted when delegating to new tokenId

The delegate function did not remove a token from its previous delegatee when delegating to a new token, so a user could delegate the same token to multiple token IDs and multiply its voting power. An attacker could therefore inflate their governance voting weight.

Golom contest

High
Business logic

Griefer can minimize delegatee’s voting power

The delegate function allowed the same lock NFT to be delegated multiple times, so an attacker could fill a victim's delegated token array with worthless tokens up to the 500 limit, reducing the victim's voting power to zero. This could be used to grief a delegatee during a live proposal.

Golom contest

Medium
DoS

VoteEscrowDelegation._writeCheckpoint fails when nCheckpoints is 0

The _writeCheckpoint function in VoteEscrowDelegation reverts when nCheckpoints is zero because it accesses an array at index -1, causing an underflow. This prevents any user from making a delegation until a checkpoint exists, effectively blocking the delegation feature entirely.

Golom contest

High
Business logic

Rewards owed burned NFT in RewardDistributor.sol become irretrievable

When an NFT is burned, its owner becomes the zero address, so the reward distribution function tries to transfer tokens to that address. The ERC20 token used does not allow transfers to the zero address, causing the function to revert and permanently locking the rewards in the contract.

Golom contest

Medium