Hunt prep
Before you test Telcoin Platform Audit
What 18 disclosed reports say about Telcoin Platform Audit: what was found and paid, what was fixed, and where it may be worth looking next.
- with a public bounty
- 0
- median public bounty
- –
- highest public bounty
- –
Gaps worth testing
Not written yet for this program. The numbers below are up to date.
What was found and what it paid
Public bounties only; many reports disclose without the amount.
| Class | Reports | Paid | Median | Highest | In all |
|---|---|---|---|---|---|
| Business logic lesson | 11 | 0 | – | – | $0 |
| DoS lesson | 5 | 0 | – | – | $0 |
| Race condition lesson | 1 | 0 | – | – | $0 |
| Smart contracts lesson | 1 | 0 | – | – | $0 |
What was fixed
All reportsThe newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.
-
`StakingRewardsManager::topUp(...)` Misallocates Funds to `StakingRewards` Contracts
The function was fixed to use the provided indices array when selecting the staking contract.
Disclosed
-
CouncilMember:burn renders the contract inoperable after the first execution
The issue was fixed by avoiding popping the balances array to keep alignment with uniquely minted token IDs.
Disclosed
-
Sablier stream update in `CouncilMember.sol` can cause loss of funds if the streamed balance is not withdrawn
The protocol team fixed this issue by adding a check that the stream is depleted before updating and by implementing the Sablier cancellation hook to retrieve funds.
Disclosed
-
The `CouncilMember` contract DoS due to the `_retrieve` function revert
The issue was fixed by checking the withdrawable amount before executing the withdrawal or by wrapping the call in a try/catch block, as indicated by the linked pull request.
Disclosed
-
Wrong parameter when retrieving causes a complete DoS of the protocol
The fix was to store the actual Sablier stream address and pass it as the lockup parameter when calling withdrawMax.
Disclosed
-
Withdraw delay can be bypassed
The withdrawal request timestamp should be reset whenever a user stakes tokens.
Disclosed
-
`slash` calls can be blocked, allowing malicious users to bypass the slashing mechanism
The recommendation is to implement a version of _claimAndExit without the checkpointProtection modifier for use inside the slash function.
Disclosed
-
Rogue plugin can become unremovable and halt all staking and claiming
The removePlugin function should be modified to allow a forced removal that bypasses the deactivated check.
Disclosed
-
FeeBuyback.submit() method may fail if all allowance is not used by referral contract
Reset the allowance to zero before setting a new non-zero allowance.
Disclosed
-
StakingModule's stakedByAt() can report erroneous values
The recommendation was to add the checkpointProtection modifier to _stake(), but the discussion indicates that the modifier was removed and the limitation should be documented instead.
Disclosed
-
Account that is affiliated with a plugin can sometimes evade slashing
The requiresNotification() call should be wrapped in try-catch so a reverting plugin cannot block slashing.
Disclosed
-
Front Run of addBlackList() function
The protocol should use the same mechanism as in StakingModule.sol to prevent blacklisted users from withdrawing their funds, making front-running ineffective.
Disclosed
-
`slash()` can be frontrunned to avoid the penalty imposed on them
The report recommends exploring alternatives to the slashing mechanism because it can be easily bypassed; a fix was later confirmed.
Disclosed
-
Slashing fails if claims revert
A separate slash method that skips claiming yields of the slashed account was implemented and confirmed fixed.
Disclosed
-
Native funds can be lost by submit() as msg.value isn't synchronized with amount
The contract should require that amount equals msg.value when the token is MATIC.
Disclosed