项目简介
The target of this audit is the private code repository of oripa-contract of Oripa. 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 did not find any critical issues within the audited codebase. However, we have identified some non-critical issues that should be addressed. Additionally, we have put forth recommendations and notes that should be taken into consideration. It is important to note that the scope of our audit was strictly limited to the specific code versions mentioned in the report. Any updates made subsequent to our review would require a re-evaluation.
关键发现
我们在该智能合约中共发现 6 个潜在问题,另有 3 条建议与 5 条说明,明细如下:
| ID | Severity | Description | Status |
|---|---|---|---|
| 1 | Medium | Misattribution of CCTP deposits in the function relay() |
Fixed |
| 2 | Low | Potential DoS due to the improper rounding direction in the function _syncDebt() |
Fixed |
| 3 | Low | Inconsistent remainder accounting after rate changes | Fixed |
| 4 | Low | Potential unfair reward distribution | Confirmed |
| 5 | Low | Potential DoS due to malicious session keys | Fixed |
| 6 | Low | Lack of USDC recovery mechanisms for messages with invalid hook data | Fixed |
| 7 | - | Avoid the reuse of retired session keys | Confirmed |
| 8 | - | Add zero-address checks in the contract CctpDepositReceiver |
Fixed |
| 9 | - | Remove the redundant parameter of the event Minted |
Confirmed |
| 10 | - | Ensure correct off-chain calculations | - |
| 11 | - | Avoid the use of 18-decimal reward tokens | - |
| 12 | - | Ensure correct runtime configurations | - |
| 13 | - | Timely updates of the variable minHouseReserve |
- |
| 14 | - | Potential centralization risks | - |
更多细节见审计报告。