Code4rena
Timeswap contest
Every publicly disclosed report for Timeswap contest and what kind of bugs they were.
- disclosed reports
- 31
- most reported class
- Business logic
- bug classes found
- 5
- first disclosure
- 2022
Disclosed reports
Newest first. Only what Timeswap contest chose to make public.
-
Burning a ERC1155Enumerable token doesn’t remove it from the enumeration
Business logic Medium Audit finding +4 collaborators
-
unexpected overflow for FullMath.add512() which can result in irregular behavior
Smart contracts Medium Audit finding
-
_ownedTokensIndex is SHARED by different owners, as a result, _removeTokenFromAllTokensEnumeration might remove the wrong tokenId.
Business logic Medium Audit finding +1 collaborator
-
Mint function does not update LiquidityPosition state of caller before minting LP tokens. This
Business logic Medium Audit finding
-
TimeswapV2LiquidityToken should not use totalSupply()+1 as tokenId
Business logic High Audit finding +1 collaborator
-
Rebalance logic is wrong and this distorts the pool’s important states
Business logic High Audit finding
-
The collect() function will always TRANSFER ZERO fees, losing _feesPositions without receiving fees!
Business logic High Audit finding +2 collaborators
-
_currentIndex is incorrectly updated; breaking the ERC1155 enumerable implementation
Business logic Medium Audit finding +1 collaborator
-
sqrtDiscriminant can be calculated wrong
Medium Audit finding
-
Fee on transfer tokens will not behave as expected
Business logic Medium Audit finding +7 collaborators
-
Wrong timing of check allows users to withdraw collateral without paying for the debt
Business logic High Audit finding
-
NPM Dependency confusion. Unclaimed NPM Package and Scope/Org
RCE Medium Audit finding
-
The pay() function can still be DOSed
DoS Medium Audit finding
-
Underflown variable in borrowGivenDebtETHCollateral function
Smart contracts Medium Audit finding
-
In the lend() function state updates are made after the callback
Smart contracts High Audit finding
-
TimeswapPair.sol#borrow() Improper implementation allows attacker to increase pool.state.z to a large value
Business logic High Audit finding
-
safeDecimals can revert causing DoS
DoS Medium Audit finding
-
burn() doesn’t call ERC721 _burn()
Business logic Medium Audit finding
-
TimeswapConvenience.sol#borrowGivenDebt() Attacker can increase state.y to an extremely large value with a dust amount of assetOut
Business logic High Audit finding
-
borrow() function has state updates after a callback to msg.sender
High Audit finding
-
safeName() can revert causing DoS
DoS Medium Audit finding
-
XSS via SVG Construction contract
XSS Medium Audit finding
-
DOS pay function
DoS Medium Audit finding
-
pay() function has callback to msg.sender before important state updates
High Audit finding
-
safeSymbol() can revert causing DoS
DoS Medium Audit finding
-
no reentrancy guard on mint() function that has a callback
Smart contracts Medium Audit finding
-
users might pay enormous amounts of gas
Business logic Medium Audit finding
-
Convenience contract fails to function if asset or collateral is an ERC20 token with fees
Business logic Medium Audit finding
-
Manipulation of the Y State Results in Interest Rate Manipulation
Business logic High Audit finding