Technique · Smart contracts
Rounding and precision errors
289 disclosed reports use this technique.
Reports
Filter and sortPaid and upvoted first.
-
Modulo opation introduces bias during the winning yeet calculationSmart contracts Medium Yeet Audit finding
-
Inaccurate calculation in accumulatedDeptRewardsYeet() causes double counting of vesting tokens as excess, leading to permanent loss of user fundsSmart contracts Critical Yeet Audit finding
-
Miscalculation of excess rewards via external token transfers leads to contract insolvency and incomplete withdrawalsSmart contracts Critical Yeet Audit finding
-
`Vault::_calcDeposit()` will overflow for low priced tokens
Smart contracts Medium Yieldoor Audit finding +1 collaborator
-
Miscalculation of maxClaimable variable leads to users being able to claim too many or too few reward tokensSmart contracts Informational Yeet Audit finding
-
VotingPool.sol Uniswap V2 pricing formula for spTKN is incorrect
Smart contracts Medium Peapods Audit finding
-
Vault inflation attack in `AutoCompoundingPodLp` is possible due to incorrectly minting dead shares
Smart contracts High Peapods Audit finding +1 collaborator
-
Rounding error in stepDuration calculations.Smart contracts Medium SecondSwap Audit finding +23 collaborators
-
In transferVesting , the grantorVesting.releaseRate is calculated incorrectly, which leads to the sender being able to unlock more tokens than were initially locked.Smart contracts High SecondSwap Audit finding +11 collaborators
-
There is a calculation error in AuraVault::redeem()
Smart contracts High LoopFi Audit finding +1 collaborator
-
Attack on rounding errors to get risk free profitSmart contracts Medium Rubicon v2 Audit finding +6 collaborators
-
Bid with high price effectively can end up with lower price
Smart contracts Medium Plaza Finance Audit finding
-
Vault is vulnerable to inflation attack which can cause complete loss of user funds
Smart contracts High Numa Audit finding +10 collaborators
-
Unsafe Type Casting in Token Amount Handling
Smart contracts High Oku's New Order Types Contract Contest Audit finding +1 collaborator
-
Inflation attack in xalgoSmart contracts Informational Folks: Liquid Staking Audit finding
-
Overflow due to lack of checks leading to incorrect price calculationSmart contracts Medium Celo Audit finding
-
Attackers can create dynamic LOC with any credited amount with very small collateral amount
Smart contracts Critical Anvil: Letters of Credit Audit finding
-
Unintended under/overflow of the amount already swapped in/out due to unmatching logic
Smart contracts Medium Superposition Audit finding
-
Quorum overflow in `CollectionShutdown` leads to complete drain of contract's funds
Smart contracts High Flayer Audit finding +10 collaborators
-
Base pools can get bricked if depositors pull outSmart contracts Medium Sentiment V2 Audit finding +3 collaborators
-
rounding error due to internal accounting and can steal some portion of the first depositors fundsSmart contracts High Sentiment V2 Audit finding +2 collaborators
-
Users won’t liquidate positions because the logic used to calculate the liquidator’s profit is incorrect
Smart contracts High Size Audit finding +50 collaborators
-
Division before multiplication could lead to users losing 50% in WithdrawalQueueSmart contracts High Gondi Invitational Audit finding
-
Incorrect price for negative ticks due to lack of rounding down
Smart contracts Medium Predy Audit finding +16 collaborators
-
Overflow in CollateralTracker allows minting shares for freeSmart contracts High Panoptic Audit finding
-
_getReferencePoolPriceX96() will show incorrect price for negative tick deltas in current implementation cause it doesn’t round up for them
Smart contracts High Revert Lend Audit finding +2 collaborators
-
Large decimal of referenceToken causes overflow at oracle price calculation
Smart contracts Medium Revert Lend Audit finding +6 collaborators
-
The Rounding Done in Protocol's Favor Can Be Weaponized to Drain the Protocol
Smart contracts High Exactly Protocol Audit finding +2 collaborators
-
Precision Loss in FluxTokensolgetClaimableFluxSmart contracts High Alchemix Audit finding
-
GetActualSupply should be used instead of totalSmart contracts High Alchemix Audit finding
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