background
logo

Security Audit Report for Habittrade's Stove Protocol Contracts

项目简介

The target of this audit is the private code repository of Stove Protocol Contracts of Habittrade. The protocol establishes an on-chain stock trading market that enables the issuance and trading of tokenized stocks. Stock tokens are created via a factory contract, while certain stock-related operations, such as dividends, stock splits, and reverse splits are handled through trusted off-chain logic and executed on-chain by privileged operators. User trading activity, including buying and selling stock tokens, is facilitated through the RFQSettlement contract, which manages order execution and settlement. By combining on-chain enforcement with off-chain computation, the protocol aims to provide a flexible and efficient framework for tokenized equity management and trading.

Please refer to the report for the detailed audit scope.

Our audit methodology employs automated vulnerability scans, manual verification, and business logic analysis to uncover potential security issues coupled with gas and code quality optimization recommendations.

In summary, we have found that the codebase contains 1 high-risk issue that require prompt attention. In addition, we have identified other non-critical issues as well as recommendations and notes that should be considered. The Stove Protocol Contracts team has addressed these issues promptly. It is important to note that our audit covers only the final reported versions of the codebase. Any subsequent updates would require a re-evaluation.

关键发现

我们在该智能合约中共发现 10 个潜在问题,另有 2 条建议与 2 条说明,明细如下:

高风险:1
中风险:6
低风险:3
建议:2
说明:2
ID Severity Description Status
1 High Lack of check in functions permitTransferFrom() and permitTransferFromBatch() Fixed
2 Medium Incorrect lock caller context in batch order filling Fixed
3 Medium Lack of management routing in StockTokenManager Fixed
4 Medium Incomplete delisting coverage in stock token management Fixed
5 Medium Potential loss of funds on expired order relocking Fixed
6 Medium Incorrect stockToken update logic Confirmed
7 Medium Lack of principal address validation in function lockOrder() Fixed
8 Low Inconsistent incentive allocation in order filling Confirmed
9 Low Inconsistent exchange validation in function updateStockInfo() Fixed
10 Low Inconsistent lock window configuration Fixed
11 - Improper logic in function computeAddress() Fixed
12 - Inconsistent event emission in invalidateNonce() and invalidateNonces() Fixed
13 - Potential centralization risks -
14 - Trusted off-chain logic -

更多细节见审计报告

迈出走向安全的第一步

立即联系我们,获取 BlockSec 的专业代码审计服务,在协议上线之前把安全性提上来!

Security Audit Report for Habittrade's Stove Protocol Contracts - BlockSec