The topUp function in StakingRewardsManager uses the loop index instead of the provided indices to select which StakingRewards contracts to fund, so rewards are sent to the wrong contracts. An attacker or unintended user could cause rewards to be misallocated, with some stakers receiving more and others less than intended.
The burn function in the CouncilMember contract removes an element from the balances array, causing a misalignment between token IDs and array indices. This makes the contract inoperable: holders with token IDs greater than the array length cannot claim, subsequent burns revert, and new mints fail due to token ID collision.
The CouncilMember contract updates Sablier stream references without first withdrawing any tokens already streamed to it, so those tokens remain stuck in the old stream. If the stream is later cancelled or the contract is modified, the council members may lose the unclaimed streamed balance.
The CouncilMember contract calls an internal _retrieve function that withdraws from a Sablier stream, but Sablier reverts when the withdrawable amount is zero. Because _retrieve is called twice in removeFromOffice and in mint/burn via the overridden _update, these functions always revert after the first withdrawal, causing a temporary denial of service.
The CouncilMember contract passed the wrong address as the lockup parameter when calling Sablier's withdrawMax, causing all withdrawals from the stream to revert. This resulted in a denial of service for all protocol functions that call _retrieve().
The staking contract allowed a user to request a withdrawal before staking any tokens, so the withdrawal delay could be bypassed. An attacker could stake and immediately unstake without waiting for the delay.
A malicious user can block slashing by frontrunning the slash call with a stake transaction in the same block, causing the slash to revert due to a checkpoint protection modifier. This allows the user to request withdrawal, keep blocking slashes until the withdrawal delay passes, and then withdraw funds that should have been slashed.
A malicious plugin could prevent its own removal by always returning false from deactivated(), and could also cause arithmetic overflow or revert calls, halting all staking and claiming operations. This would permanently freeze all staked funds.
The FeeBuyback contract uses safeApprove to grant the referral contract an allowance of Telcoin tokens. If the referral contract does not spend the full allowance, the next call to submit() reverts because safeApprove refuses to change a non-zero allowance to another non-zero value.
The stakedByAt() function returns incorrect historical staking balances when multiple stake() calls occur in the same block, because it reads only the first checkpoint of that block. This can cause downstream systems like vaults to make decisions based on stale data, potentially leading to user losses.
A malicious staking plugin could revert its notification check to make the slashing call fail, letting an affiliated account avoid being slashed. By timing a pending withdrawal window, the account could withdraw its whole stake before the plugin was removed.
A blacklisted address can front-run the transaction that adds it to the blacklist by paying a higher gas fee, allowing it to transfer funds before the blacklist takes effect. This prevents the protocol from later removing those funds via the removeBlackFunds function.
A user facing a slashing penalty can front-run the slash or pause transaction by calling fullClaimAndExit to withdraw all funds before the penalty applies. This allows the slashing mechanism to be bypassed.
The slashing function calls a claim function that claims yield from all plugins; if any claim reverts, the entire slashing transaction reverts. An attacker could exploit this by causing a claim to fail, preventing slashing and allowing the slashed user to claim yield and exit.
The FeeBuyback contract's submit() function does not verify that the amount parameter matches the actual native funds sent (msg.value). An attacker could exploit this mismatch to cause the owner to overpay or the recipient to underpay fees, resulting in fund loss.
The checkpoint function returns the first checkpoint's value when two checkpoints exist in the same block, allowing an attacker to flashloan tokens, stake and exit in one block to create a fake large stake. This fake stake could be used to gain a high percentage of rewards and avoid slashing.
The contract uses standard ERC20 transfer and transferFrom methods, which can revert for tokens that do not follow the standard interface or that require zero allowance before approving a new amount. This could cause the contract to malfunction for certain tokens.
The FeeBuyback contract lacks a method to rescue native tokens, so any native tokens sent to it as part of a swap or otherwise become permanently stuck. An attacker cannot directly exploit this, but users may lose funds.
TP
Telcoin Platform Audit
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.