When the holder fee percentage is set to zero, the contract stops updating shareholder balances in the FeeSplitter, so new shareholders can claim fees that were accumulated for previous shareholders. An attacker can buy shares after the fee is zeroed and then claim the victim's unclaimed fees, draining the FeeSplitter.
The FeeSplitter contract fails to update a user's fee accumulator when tokens are transferred, so a new account receiving tokens has a zero offset and can claim fees as if it had held the tokens from the start. An attacker could repeatedly transfer the same tokens to fresh accounts and claim fees each time, draining the contract.
A whitelisted account's array of owned token subjects can be inflated by anyone transferring tokens of many different subjects to it, causing a gas error when the account later tries to buy during a presale. This forces the whitelisted user to miss the presale and buy only in the open sale with a different account.
The creator of a CurveSubject can set a referral fee receiver contract that rejects incoming payments unless the sender's token balance has increased, so any sell transaction reverts. The creator can then buy tokens cheaply, enable this mode, and later sell their own tokens at a higher price while other users can only buy.
The setCurves function in FeeSplitter.sol had no access control, so any user could point the contract at a fake Curves contract. An attacker could then set arbitrary token balances and supplies to inflate their claimable fees and take funds owed to legitimate token holders.
The onlyOwner and onlyManager modifiers in a Solidity contract only evaluate a condition without enforcing it, so any caller can execute functions meant to be restricted to the owner or managers. An attacker could perform privileged actions such as withdrawing funds or changing critical settings.
When a token is sold, the protocol fee and any referral fee are deducted from the seller's proceeds but never sent to their intended destinations, so they remain stuck in the contract. An attacker cannot steal these funds, but the protocol and referrers permanently lose the fees they are owed.
A user could set a token symbol matching the next default-generated symbol, causing the default naming logic to revert when another user's token tries to receive its automatic name. This blocks the default naming functionality indefinitely, though manual naming still works.
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.
The FeeSplitter contract accumulates rewards per token using integer division, which leaves a remainder that no user can ever claim. As a result, a growing amount of ETH becomes permanently stuck in the contract with each buy or sell.
The fee splitter's total supply calculation returns zero when every token holder has withdrawn their tokens to the ERC20 contract, so the fee distribution call reverts. This means a remaining holder cannot sell their tokens, effectively locking them out of the sale path.
The price calculation in the Curves contract reverts when a curve subject tries to buy more than one token during initialisation, because of the order of terms in the sum2 expression. This forces the subject to buy only a single token, letting automated sniping bots buy up the rest at a low price before the subject can acquire more.
The buyCurvesToken function only checks that the sent ETH is at least the price plus fees, but never refunds any excess. An attacker could deliberately overpay and the extra ETH would be trapped in the contract, causing a loss to the user.
The onBalanceChange function resets a user's fee offset without first crediting the fees they have already earned, so unclaimed rewards are wiped out. An attacker could buy the same token twice and lose the reward from the first purchase.
CU
Curves
Medium
Instant results are busy. Press Enter to search every report.
No direct matches. Search every report above, or try a bug class like IDOR or SSRF.