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.
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.
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.
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.
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.
The NFT transfer function calls an external function that changes the sender to the contract address, causing an ownership check to fail and the transfer to revert. This means users cannot transfer their delegation NFTs.
The addFee function returns early when the reward token supply exceeds one billion, skipping the recording of trading fees. As a result, stakers lose their fee rewards and the fees become permanently locked in the contract.
The _settleBalances function double-counts the protocol fee when calculating the taker's payout, because the fee is multiplied by the order amount twice. An attacker could exploit this to cause the taker to receive less than due, with the excess funds left on the contract balance.
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.
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.
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.
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.
An order whose token amount is the maximum unsigned integer value cannot be cancelled, because the cancellation routine adds one to that amount and the arithmetic overflows, making the transaction revert every time. An attacker could therefore leave such an order permanently uncancellable.
Burning a delegated NFT did not remove its delegation reference, leaving a stale entry in the delegation list. This caused bloat, wasted gas, and reduced the maximum number of real delegators.
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.
The validateOrder function in GolomTrader calls ecrecover directly and does not check if the returned address is zero. An attacker could submit an order with an invalid signature that recovers to address zero, making the order appear valid and enabling a griefing attack.
The token contract lacks a function to mint treasury tokens, so the minter must be changed via a timelocked process. During the 24-hour timelock, the reward distributor cannot mint, causing all trades to revert.
A maker could set a reserved address to a custom contract and hide the desired payment amount in the order's root field, allowing them to avoid paying marketplace fees while still receiving payment. An attacker could use this to trade on Golom without paying fees.
The VoteEscrowDelegation contract incorrectly updates both the previous and current checkpoints when a delegate is changed or removed, because it modifies a storage reference to the latest checkpoint before writing a new one. This leads to incorrect vote counting, allowing retroactive manipulation of voting power.
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.
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.
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.
The fillAsk() function only checks that msg.value is at least the required amount, not exactly equal, so any excess Ether sent is permanently locked in the contract. An attacker could deliberately overpay to trap funds, or a user might accidentally lose money.
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.
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.
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.
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.
The VoteEscrowCore.safeTransferFrom function calls onERC721Received on the receiver but does not verify that the returned value equals the required magic bytes. An attacker could send NFTs to a non-compliant contract that implements a fallback function, causing the tokens to be lost.
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.
GC
Golom contest
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.