Hunt prep
Before you test Behodler contest
What 21 disclosed reports say about Behodler 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 | 14 | 0 | – | – | $0 |
| Smart contracts lesson | 3 | 0 | – | – | $0 |
| Access control lesson | 2 | 0 | – | – | $0 |
| DoS 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.
-
Tolerance is not enforced during a flash governance decision
The enforcement flag should be set before the function body runs, so the tolerance check applies during the call.
Disclosed
-
You can flip governance decisions without extending vote duration
The project implemented a rule that the square of the new vote must not equal the current tally, preventing a vote from exactly cancelling the current tally to zero.
Disclosed
-
user won’t be able to get his rewards in case of staking with amount = 0
The if statement should be removed so that reward calculation always runs, or the reward debt update should be skipped when the amount is zero.
Disclosed
-
UniswapHelper.buyFlanAndBurn is a subject to sandwich attacks
The function should accept a minimum accepted price as an argument and check that the received amount is above it, possibly using a TWAP oracle for percentage-based slippage control.
Disclosed
-
Double transfer in the transferAndCall function of ERC677
The fix is to remove the redundant `_transfer` call from the `transferAndCall` function.
Disclosed
-
Flash loan price manipulation in purchasePyroFlan()
The report recommends using a time-weighted average price (TWAP) instead of the single-point pool price to make a flash-loan sandwich attack more costly.
Disclosed
-
You can grief migrations by sending SCX to the UniswapHelper
The mitigation could be to change the equality check to a greater-than-or-equal comparison, and to remove the redundant parameter.
Disclosed
-
All the scxMinted is at risk of being burnt.(Limbo.sol)
The report recommends inserting a require statement to ensure adjustedRectangle is not zero; the project acknowledged the issue but noted the main variable is hardcoded and only a community-set inflation factor could be zero.
Disclosed
-
Calling generateFLNQuote twice in every block prevents any migration
The project acknowledged the issue and suggested forcing the caller to pay and burn EYE tokens if the interval is below the minimum, but no fix was implemented in the text.
Disclosed
-
Consistently check account balance before and after transfers for Fee-On-Transfer discrepencies
The contract should check the balance before and after the transfer to account for fees-on-transfer.
Disclosed
-
Logic error in burnFlashGovernanceAsset can cause locked assets to be stolen
The fix is to change line 134 to delete the pendingFlashDecision mapping entry instead of setting it to the default.
Disclosed
-
Lack of access control in the parameterize function of proposal contracts
Only allow the creator of the proposal to modify the parameters.
Disclosed
-
Burning a User’s Tokens for a Flash Proposal will not Deduct Their Balance
The function should delete the user's pending decision or subtract the burned amount, rather than overwriting it with the config.
Disclosed
-
Reentrancy on Flash Governance Proposal Withdrawal
The pending decision should be deleted before the external transfer is made, following the check-effects-interactions pattern.
Disclosed
-
Incorrect unlockTime can DOS withdrawGovernanceAsset
The unlock time should be set to a constant unlock period plus the current block timestamp, not incremented.
Disclosed