Technique · Smart contracts
Rounding and precision errors
289 disclosed reports use this technique.
Reports
Filter and sortPaid and upvoted first.
-
Underflown variable in borrowGivenDebtETHCollateral function
Smart contracts Medium Timeswap contest Audit finding
-
First depositor can break minting of sharesSmart contracts High prePO contest Audit finding
-
Basket.sol#auctionBurn calculates ibRatio wrong
Smart contracts Medium Kuiper contest Audit finding
-
the first depositor to a pool can drain all users
Smart contracts High InsureDAO contest Audit finding
-
LinearVesting does not calculate vested amount linearly
Smart contracts Medium Vader Protocol contest Audit finding
-
USDV and VADER rate can be wrong
Smart contracts High Vader Protocol contest Audit finding
-
TwapOracle doesn’t calculate VADER:USDV exchange rate correctly
Smart contracts High Vader Protocol contest Audit finding
-
Unsafe uint64 casting may overflowSmart contracts Medium PoolTogether Audit finding
-
customPrecisionMultipliers would be rounded to zero and break the pool
Smart contracts High Boot Finance contest Audit finding
-
Incorrect usage of typecasting in _getAmountsForLiquidity lets an attacker steal funds from the pool
Smart contracts High Sushi Trident contest phase 2 Audit finding
-
Unsafe cast in ConcentratedLiquidityPool.burn leads to attack
Smart contracts High Sushi Trident contest phase 2 Audit finding
-
Overflow in the mint function of ConcentratedLiquidityPool causes LPs’ funds to be stolen
Smart contracts High Sushi Trident contest phase 2 Audit finding
-
Unsafe cast in IndexPool mint leads to attack
Smart contracts High Sushi Trident contest phase 1 Audit finding
-
Incorrect multiplication in _computeSingleOutGivenPoolIn of IndexPool
Smart contracts High Sushi Trident contest phase 1 Audit finding
-
absolute difference is not calculated properly when a > b in MathUtils
Smart contracts High Sushi Trident contest phase 1 Audit finding
-
Incorrect usage of _pow in _computeSingleOutGivenPoolIn of IndexPool
Smart contracts High Sushi Trident contest phase 1 Audit finding
-
reward tokens could get lost due to rounding downSmart contracts Medium Covalent contest Audit finding
-
implicit underflows
Smart contracts High Gro Protocol Audit finding
-
YieldMath.sol / Log2: >= or > ?
Smart contracts High Yield Witch v2 contest Audit finding
-
Divide before multiply
Smart contracts Medium Vader Protocol contest Audit finding
-
[web3] Informational bug in GYSR found by MiloTruckSmart contracts Write-up
-
Claimers who claim after (slash/inactive + updateRewardPerTokenForValidator which advances validatorLastUpdateTimes to be more than slashTimestamp) will lose rewards for a segmentSmart contracts High Plume Network Audit finding
-
AstroportSmart contracts Write-up
-
BalancerSmart contracts Write-up
-
FraxlendSmart contracts Write-up
-
Hack Analysis Saddle Finance April 2022Smart contracts Write-up
-
Hack Analysis Uranium Finance April 2021Smart contracts Write-up
-
Aztec Multiple Spend Error Bug Fix ReviewSmart contracts Write-up
-
Balancer Rounding ErrorSmart contracts Write-up
-
Dfx Finance Rounding Error Bug Fix ReviewSmart contracts Write-up
Guides and techniques
All guidesThe best explainers, cheat sheets and technique posts on Rounding and precision errors, from around the web.
-
Breaking Business Logic: 7 Attack Scenarios in E-Commerce, Payments and Application WorkflowsCovers seven business logic attack scenarios across e-commerce and payment workflows, giving hunters practical testing ideas.
Technique infosecwriteups.com
-
Payment Bypass Guide for Bug Bounty | 69 case studiesWalks through payment logic flaws with many case studies showing how to bypass checkout and pricing controls.
Methodology medium.com