Summary
100% of all REPORTED Findings have been addressed
- 0Risk Accepted
- 6Acknowledged
- 25Solved
- 31All Findings
- Critical0
- High0
- Medium2
- 2Solved
- Low4
- 4Solved
- Informational25
- 6Ack.
- 19Solved
Summary#
Introduction#
Caldera engaged Halborn to conduct a security assessment on their MetalayerRouter smart contracts beginning on April 7th, 2025 and ending on April 11th, 2025. The security assessment was scoped to the smart contracts provided to Halborn. Commit hashes and further details can be found in the Scope section of this report.
The MetalayerRouter is a messaging layer built on top of Hyperlane. It is designed for EVM-compatible chains and offers enhanced functionality such as:
1-to-1 messaging between chains
Predefined finality configurations (e.g., rollup-based, RPC soft confirmations).
n-to-1 cross-chain reads via offchain aggregation and CCIP-compatible delivery.
Package encoding for richer message semantics.
Fallback compatibility with Hyperlane interfaces.
Preset ISMs (Interchain Security Modules) and fee hooks controlled at the protocol level.
Assessment Summary#
Halborn was provided 5 days for the engagement and assigned one full-time security engineer to review the security of the smart contract in scope. The engineer is blockchain and smart contract security expert with advanced penetration testing and smart contract hacking skills, and deep knowledge of multiple blockchain protocols.
The purpose of the assessment is to:
Identify potential security issues within the smart contract.
Ensure that smart contract functionality operates as intended.
In summary, Halborn identified some improvements to reduce the likelihood and impact of risks, which were mostly addressed by the Caldera team. The main one was the following:
Do not allow overriding responses in the MetalayerIsm to avoid unexpected behaviour.
Test Approach and Methodology#
Halborn performed a combination of manual review of the code and automated security testing to balance efficiency, timeliness, practicality, and accuracy in regard to the scope of this assessment. While manual testing is recommended to uncover flaws in logic, process, and implementation; automated testing techniques help enhance coverage of smart contracts and can quickly identify items that do not follow security best practices.
The following phases and associated tools were used throughout the term of the assessment:
Research into architecture, purpose and use of the platform.
Smart contract manual code review and walkthrough to identify any logic issue.
Thorough assessment of safety and usage of critical Solidity variables and functions in scope that could led to arithmetic related vulnerabilities.
Local testing with custom scripts (
Foundry).Fork testing against main networks (
Foundry).Static analysis of security for scoped contract, and imported functions (
Slither).
Risk Methodology#
5.1 EXPLOITABILITY
Attack Origin (AO):
Attack Cost (AC):
Attack Complexity (AX):
Metrics:
| EXPLOITABILITY METRIC () | METRIC VALUE | NUMERICAL VALUE |
|---|---|---|
| Attack Origin (AO) | Arbitrary (AO:A) | 1 |
| Specific (AO:S) | 0.2 | |
| Attack Cost (AC) | Low (AC:L) | 1 |
| Medium (AC:M) | 0.67 | |
| High (AC:H) | 0.33 | |
| Attack Complexity (AX) | Low (AX:L) | 1 |
| Medium (AX:M) | 0.67 | |
| High (AX:H) | 0.33 |
5.2 IMPACT
Confidentiality (C):
Integrity (I):
Availability (A):
Deposit (D):
Yield (Y):
Metrics:
| IMPACT METRIC () | METRIC VALUE | NUMERICAL VALUE |
|---|---|---|
| Confidentiality (C) | None (C:N) | 0 |
| Low (C:L) | 0.25 | |
| Medium (C:M) | 0.5 | |
| High (C:H) | 0.75 | |
| Critical (C:C) | 1 | |
| Integrity (I) | None (I:N) | 0 |
| Low (I:L) | 0.25 | |
| Medium (I:M) | 0.5 | |
| High (I:H) | 0.75 | |
| Critical (I:C) | 1 | |
| Availability (A) | None (A:N) | 0 |
| Low (A:L) | 0.25 | |
| Medium (A:M) | 0.5 | |
| High (A:H) | 0.75 | |
| Critical (A:C) | 1 | |
| Deposit (D) | None (D:N) | 0 |
| Low (D:L) | 0.25 | |
| Medium (D:M) | 0.5 | |
| High (D:H) | 0.75 | |
| Critical (D:C) | 1 | |
| Yield (Y) | None (Y:N) | 0 |
| Low (Y:L) | 0.25 | |
| Medium (Y:M) | 0.5 | |
| High (Y:H) | 0.75 | |
| Critical (Y:C) | 1 |
5.3 SEVERITY COEFFICIENT
Reversibility (R):
Scope (S):
Metrics:
| SEVERITY COEFFICIENT () | COEFFICIENT VALUE | NUMERICAL VALUE |
|---|---|---|
| Reversibility () | None (R:N) | 1 |
| Partial (R:P) | 0.5 | |
| Full (R:F) | 0.25 | |
| Scope () | Changed (S:C) | 1.25 |
| Unchanged (S:U) | 1 |
| Critical | High | Medium | Low | Informational |
| 9 - 10 | 7 - 8.9 | 4.5 - 6.9 | 2 - 4.4 | 0 - 1.9 |
Scope#
Assessment Summary & Findings Overview#
# | Title | Severity | Score | Status |
|---|---|---|---|---|
| Responses in MetalayerIsm Can Be Overridden | Medium | 5.0 | Solved04/25/2025 | |
| ISMs responsible for verifying a message are unintentionally skipped | Medium | 5.0 | Solved07/03/2025 | |
| Unprotected Privileged Roles | Low | 2.5 | Solved04/25/2025 | |
| Incorrect Version Parsing in the MetalayerMessage Library | Low | 2.5 | Solved04/25/2025 | |
| Quoting function not properly implemented, potentially causing failed messages | Low | 2.5 | Solved07/03/2025 | |
| Insufficient Validation of _metadata Structure in verify() | Low | 2.1 | Solved04/25/2025 | |
| MetalayerRouter Bytecode Size Potentially Too Big | Informational | 1.3 | Acknowledged04/29/2025 | |
| Missing Input Validation | Informational | 0.3 | Solved04/25/2025 | |
| Single-step Ownership Transfer Process | Informational | 0.3 | Solved04/25/2025 | |
| Owner Can Renounce Ownership | Informational | 0.3 | Solved04/25/2025 | |
| Unused Legacy OwnableUpgradeable Inheritance | Informational | 0.3 | Solved04/25/2025 | |
| Deprecated OpenZeppelin Functions in Use | Informational | 0.1 | Solved04/25/2025 | |
| Use of Unlicensed Smart Contract | Informational | 0.0 | Solved04/25/2025 | |
| Unlocked Pragma Compiler | Informational | 0.0 | Solved04/25/2025 | |
| Use of Magic Numbers | Informational | 0.0 | Acknowledged04/29/2025 | |
| Lack of Named Mappings | Informational | 0.0 | Solved04/25/2025 | |
| Use of Revert Strings Instead of Custom Errors | Informational | 0.0 | Acknowledged04/29/2025 | |
| Style Guide Optimizations | Informational | 0.0 | Solved04/25/2025 | |
| Lack of Event Emission | Informational | 0.0 | Solved04/25/2025 | |
| Missing Visibility Attribute | Informational | 0.0 | Solved04/25/2025 | |
| Unused Import | Informational | 0.0 | Solved04/25/2025 | |
| Use Calldata For Function Arguments Not Mutated | Informational | 0.0 | Solved04/25/2025 | |
| NatSpec Improvements | Informational | 0.0 | Solved04/25/2025 | |
| Empty revert() Statement | Informational | 0.0 | Solved04/25/2025 | |
| Local Variable Shadows Named Return | Informational | 0.0 | Solved04/25/2025 | |
| Commented Out Code | Informational | 0.0 | Solved04/25/2025 | |
| Typo in a Comment | Informational | 0.0 | Acknowledged04/25/2025 | |
| Inconsistent Casting | Informational | 0.0 | Solved04/25/2025 | |
| Cache Array Length Outside of Loop | Informational | 0.0 | Solved04/25/2025 | |
| Inconsistent Semantics of block.number Across L2 Networks | Informational | 0.0 | Acknowledged04/30/2025 | |
| Multisig Not Supported by MetalayerIsm | Informational | 0.0 | Acknowledged04/30/2025 |
Findings & Tech Details#
Description
Recommendation
Description
Recommendation
Description
Recommendation
Description
Recommendation
Description
Recommendation
Description
Recommendation
Description
Recommendation
Remediation Comment
Description
Recommendation
Description
Recommendation
Description
Recommendation
Description
Recommendation
Description
Recommendation
Description
Recommendation
Description
Recommendation
Description
Recommendation
Remediation Comment
Description
Recommendation
Description
Recommendation
Remediation Comment
Description
Recommendation
Description
Recommendation
Description
Recommendation
Description
Recommendation
Description
Recommendation
Description
Recommendation
Description
Recommendation
Description
Recommendation
Description
Recommendation
Description
Recommendation
Remediation Comment
Description
Recommendation
Description
Recommendation
Description
Recommendation
References
Remediation Comment
Description
Recommendation
Remediation Comment
9. Automated Testing#
Disclaimer#
Halborn strongly recommends conducting a follow-up assessment of the project either within six months or immediately following any material changes to the codebase, whichever comes first. This approach is crucial for maintaining the project’s integrity and addressing potential vulnerabilities introduced by code modifications.
