Hunt prep
Before you test Golom contest
What 29 disclosed reports say about Golom contest: what was found and paid, what was fixed, and where it may be worth looking next.
- with a public bounty
- 0
- median public bounty
- –
- highest public bounty
- –
Gaps worth testing
Not written yet for this program. The numbers below are up to date.
What was found and what it paid
Public bounties only; many reports disclose without the amount.
| Class | Reports | Paid | Median | Highest | In all |
|---|---|---|---|---|---|
| Business logic lesson | 16 | 0 | – | – | $0 |
| Access control lesson | 5 | 0 | – | – | $0 |
| DoS lesson | 3 | 0 | – | – | $0 |
| Smart contracts lesson | 3 | 0 | – | – | $0 |
| Crypto lesson | 2 | 0 | – | – | $0 |
What was fixed
All reportsThe newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.
-
veNFT withdraw and merge fail for approved callers
The fix was to update _burn to pass the token owner address instead of msg.sender to _removeTokenFrom; the project removed merge and fixed withdraw.
Disclosed
-
Pre-check is not correct
The issue was fixed by changing the pre-check to only require the total amount to cover the exchange and pre-payment amounts, not the referrer fee.
Disclosed
-
Use call() rather than transfer() on address payable
The issue was fixed by replacing `.transfer()` with `.call()` and checking the success of the call.
Disclosed
-
Some setters’ timelock can be bypassed
The execute functions should check that the pending address is not zero, ensuring setters are called before executing and preventing setting to zero addresses.
Disclosed
-
When MIN_VOTING_POWER_REQUIRED is changed, previous votes are not affected
The getVotes and getPriorVotes functions should skip delegated balances below MIN_VOTING_POWER_REQUIRED when summing votes, and the project later added such checks.
Disclosed
-
NFT transferring won’t work because of the external call to removeDelegation .
The removeDelegation function should be made public and called without changing the context, so msg.sender remains the original caller.
Disclosed
-
addFee will stop accumulating fee once rewardToken has reached max supply
The issue was fixed by modifying addFee so that the supply check no longer skips accruing trade fees.
Disclosed
-
GolomTrader’s _settleBalances double counts protocol fee, reducing taker’s payout for a NFT sold
The protocol fee should be calculated without the amount multiplier and then multiplied by amount only when paying out, as shown in the recommended mitigation.
Disclosed
-
Repeated calls to multiStakerClaim in the same block leads to loss of funds
The merge function was removed as a mitigation, though the report suggests checkpointing lock balances per epoch as a more robust fix.
Disclosed
-
Cannot remove delegation from a token to another token
The issue was fixed by loading the delegatee token ID and using its checkpoint when removing the delegation.
Disclosed
-
Voter in VoteEscrowCore can permanently lock user tokens
The project removed the Voter functionality to fix the issue.
Disclosed
-
Replay attack in case of hard fork
The domain separator should be recomputed each time using the current chain ID rather than cached in the constructor.
Disclosed
-
Delegated NFTs that are withdrawn while still delegated will remain delegated even after burn
Override _burn in VoteEscrowDelegation to call removeDelegation for the token ID, and this was fixed.
Disclosed
-
VoteEscrowDelegation._transferFrom can only be executed by the token owner
The permission check in the delegation-removal function was changed so the sender is passed in, and the function was made public; the project confirmed and resolved it.
Disclosed
-
GolomTrader : validateOrder function does not check if ecrecover return value is 0
The contract should use OpenZeppelin's ECDSA library for signature verification, which checks for invalid signatures.
Disclosed