Hunt prep
Before you test Amun contest
What 12 disclosed reports say about Amun 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 | 9 | 0 | – | – | $0 |
| Smart contracts lesson | 2 | 0 | – | – | $0 |
| DoS lesson | 1 | 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.
-
Unchecked return value from low-level call()
The contract should be fixed by adding a condition to check the return value of the low-level call.
Disclosed
-
Function joinTokenSingle in SingleTokenJoin.sol and SingleTokenJoinV2.sol can be made to fail
The require statement should be changed to check that the contract's balance is at least the expected output amount, rather than exactly equal.
Disclosed
-
Unused ERC20 tokens are not refunded, and can be stolen by attacker
The fix should either calculate the exact token amounts needed before swapping or refund any leftover tokens.
Disclosed
-
totalSupply may exceed LibBasketStorage.basketStorage().maxCap
The fee amount and beneficiary share should be calculated before the cap check, and the check should include them.
Disclosed
-
Failed transfer with low level call could be overlooked
The contract should check that the target address has code before making the call.
Disclosed
-
It is possible to “uninitialize” ERC20Facet contract
The contract should be fixed by adding checks to prevent setting the name or symbol to empty strings.
Disclosed
-
block.timestamp or deadline
The code should be fixed by replacing block.timestamp with the appropriate deadline from the input struct.
Disclosed
-
fees calculations are not accurate
The fee calculation should account for the dilution by minting a larger amount or using a different mechanism to transfer value without diluting the beneficiary's share.
Disclosed
-
SingleNativeTokenExitV2 assumes first exchange holds the outputToken
The output token should be a parameter supplied in ExitTokenStructV2.
Disclosed