Skip to content

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
Find Marginswap on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Marginswap chose to make public.

ReportClassSeverityBountyCVSSVotesDisclosed
Price feed can be manipulated Smart contracts High – – – 3 May 2021
Users are credited more tokens when paying back debt with registerTradeAndBorrow Business logic High – – – 3 May 2021
Rewards cannot be withdrawn Business logic High – – – 3 May 2021
No default liquidationThresholdPercent Business logic Medium – – – 3 May 2021
Users Can Drain Funds From MarginSwap By Making Undercollateralized Borrows If The Price Of A Token Has Moved More Than 10% Since The Last MarginSwap Borrow/Liquidation Involving Accounts Holding That Token. – Medium – – – 3 May 2021
PriceAware uses prices from getAmountsOut – Medium – – – 3 May 2021
Isolated margin contracts declare but do not set the value of liquidationThresholdPercent Business logic Medium – – – 3 May 2021
Wrong liquidation logic Business logic High – – – 3 May 2021
diffMaxMinRuntime gets default value of 0 Business logic Medium – – – 3 May 2021
Add a timelock to functions that set key variables Business logic Medium – – – 3 May 2021
account.holdsToken is never set Business logic High – – – 3 May 2021
Re-entrancy bug allows inflating balance Smart contracts High – – – 3 May 2021
Missing fromToken != toToken check Business logic High – – – 3 May 2021
Several function have no entry check Access control Medium – – – 3 May 2021
maintainer can be pushed out Access control Medium – – – 3 May 2021
No entry checks in crossSwap[Exact]TokensFor[Exact]Tokens Access control Medium – – – 3 May 2021
Missing checks if pairs equal tokens Business logic Medium – – – 3 May 2021
Impossible to call withdrawReward fails due to run out of gas DoS High – – – 3 May 2021
lastUpdatedDay not initialized DoS High – – – 3 May 2021