Code4rena
Marginswap
Every publicly disclosed report for Marginswap and what kind of bugs they were.
- disclosed reports
- 19
- most reported class
- Business logic
- bug classes found
- 4
- first disclosure
- 2021
Disclosed reports
Newest first. Only what Marginswap chose to make public.
-
Price feed can be manipulated
Smart contracts High Audit finding
-
Users are credited more tokens when paying back debt with registerTradeAndBorrow
Business logic High Audit finding
-
Rewards cannot be withdrawn
Business logic High Audit finding
-
No default liquidationThresholdPercent
Business logic Medium Audit finding
-
PriceAware uses prices from getAmountsOut
Medium Audit finding
-
Isolated margin contracts declare but do not set the value of liquidationThresholdPercent
Business logic Medium Audit finding
-
Wrong liquidation logic
Business logic High Audit finding
-
diffMaxMinRuntime gets default value of 0
Business logic Medium Audit finding
-
Add a timelock to functions that set key variables
Business logic Medium Audit finding
-
account.holdsToken is never set
Business logic High Audit finding
-
Re-entrancy bug allows inflating balance
Smart contracts High Audit finding
-
Missing fromToken != toToken check
Business logic High Audit finding
-
Several function have no entry check
Access control Medium Audit finding
-
maintainer can be pushed out
Access control Medium Audit finding
-
No entry checks in crossSwap[Exact]TokensFor[Exact]Tokens
Access control Medium Audit finding
-
Missing checks if pairs equal tokens
Business logic Medium Audit finding
-
Impossible to call withdrawReward fails due to run out of gas
DoS High Audit finding
-
lastUpdatedDay not initialized
DoS High Audit finding