Reading list
Learn Business logic from real reports
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.
12 reports, easiest first.
-
createPromotion() Lack of input validation for _epochDuration can potentially freeze promotion creator’s funds
The createPromotion function allowed an epoch duration of zero, which caused reward claims to revert due to a division by zero and prevented the creator from cancelling the promotion because it was considered ended. As a result, the creator's deposited tokens were permanently frozen in the contract.
A smart contract function let someone start a promotion with a zero-length epoch. When users tried to claim rewards, the calculation divided by zero and failed, and the creator could not cancel because the promotion was already marked as ended. The creator's money got stuck in the contract.
The lesson. 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.
-
VouchFaucet can be immediately drained by anyone
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.
A faucet is a contract that gives out free tokens, usually with a limit per user. Here, the limit check was broken because the contract never recorded how much each user had already claimed, so anyone could take everything.
-
LendingTerm.sol _partialRepay() A user cannot partial repay a loan with 0 interest
The partial repayment function in a lending contract rejects any repayment where the interest portion is zero, even though loans with zero interest are valid. This prevents users from partially repaying zero-interest loans, while full repayment works fine.
A lending contract lets people borrow tokens and repay them in parts. The code that handles partial repayment checks that both the principal and the interest parts are non-zero, but for a loan with no interest the interest part is always zero, so the check always fails. This means users with such loans cannot make partial repayments.
The lesson. The require statement in _partialRepay() incorrectly demands that interestRepaid be non-zero, which is impossible for loans configured with zero interest.
-
Users can exploit the batch minting feature to avoid paying minting fees for tokens
The batch minting function calculates the minting fee based on the amount per receiver rather than the total number of tokens minted, allowing a user to mint many tokens while paying only a single token's fee. An attacker could exploit this to avoid paying the full minting fees, causing a loss of fees for the creator and fee recipients.
When you mint tokens, you pay a fee for each token. The batch minting function mistakenly charges a fee for only one token even if you mint many, because it uses the amount per receiver instead of the total. This means someone can get many tokens while paying almost nothing, and the people who should receive the fees lose out.
The lesson. The mintBatch function passes the per-receiver amount to the fee collector instead of the total amount (amount multiplied by the number of receivers).
-
VetoProposal : User can veto multiple times so every proposal can be vetoed by any user that has a small amount of votes
The VetoProposal contract did not track whether an address had already voted to veto a proposal, so a single voter could call voteToVeto repeatedly and accumulate enough veto votes to defeat any proposal. An attacker with a small share of voting power could therefore veto every proposal, potentially preventing the party from acting.
A veto lets members block a proposal from being executed. The contract counted each veto vote but never checked whether the same person had already voted, so one member could vote many times and reach the threshold alone. This meant a member with only a small share of the votes could block every proposal.
The lesson. The voteToVeto function did not record or check whether the caller had already voted on that proposal, allowing repeated votes from the same address.
-
Missing per user scoping in the email verification rate limit lets any signed in account lock another user out of adding their email to notifications
The email verification rate limit was keyed only on the email address, not the requesting account, so any signed-in user could exhaust another user's hourly allowance by requesting verification emails for that address. The real owner was then refused with a 429 error and could not add their own email to notifications until the window reset.
A rate limit is a cap on how many times an action can happen in a period, used to stop abuse. Here the cap was tracked per email address rather than per account, so one person could use up the cap for someone else's address. That meant the real owner was blocked from adding their own email for up to an hour.
The lesson. The rate-limit key was built from the normalised email address alone, with no account identifier, so all users shared one counter per address.
-
$5,800 for a Negative Number: Manipulating Checkout Totals Throug
The cart and checkout APIs accepted negative quantity values without validating they were positive integers, so a line-item total could become negative. By adding a cheap item at a large negative quantity alongside an expensive item, the cart total went negative, checkout skipped payment, and the platform issued a real order plus store credit.
An online shop lets you choose how many of an item to buy. The server trusted whatever number it was sent, including negative numbers, so buying '-35' of a cheap item subtracted money from the cart. The shop then treated the negative total as 'nothing to pay' and still shipped the expensive item and gave store credit.
The lesson. 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.
-
Bypassing file size limits to the NPM package repository
The NPM package creation service validated file size using a user-supplied 'length' field instead of the actual data size, allowing uploads of any size. An attacker could bypass configured file size limits to upload large files, potentially exhausting disk space and causing denial of service.
When you upload a file, the server should check the real size of the file to enforce limits. Here, the server trusted a number that the user provided in the request, so someone could lie about the size and upload huge files. This could fill up the server's disk and make the service unavailable.
The lesson. The application used a client-provided 'length' value to check file size limits instead of measuring the actual size of the uploaded data.
-
I paid 0 euros for a 666 euro box of candy: a coupon stacking bug in Intigriti’s October challenge
A shop's coupon endpoint only rejected a code when it matched the most recently applied code, so alternating two different codes let each be applied repeatedly. An attacker could stack discounts past 100% and check out a 666 euro item for nothing.
A shop lets you use discount codes. The server was meant to stop you using the same code twice, but it only compared each new code with the one you sent just before. So if you sent code A, then code B, then code A again, the second A looked new and was accepted. Repeating that pattern doubled both discounts until the price hit zero.
The lesson. Likely the coupon endpoint compared the incoming code only with the most recently applied code rather than checking whether it already existed anywhere in the cart.
-
How I Found My First CVE: CVE-2026–79630: Unauthenticated Price Manipulation in WPFunnels
The WPFunnels order-bump AJAX endpoint took the product ID from the user's request and applied the server-side configured discount to it without checking that the product matched the one the order bump was set up for. An unauthenticated attacker could therefore apply a large discount meant for a cheap item to an expensive product and complete a real WooCommerce order at the reduced price.
An online shop can offer a small add-on item at a discount when you check out, called an order bump. The plugin stored the discount safely on the server but trusted the shopper's browser to say which product the discount applied to. So someone could name a much more expensive product and still get the cheap item's discount, paying far less than the real price.
The lesson. The plugin read the discount from trusted server-side configuration but took the product identifier from the user request and never verified the two belonged together.
-
Withdrawing with amount = 0 will forcefully set name and symbol to default and disable some functions for token subject
The withdraw function in the Curves contract does not check for a zero amount, so anyone can call it with amount 0 to deploy the external ERC20 token with default name and symbol before the token subject does. This permanently prevents the token subject from setting a custom name and symbol or using functions like mint and buyCurvesTokenWithName.
In this smart contract, a token creator (the 'token subject') is supposed to be able to choose a name and symbol for their token later. But the function that creates the token on the blockchain does not check if the withdrawal amount is zero. So an attacker can call it with zero, which creates the token with default names and locks out the creator from ever changing them or using certain functions.
The lesson. The withdraw function lacks a check that the amount is greater than zero, allowing token deployment with default values when amount is zero.
-
Enabling transfer restrictions permanently blocks minting and burning
The whitelist restriction contract blocks transfers involving the zero address, which is used by ERC20 for minting and burning. When transfer restrictions are enabled, minting and burning become impossible, permanently disabling those functions.
ERC20 tokens use a special zero address to represent creating new tokens (minting) and destroying tokens (burning). The whitelist contract checks that both sender and receiver are whitelisted, but the zero address can never be whitelisted, so these operations always fail when restrictions are on. This means the token can no longer be minted or burned until restrictions are turned off.
The lesson. The isTransferAllowed function does not exempt the zero address from whitelist checks, so minting (from zero address) and burning (to zero address) are rejected when restrictions are active.