CertiK reviewed TTcoin Network (TTcoin) on 5 Nov 2024: 8 findings, 0 critical; 2 acknowledged, 6 open.
Report hosted on skynet.certik.com.
Trustblock does not review code.
Statuses are the security firm’s own, from its report.
| Severity | Open | Acknowledged | Fixed |
|---|---|---|---|
| Critical | 0 | 0 | 0 |
| High | 0 | 1 | 0 |
| Medium | 0 | 1 | 0 |
| Low | 6 | 0 | 0 |
The cited address input is missing a check that it is not `address(0)`.
The logical vulnerability lies in the `freezeTo` function, which allows any user to freeze tokens to any address without a requirement that the `_amount` is greater than zero. If the victim has a pending release amount with a release date of `block.timestamp + p` and no earlier release amounts, the attacker can insert `p-1` nodes into the release chain, causing the victim to incur significantly higher gas costs when releasing. Specifically, the attacker can insert nodes in reverse order from `block.timestamp + p - 1`, `block.timestamp + p - 2`, ... to `block.timestamp`, achieving O(1) time complexity. Additionally, by setting the amount in `freezeTo()` to 0, the attacker can insert nodes at a low cost without holding the token.
The change of `_owner` by function `transferOwnership()` overrides the previously set `_owner` with the new one without guaranteeing the new `_owner` is able to actuate transactions on-chain.
The smart contract contains one or more values that are not used, which can lead to unnecessary complexity and reduced maintainability. ```solidity=536 parent = next; ``` - The variable `parent` is never used after this assignment.
The linked functions are equivalent to the compiler-generated getter functions for the respective variables.
In `mintAndFreeze`, the `Transfer` event should correspond to the minting style, namely `Transfer(address(0), _to, _amount)`. However, the event here is incorrect: `MainToken.sol` ```solidity=649 emit Mint(_to, _amount); emit Freezed(_to, _until, _amount); emit Transfer(msg.sender, _to, _amount); ```
| Address | Chain | Source code |
|---|---|---|
| 0x6590…11620x659049786cb66e4486b8c0e0ccc90a5929a21162 | Chain: BNB Chain | Source code: Verified source |
1,045 projects reviewed · 1,376 reports · latest May 2025
See CertiK’s auditsSomething wrong on this page? A missing report, a wrong date, a finding that was fixed since. Tell us and we check it against its source.
Tell us