Skip to content

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

Disclosed reports

Newest first. Only what Timeswap contest chose to make public.

ReportClassSeverityBountyCVSSVotesDisclosed
Burning a ERC1155Enumerable token doesn’t remove it from the enumeration Business logic Medium – – – 10 Mar 2023
unexpected overflow for FullMath.add512() which can result in irregular behavior Smart contracts Medium – – – 10 Mar 2023
_ownedTokensIndex is SHARED by different owners, as a result, _removeTokenFromAllTokensEnumeration might remove the wrong tokenId. Business logic Medium – – – 10 Mar 2023
Mint function does not update LiquidityPosition state of caller before minting LP tokens. This Business logic Medium – – – 10 Mar 2023
TimeswapV2LiquidityToken should not use totalSupply()+1 as tokenId Business logic High – – – 10 Mar 2023
Rebalance logic is wrong and this distorts the pool’s important states Business logic High – – – 10 Mar 2023
The collect() function will always TRANSFER ZERO fees, losing _feesPositions without receiving fees! Business logic High – – – 10 Mar 2023
_currentIndex is incorrectly updated; breaking the ERC1155 enumerable implementation Business logic Medium – – – 10 Mar 2023
sqrtDiscriminant can be calculated wrong – Medium – – – 10 Mar 2023
Fee on transfer tokens will not behave as expected Business logic Medium – – – 10 Mar 2023
Wrong timing of check allows users to withdraw collateral without paying for the debt Business logic High – – – 17 May 2022
NPM Dependency confusion. Unclaimed NPM Package and Scope/Org RCE Medium – – – 17 May 2022
The pay() function can still be DOSed DoS Medium – – – 17 May 2022
Underflown variable in borrowGivenDebtETHCollateral function Smart contracts Medium – – – 17 May 2022
In the lend() function state updates are made after the callback Smart contracts High – – – 3 Mar 2022
TimeswapPair.sol#borrow() Improper implementation allows attacker to increase pool.state.z to a large value Business logic High – – – 3 Mar 2022
safeDecimals can revert causing DoS DoS Medium – – – 3 Mar 2022
burn() doesn’t call ERC721 _burn() Business logic Medium – – – 3 Mar 2022
TimeswapConvenience.sol#borrowGivenDebt() Attacker can increase state.y to an extremely large value with a dust amount of assetOut Business logic High – – – 3 Mar 2022
borrow() function has state updates after a callback to msg.sender – High – – – 3 Mar 2022
safeName() can revert causing DoS DoS Medium – – – 3 Mar 2022
XSS via SVG Construction contract XSS Medium – – – 3 Mar 2022
DOS pay function DoS Medium – – – 3 Mar 2022
pay() function has callback to msg.sender before important state updates – High – – – 3 Mar 2022
safeSymbol() can revert causing DoS DoS Medium – – – 3 Mar 2022
TimeswapPair.sol#mint() Malicious user/attacker can mint new liquidity with an extremely small amount of yIncrease and malfunction the pair with the maturity Business logic Medium – – – 3 Mar 2022
no reentrancy guard on mint() function that has a callback Smart contracts Medium – – – 3 Mar 2022
users might pay enormous amounts of gas Business logic Medium – – – 3 Mar 2022
Convenience contract fails to function if asset or collateral is an ERC20 token with fees Business logic Medium – – – 3 Mar 2022
Manipulation of the Y State Results in Interest Rate Manipulation Business logic High – – – 3 Mar 2022