Summary
100% of all REPORTED Findings have been addressed
- 0Acknowledged
- 1Risk Accepted
- 5Solved
- 6All Findings
- Critical0
- High1
- 1Solved
- Medium0
- Low4
- 1Risk A.
- 3Solved
- Informational1
- 1Solved
Introduction#
Mutuum Finance engaged Halborn to perform a security assessment of their EVM smart contracts from November 18th, 2025, to November 26th, 2025. The assessment scope was limited to the smart contracts provided to Halborn. Commit hashes and additional details are available in the Scope section of this report.
The Mutuum Finance codebase in scope consists of solidity smart contracts that implement an aave inspired staking mechanism with additional features like dynamic exchange rate, and revised slashing mechanism.
Assessment Summary#
Halborn was allocated 7 days for this engagement and assigned 1 full-time security engineer to conduct a comprehensive review of the smart contracts within scope. The engineer is an expert in blockchain and smart contract security, with advanced skills in penetration testing and smart contract exploitation, as well as extensive knowledge of multiple blockchain protocols.
The objectives of this assessment were to:
Identify potential security vulnerabilities within the smart contracts.
Verify that the smart contract functionality operates as intended.
In summary, Halborn identified some areas for improvement to reduce the likelihood and impact of potential risks, which were mostly addressed by the Mutuum Finance team. The primary recommendations were as follows:
Consider modifying the stake function to make sure that zero shares should not be mintedConsider deriving totalStaked on-chain directly from the referenced staking token’s totalSupply wherever it is feasible.Consider validating cooldownSeconds and unstakeWindow at pool creation time to ensure their sum stays within a safe bound.Consider introducing bounds checks on the allowable range of expo + targetDecimals before computing the power of ten, reverting with a clear error if the combination would exceed a predefined maximum.
Test Approach and Methodology#
Halborn performed a combination of manual code review and automated security testing to balance efficiency, timeliness, practicality, and accuracy in regard to the scope of this assessment. While manual testing is essential to uncover flaws in logic, process, and implementation, automated testing techniques enhance coverage of smart contracts and can quickly identify issues that do not follow security best practices.
The following phases and associated tools were used throughout the assessment:
Research into the architecture, purpose, and use of the platform.
Manual code review and walkthrough of the smart contracts to identify potential logic issues.
Manual testing of all core functions, including deposit, withdraw, repay, and borrow, to validate expected behaviour and identify edge-case vulnerabilities.
Local testing to simulate contract interactions and validate functional and security assumptions using custom scripts (
Foundry).Local deployment and testing with
Foundry.
Risk Methodology#
4.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 |
4.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 |
4.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 |
|---|---|---|---|---|
| First Depositor Share Price Manipulation Allows Theft of Future Deposits | High | 7.5 | Solved12/03/2025 | |
| Reward Distribution Depends on Externally Supplied Value | Low | 3.1 | Risk Accepted12/03/2025 | |
| Cooldown Underflow Risk with Extreme Parameters | Low | 2.5 | Solved12/03/2025 | |
| Potential Overflow in Pyth Price Scaling for Extreme Exponents | Low | 2.5 | Solved12/03/2025 | |
| No Explicit RewardToken Liquidity Check in Treasury | Low | 2.5 | Solved12/03/2025 | |
| Ambiguity Around Units for Slashing Amounts | Informational | 0.0 | Solved12/03/2025 |
Findings & Tech Details#
Description
Proof of Concept
Recommendation
Remediation Comment
Description
Recommendation
Remediation Comment
Description
Recommendation
Remediation Comment
Description
Recommendation
Remediation Comment
Description
Recommendation
Remediation Comment
Description
Recommendation
Remediation Comment
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.
