Hunt prep
Before you test LI.FI contest
What 15 disclosed reports say about LI.FI 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 | 10 | 0 | – | – | $0 |
| Access control lesson | 2 | 0 | – | – | $0 |
| DoS lesson | 1 | 0 | – | – | $0 |
| Smart contracts 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.
-
Swap functions are Reenterable
The issue was fixed by adding a reentrancy guard to all functions that may send or receive tokens, using a shared storage slot.
Disclosed
-
AnyswapFacet can be exploited to approve arbitrary tokens.
The issue was fixed by not allowing underlying() to be called multiple times in one transaction.
Disclosed
-
WithdrawFacet’s withdraw calls native payable.transfer , which can be unusable for DiamondStorage owner contract
The transfer() call should be replaced with a low-level call.value(amount) with a result check or OpenZeppelin's Address.sendValue; the report states it was fixed.
Disclosed
-
ERC20 bridging functions do not revert on non-zero msg.value
The bridging functions should revert when called with a non-zero native amount, and the sponsor confirmed this was fixed.
Disclosed
-
cBridge integration fails to send native tokens
The contract was fixed by attaching the native token amount to the sendNative call and marking the interface function as payable.
Disclosed
-
LibSwap: Excess funds from swaps are not returned
The contract was fixed to store the balance before and after the swap and refund any excess to the user.
Disclosed
-
Anyone can get swaps for free given certain conditions in swap .
The swap function should always deduct the swap amount from the user's account, even if the contract already holds enough tokens; the project later fixed this by sweeping latent funds back to the user.
Disclosed
-
All swapping functions lack checks for returned tokens
The issue was fixed by adding a check that at least one token was received, or by using function signature whitelists instead of contract address whitelists.
Disclosed
-
Reliance on lifiData.receivingAssetId can cause loss of funds
The contract was fixed by checking that the LifiData receiving asset matches the last SwapData receiving asset, or by using the last SwapData receiving asset for the final transfer.
Disclosed
-
msg.value is Sent Multipletimes When Performing a Swap
The issue was fixed by sweeping any latent funds back to the user's wallet in the most recent version of Swapper.sol.
Disclosed
-
Should prevent users from sending more native tokens in the startBridgeTokensViaCBridge function
The check was changed from >= to ==, and the sponsor confirmed the fix.
Disclosed
-
Reputation Risks with contractOwner
The project should add safeguards such as time limits on sensitive functions, a waiting period before upgrades, and a multisig to remove the single point of failure.
Disclosed
-
DexManagerFacet: batchRemoveDex() removes first dex only
The fix was to replace return with break and to emit events when a DEX is added or removed.
Disclosed
-
Failed transfer with low level call won’t revert
The contract should check that the target address contains code before making the low-level call.
Disclosed
-
Infinite approval to an arbitrary address can be used to steal all the funds from the contract
The router address should be whitelisted or only the exact amount needed should be approved, not an infinite amount.
Disclosed