Technique · Smart contracts
Rounding and precision errors
289 disclosed reports use this technique.
Reports
Filter and sortPaid and upvoted first.
-
SGLLiquidation::_computeAssetAmountToSolvency , Market::_isSolvent and Market::_computeMaxBorrowableAmount may overestimate the collateral, resulting in false solvency
Smart contracts High Tapioca Invitational Audit finding
-
RTokenAsset price estimation accounts for margin of error twiceSmart contracts Medium Reserve Core Audit finding
-
Index values selected in `_woundRequestFulfilled()` are not uniformly distributed
Smart contracts Medium LooksRare YOLO Audit finding +3 collaborators
-
A malicious user can steal other user’s deposits from Vault.solSmart contracts High PoolTogether Audit finding +1 collaborator
-
Malicious Users Can Drain The Assets Of Vault. (Due to not being ERC4626 Complaint)Smart contracts Medium Popcorn contest Audit finding +9 collaborators
-
First vault depositor can steal other’s assetsSmart contracts High Popcorn contest Audit finding +23 collaborators
-
Any user can drain the entire reward fund in MultiRewardStaking due to incorrect calculation of supplierDeltaSmart contracts High Popcorn contest Audit finding +3 collaborators
-
The calculation of takeFees in Vault contract is incorrectSmart contracts Medium Popcorn contest Audit finding +2 collaborators
-
Understatement of poolTotalPeUSDCirculation amounts due to incorrect accounting after function _repay is called
Smart contracts Medium Lybra Finance Audit finding +27 collaborators
-
The EUSDMiningIncentives contract is incorrectly implemented and can allow for more than the intended amount of rewards to be minted
Smart contracts Medium Lybra Finance Audit finding +1 collaborator
-
Inflation attack by token transfer
Smart contracts Medium xETH - Versus Contest Audit finding +2 collaborators
-
ShortFall contract might transfer an incorrect amount of tokens to the highest bidder.
Smart contracts Medium Venus Prime Audit finding +12 collaborators
-
Unsafe cast in getCollateralRatio()
Smart contracts Medium Angle Protocol - Invitational Audit finding +1 collaborator
-
Reth poolPrice calculation may overflow
Smart contracts High Asymmetry Finance afETH Invitational Audit finding +5 collaborators
-
An attacker can manipulate the preDepositvePrice to steal from other users
Smart contracts High Asymmetry Finance afETH Invitational Audit finding +40 collaborators
-
_account_for_withdraw_liquidity rounding in the wrong direction will run out of the vault
Smart contracts Medium Unstoppable Audit finding
-
Funds can be stolen from the `FixedStrikeOptionTeller` contract by creating put option tokens without providing collateral
Smart contracts Medium Bond Options Audit finding +2 collaborators
-
Possible precision loss in `_checkpositionsRange` function
Smart contracts Medium Real Wagmi #2 Audit finding +8 collaborators
-
BalancedVault.sol: Early depositor can manipulate exchange rate and steal fundsSmart contracts Medium Perennial V2 Update #1 Audit finding +1 collaborator
-
Unsafe casting from uint256 to uint128 in RewardsManager
Smart contracts Medium Ajna Protocol Audit finding
-
Calculating new rewards is susceptible to precision loss due to division before multiplication
Smart contracts Medium Ajna Protocol Audit finding +2 collaborators
-
Wrong computation of the amountToSellUnit variable
Smart contracts High USSD - Autonomous Secure Dollar Audit finding +22 collaborators
-
yIntercept of public vaults can overflowSmart contracts Medium Astaria contest Audit finding
-
Risk of silent overflow in reserves update
Smart contracts High Caviar Private Pools Audit finding +24 collaborators
-
Oracle tick rounding the wrong direction can lead to Swapper overpaying for swapSmart contracts Medium Splits Audit finding
-
The range of iteratePRNG limits the number of Zalgo distortions
Smart contracts Medium Canto Identity Subprotocols contest Audit finding
-
LinearDistributor.declareReward() might revert after changing vestingDistributor .
Smart contracts Medium Malt Protocol - Versus contest Audit finding
-
The latest malt price can be less than the actual price target and StabilizerNode.stabilize will revert
Smart contracts Medium Malt Protocol - Versus contest Audit finding +1 collaborator
-
Semi-erroneous Median Value
Smart contracts Medium ParaSpace contest Audit finding
-
NFTFloorOracle’s asset and feeder structures can be corrupted
Smart contracts High ParaSpace contest Audit finding +4 collaborators
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