Bug class · Intermediate
Business logic flaws
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.
- disclosed reports
- 10,284
- median public bounty
- $1,025
Things to try
All 8,448Each line worked in a disclosed report. Test only what a program's scope allows.
Other 3369
- Apply two valid coupons alternately, twice each, and check whether both discounts stack and the cart total reaches zero.
- In one block, create a contract via CREATE2, self-destruct it and recreate it at the same address with new storage, then compare the rebuilt state root against the canonical one.
- Add a new NFT level and check whether its boost price per block defaults to zero, then boost a token of that level for free to skip maturity.
- Compare the configured base extrinsic weight against the measured cost of the chain's actual signature scheme and production signature verification.
Period and timestamp views 503
- Call the period-at-timestamp view with a past timestamp and with a future timestamp and check whether both return the current period.
- On a chain with irregular block production, check whether contracts use block.number for time-based durations and whether the resulting periods deviate.
- Call checkpoint, advance time and blocks, call checkpoint again, then read the stored block numbers and check whether a by-reference struct assignment made them wrong.
- Call checkpointTotalSupply at the very start of a new week and check whether it records a zero supply for the incomplete week, then test whether later claims and withdrawals revert.
Liquidation fees and collateral 477
- Liquidate a position that seizes all available collateral and check whether the base fee is paid to the liquidator or stranded in the contract.
- As admin, raise the minimum collateralisation ratio and check whether a previously healthy position becomes instantly liquidatable.
- As admin, set the minimum collateralisation above the global minimum and check whether the setter rejects it.
- Attempt a cross-chain liquidation where the borrow originated on another chain and check whether the maximum liquidatable amount is computed as zero because only borrows originating on the current chain are counted.
Skew and price-impact rebates 408
- If you can be both an LP and a trader, open a skew-increasing position just before your own redemption settles, redeem at the inflated share price, then close the position at the same price and check whether the refunded charge came out of other LPs' principal.
- Close a position that reduces skew and earns a rebate, then compare the treasury balance with an equivalent open that earns the same rebate.
- Close a position that earns a VPI rebate at least as large as the execution fee and check whether the treasury is credited only the fee minus the rebate, or nothing.
- On a skew-reducing close that earns a rebate, compare the treasury fee credit and the lens preview against the order receipt and policy evaluator.
Name normalisation and lookalikes 326
- Craft a renewal link whose name contains an invisible character and compare the name shown on the page with the label encoded in the transaction.
- Register an invisible-character variant of a victim's name, open the renewal page for the variant, and check whether the heading and expiry come from the normalised name while the renew calldata uses the raw lowercased label.
- Open a renewal link with a label that differs only by a character the two canonicalisers treat differently and check which name the price query and the renew calldata actually reference.
- Register the raw uppercase label of a name a victim owns, gift it to them, and have them open its transfer page to see whether the canonical lowercase token is moved instead.
Bypasses and variations
All 259- After a rescue, request a new withdrawal into the same still-open period so the stale claimed flag blocks it.
- Time the open or close of a skew-changing position to land just before an epoch boundary so the VPI effect is priced into the settlement.
- Alternating between two valid codes defeats a duplicate check that only remembers the last code.
- Use an invisible codepoint such as a soft hyphen or a decomposed form so the raw label renders identically to the victim's name but normalises to a different registration.
- Append an invisible soft hyphen or variation selector to a label so it normalises onto the victim's name while remaining a distinct on-chain name.
- Call the failing execution and the retry in the same transaction so the Latched state never persists across a transaction boundary.
Typical fixes
All 427- Apply ENSIP-15 normalisation once and use the same canonical name for display, reads, pricing and calldata.
- Take the balance snapshot before the vault withdrawal and compare it with the post-withdrawal balance.
- Decrement the deposited-shares ledger on every path that transfers shares out, including forced repay and liquidation.
- Cap the returned fee to the amount actually deducted from the account's collateral.
- Do not set the terminal claimed marker on periods that are still open, and clear it when zeroing the slot.
- Pin the period-start exposure at commitment time instead of reading a mutable timestamp-keyed checkpoint.
Start here: a reading path
Open the pathClear reports in order, easiest first.
-
1
VouchFaucet can be immediately drained by anyoneBeginner
The claimTokens function in the VouchFaucet contract does not update the claimedTokens mapping, so the maxClaimable limit is never enforced. Any address can claim an arbitrary amount of any token, draining the contract's entire balance.
-
2
LendingTerm.sol _partialRepay() A user cannot partial repay a loan with 0 interestBeginner
The require statement in _partialRepay() incorrectly demands that interestRepaid be non-zero, which is impossible for loans configured with zero interest.
-
3
Bypassing file size limits to the NPM package repositoryBeginner
The application used a client-provided 'length' value to check file size limits instead of measuring the actual size of the uploaded data.
-
4
createPromotion() Lack of input validation for _epochDuration can potentially freeze promotion creator’s fundsBeginner
Likely the createPromotion function did not validate that _epochDuration is greater than zero, leading to a division by zero in reward calculations and an inability to cancel.
-
5
Users can exploit the batch minting feature to avoid paying minting fees for tokensBeginner
The mintBatch function passes the per-receiver amount to the fee collector instead of the total amount (amount multiplied by the number of receivers).
-
6
Missing per user scoping in the email verification rate limit lets any signed in account lock another user out of adding their email to notificationsBeginner
The rate-limit key was built from the normalised email address alone, with no account identifier, so all users shared one counter per address.
-
7
$5,800 for a Negative Number: Manipulating Checkout Totals ThrougBeginner
The server calculated totals from client-supplied quantity values without checking they were positive integers, and the checkout flow trusted that total for payment decisions instead of recalculating safely.
-
8
VetoProposal : User can veto multiple times so every proposal can be vetoed by any user that has a small amount of votesBeginner
The voteToVeto function did not record or check whether the caller had already voted on that proposal, allowing repeated votes from the same address.
Guides and techniques
View allThe best explainers, cheat sheets and technique posts on Business logic, from around the web.
-
The State of State MachinesProject Zero analyses state machine bugs, a deep methodology for finding logic flaws in parsers and protocols.
Technique googleprojectzero.blogspot.com
-
Mastering API Rate Limiting Bypasses: 10 Real-World Case Studies Every Pentester Should KnowPresents ten case studies of API rate limit bypasses, useful for testing login and OTP throttling.
Technique medium.com
-
Advanced Vulnerabilities Part 1: Logic Bugs, Economic Attacks & MEVExplores smart contract logic bugs, economic attacks and MEV, giving auditors angles for finding profitable flaws.
Technique medium.com
-
Exploiting business logic error vulnerabilitiesShows how logic errors enable access control bypasses, injection, price manipulation and cryptographic weaknesses in complex apps.
Explainer intigriti.com
-
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
Highest paid
View allThe biggest public bounties for Business logic.
-
Insufficient policy enforcement in Cryptohome (CVE-2021-21117)Critical Google Chrome Advisory
$30,000 -
Inappropriate implementation in Storage (CVE-2022-0291)High Google Chrome Advisory
$20,000 -
Inappropriate implementation in Fenced Frames (CVE-2022-0292)High Google Chrome Advisory
$17,000 -
Inappropriate implementation in Payments (CVE-2023-5480)High Google Chrome Advisory
$16,000 -
Insufficient data validation in V8 (CVE-2021-21118)High Google Chrome Advisory
$16,000 -
What is a ENS Domain?ENS Write-up
$15,000 -
Insufficient policy enforcement in extensions (CVE-2020-15961)High Google Chrome Advisory
$15,000 -
Insufficient data validation in URL formatting (CVE-2020-6460)High Google Chrome Advisory
$15,000
Newest reports
All 10,284Most recently disclosed.
-
-
-
(Pwn2Own) Oracle Autonomous AI Database APEX Integrity Check Interpretation Conflict VulnerabilityMedium Zero Day Initiative Advisory
-
-
Improper input validation in Variations (CVE-2026-134401)Critical Google Chrome Advisory
-
-
-
-
-
New Business logic reports by email
Follow Business logic and get each week's new disclosures in one short email.