We express our gratitude to the NodeTerminal team for the collaborative engagement that enabled the execution of this Smart Contract Security Assessment.
Node Terminal created a sale contract, responsible for handling nodes sale using Node Terminal platform. It collects payments in ERC-20 token (in particular USDT) and increases number of nodes assigned to the account. This data will be used for future NFT airdrop.
Document
Review Scope
The system users should acknowledge all the risks summed up in the risks section of the report
Functional requirements are partially provided.
Technical description is provided.
The development environment is configured.
Code coverage of the project is 98.81% (branch coverage)
Deployment and basic user interactions are covered with tests.
Negative cases coverage are present.
Interactions by several users are not tested thoroughly.
Node Terminal project includes a single Lumia Node sale contract:
NodeSale.sol - This is smart contract that is responsible for handling nodes sale using Node Terminal platform. It collects payments in ERC-20 token (in particular USDT) and increases number of nodes assigned to the account. This data will be used for future NFT airdrop.
MASTER_ROLE \- This role has the authority to activate or deactivate the sale using the setIsSaleActive
function. Only addresses assigned to this role can modify the sale status.
ADMIN_ROLE \- Holders of the ADMIN_ROLE
are responsible for tasks such as adjusting the maximum supply of nodes, setting the price per node, and establishing wallet purchase limits. Additionally, they can add nodes to user accounts and set wallet-specific caps.
DEFAULT_ADMIN_ROLE \- Holders of this role can manage nodes on individual accounts by adjusting the number of nodes assigned to each wallet.
Single Points of Failure and Control: The project is fully or partially centralized, introducing single points of failure and control. This centralization can lead to vulnerabilities in decision-making and operational processes, making the system more susceptible to targeted attacks or manipulation. The setNumberOfNodes
function allows an account with the DEFAULT_ADMIN_ROLE
to arbitrarily set the number of nodes for any user. This includes the ability to reduce the number of nodes, effectively removing nodes from a user's account.
Code ― | Title | Status | Severity | |
---|---|---|---|---|
F-2024-6048 | Missing Commisions Upperbound Leads to Calculation issues | Fixed | Medium | |
F-2024-6067 | Wallets Receiving Funds are Immutable | Fixed | Low | |
F-2024-6062 | The getAccountsAndNumberOfNodes Function is Missing a Pagination Feature | Fixed | Low | |
F-2024-6060 | The setNumberOfNodes Missing Cap Per Wallet Validation | Fixed | Low | |
F-2024-6052 | Use of transfer() to Send Native Assets may Revert | Fixed | Low | |
F-2024-6046 | Missing Zero Value Check | Unfixed | Low | |
F-2024-6122 | Lack of Monitoring on Key Functions | Accepted | Observation | |
F-2024-6066 | sendPayments Function not Refunding Excessive Native Payments | Fixed | Observation | |
F-2024-6061 | Possible Max Node Assignment to One Account | Fixed | Observation |
Severities
When auditing smart contracts, Hacken is using a risk-based approach that considers Likelihood, Impact, Exploitability and Complexity metrics to evaluate findings and score severities.
Reference on how risk scoring is done is available through the repository in our Github organization:
Severity
Description
Severity
Description
Severity
Description
Severity
Description
The "Potential Risks" section identifies issues that are not direct security vulnerabilities but could still affect the project’s performance, reliability, or user trust. These risks arise from design choices, architectural decisions, or operational practices that, while not immediately exploitable, may lead to problems under certain conditions. Additionally, potential risks can impact the quality of the audit itself, as they may involve external factors or components beyond the scope of the audit, leading to incomplete assessments or oversight of key areas. This section aims to provide a broader perspective on factors that could affect the project's long-term security, functionality, and the comprehensiveness of the audit findings.
The scope of the project includes the following smart contracts from the provided repository:
Scope Details
contracts/NodesSale.sol