Sherlock
Elfi
Every publicly disclosed report for Elfi and what kind of bugs they were.
- disclosed reports
- 57
- most reported class
- Business logic
- bug classes found
- 4
- first disclosure
- 2024
Disclosed reports
Newest first. Only what Elfi chose to make public.
-
Improper implementation of the `PositionMarginProcess.updatePositionFromBalanceMargin()` function
Business logic High Audit finding
-
Future upgrades may be difficult or impossible
Misconfiguration Medium Audit finding
-
The USer will receive less amount than user expected
Business logic Medium Audit finding +2 collaborators
-
Closing partial positions miscounts the settled fees
Business logic High Audit finding +1 collaborator
-
Position net value is using outdated fees
Business logic High Audit finding
-
Long orders always pays lesser in fees while short orders always pays higher due to oracle pricing
Business logic High Audit finding
-
Increasing leverage can make the position have "0" `initialMargin`
Business logic High Audit finding +1 collaborator
-
Pool value calculation skips accounting for stable token losses and short uPnL
Business logic High Audit finding +1 collaborator
-
If the stake token is minted from portfolio vault, positions from balances are not decreased
Business logic High Audit finding
-
Incorrect settleFee process for cross-margin account
Business logic Medium Audit finding
-
If stable tokens depeg, short funding fees will not be accounted properly
Business logic Medium Audit finding
-
Submitting mint request using user's trading balance and cancelling it will not refund tokens back to trading account
Business logic High Audit finding
-
LpPool's can become insolvent if shorters are in huge profits
Business logic High Audit finding +2 collaborators
-
Traders may decrease the loss via decrease the position's margin
Business logic High Audit finding
-
Lack of oracle setting in autoReducePositions
DoS Medium Audit finding +2 collaborators
-
In Cross Margin mode, the user’s profit calculation is incorrect
Business logic High Audit finding
-
The implementation of `payExecutionFee()` didn't take `EIP-150` into consideration. Keepers can steal additional execution fee from users
Business logic Medium Audit finding +1 collaborator
-
Unbacked tokens can be used for opening positions
Business logic Medium Audit finding
-
Users can use weth to replace any margin token in createUpdatePositionMarginRequest()
Business logic High Audit finding
-
Keepers can open positions that are already liquidatable
Business logic High Audit finding
-
If cross positions use the same margin token as collateral and close without liability, then fee accounting will be completely wrong
Business logic High Audit finding
-
Incorrect implementation of the `PositionMarginProcess.updatePositionFromBalanceMargin()` function
Business logic High Audit finding +1 collaborator
-
Anyone can change the balance of an account to drain the entire portfolio vault
Access control High Audit finding +20 collaborators
-
Pool value does not consider the open funding fees
Business logic High Audit finding
-
redeem stake token may be Dos because there is not enough balance in stake pool
DoS High Audit finding +5 collaborators
-
`updateAllPositionFromBalanceMargin` function mistakenly increments positions "fromBalance"
Business logic High Audit finding +9 collaborators
-
Use of outdated liability value in decreasePosition leads to account error
Business logic Medium Audit finding
-
Attacker can inflate stake rewards as he wants
Business logic High Audit finding +2 collaborators
-
Keepers loss gas is never accounted
Business logic Medium Audit finding +14 collaborators
-
Contract will reach a point where users will not be able to call `deposit`
Business logic Medium Audit finding +6 collaborators