Prepared by:
HALBORN
Last Updated 05/27/2025
Date of Engagement: April 28th, 2025 - May 1st, 2025
100% of all REPORTED Findings have been addressed
All findings
7
Critical
0
High
0
Medium
0
Low
2
Informational
5
Aria Protocol
engaged Halborn
to conduct a security assessment on their smart contracts beginning on April 28th, 2025 and ending on May 1st, 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 Aria Protocol
codebase in scope mainly consists of smart contracts for creating and managing intellectual property (IP) vaults that enable the tokenization and fractionalization of IP assets, with support for fundraising and whitelist-based distribution mechanisms.
Halborn
was provided 4 days for the engagement and assigned 1 full-time security engineer to review the security of the smart contracts in scope. The engineer is a 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 contracts.
Ensure that smart contract functionality operates as intended.
In summary, Halborn
identified some improvements to reduce the likelihood and impact of risks, which were partially addressed by the Aria Protocol team
. The main ones are the following:
Add the _checkAndUpdateState() call at the beginning of both claimFractionalTokens() implementations.
Consider implementing proper validation of the USDC address.
Consider implementing a registry mechanism at the factory level to track and validate token identifiers.
All addressed findings have been consolidated and incorporated into version v1.0.5, available in the following commit: https://github.com/AriaProtocol/main-contracts/tree/83cbf9a4b2b67f54f524a7daae33e7a49efb2860.
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
).
Halborn
used automated testing techniques to enhance the coverage of certain areas of the smart contracts in scope. Among the tools used was Slither, a Solidity static analysis framework. After Halborn
verified the smart contracts in the repository and was able to compile them correctly into their abis and binary format, Slither was run against the contracts. This tool can statically verify mathematical relationships between Solidity variables to detect invalid or inconsistent usage of the contracts' APIs across the entire code-base.
The security team assessed all findings identified by the Slither software, however, findings with related to external dependencies are not included in the below results for the sake of report readability.
The findings obtained as a result of the Slither scan were reviewed, and some were not included in the report because they were determined as false positives.
EXPLOITABILITY METRIC () | METRIC VALUE | NUMERICAL VALUE |
---|---|---|
Attack Origin (AO) | Arbitrary (AO:A) Specific (AO:S) | 1 0.2 |
Attack Cost (AC) | Low (AC:L) Medium (AC:M) High (AC:H) | 1 0.67 0.33 |
Attack Complexity (AX) | Low (AX:L) Medium (AX:M) High (AX:H) | 1 0.67 0.33 |
IMPACT METRIC () | METRIC VALUE | NUMERICAL VALUE |
---|---|---|
Confidentiality (C) | None (I:N) Low (I:L) Medium (I:M) High (I:H) Critical (I:C) | 0 0.25 0.5 0.75 1 |
Integrity (I) | None (I:N) Low (I:L) Medium (I:M) High (I:H) Critical (I:C) | 0 0.25 0.5 0.75 1 |
Availability (A) | None (A:N) Low (A:L) Medium (A:M) High (A:H) Critical (A:C) | 0 0.25 0.5 0.75 1 |
Deposit (D) | None (D:N) Low (D:L) Medium (D:M) High (D:H) Critical (D:C) | 0 0.25 0.5 0.75 1 |
Yield (Y) | None (Y:N) Low (Y:L) Medium (Y:M) High (Y:H) Critical (Y:C) | 0 0.25 0.5 0.75 1 |
SEVERITY COEFFICIENT () | COEFFICIENT VALUE | NUMERICAL VALUE |
---|---|---|
Reversibility () | None (R:N) Partial (R:P) Full (R:F) | 1 0.5 0.25 |
Scope () | Changed (S:C) Unchanged (S:U) | 1.25 1 |
Severity | Score Value Range |
---|---|
Critical | 9 - 10 |
High | 7 - 8.9 |
Medium | 4.5 - 6.9 |
Low | 2 - 4.4 |
Informational | 0 - 1.9 |
Critical
0
High
0
Medium
0
Low
2
Informational
5
Security analysis | Risk level | Remediation Date |
---|---|---|
Missing state validation in claimFractionalTokens() function | Low | Solved - 05/12/2025 |
Missing USDC address validation in fundraise initialization | Low | Risk Accepted - 05/12/2025 |
Lack of uniqueness validation for token identifiers across vaults | Informational | Acknowledged - 05/12/2025 |
Contract size too big for deployment | Informational | Solved - 05/12/2025 |
Suboptimal modifier ordering | Informational | Acknowledged - 05/12/2025 |
Floating pragma | Informational | Solved - 05/12/2025 |
Unused import | Informational | Solved - 05/12/2025 |
//
The claimFractionalTokens()
function in AriaIPVault
does not call the _checkAndUpdateState()
function before processing claims. This function is responsible for checking if the vault's expiration time has passed and updating the vault state from Open
to Closed
accordingly.
Other key functions such as deposit()
, withdraw()
, and registerIPAndFractionalize()
correctly call this state validation function, but both implementations of claimFractionalTokens()
(with and without Merkle proof) omit this check.
If no contract interaction has occurred after the vault has expired, the vault state will remain incorrectly set to Open
even though it should be Closed
. When users attempt to claim their fractional tokens, the function will revert with AriaIPVault__VaultNotClosed
error because _checkFundraise()
requires the vault state to be Closed
.
This creates a situation where users can't claim their tokens after expiration until someone triggers a state update by calling another function that includes the _checkAndUpdateState()
call. In extreme cases, if no other functions are called, users might be permanently unable to claim their tokens without protocol intervention.
Add the _checkAndUpdateState()
call at the beginning of both claimFractionalTokens()
implementations.
SOLVED: The Aria Protocol team solved this finding in commit 3f52841
by following the mentioned recommendation.
//
The _initializeFundraise()
function only validates that the usdcContractAddress
is not the zero address, without verifying that it actually points to the legitimate USDC token. This allows vault deployers to specify any ERC20 token as the "USDC" contract for fundraising.
Without proper validation, vault deployers can create fundraising vaults that use alternative tokens while still labeling them as "USDC" within the protocol's context.
Consider implementing proper validation of the USDC address using one of these approaches. This could be done by:
Using hardcoded official USDC addresses for each supported chain.
Creating an admin-controlled registry of approved stablecoins if the protocol intends to support multiple tokens.
This would ensure that vaults labeled as using USDC are actually using the legitimate token, increasing transparency and reducing the potential for confusion.
RISK ACCEPTED: The Aria Protocol team made a business decision to accept the risk of this finding and not alter the contracts.
//
The AriaIPVaultFactory
contract allows the creation of multiple vaults with identical token details (name, symbol) without any uniqueness validation. The factory deploys vaults through its deployFundraiseIpVault()
and deployWhitelistIpVault()
functions, passing token details directly without checking for duplicates.
When these details are stored in the AriaIPVaultStorage.VaultLayout
struct, no mechanism exists to prevent or warn about duplicate identifiers.
This lack of uniqueness validation could lead to:
Market confusion - Multiple fractional tokens with identical names/symbols but different contract addresses.
Trading issues - Exchanges and aggregators typically rely on unique symbols for token identification.
User interface problems - Wallet applications may not properly distinguish between identically-named tokens.
Integration challenges - Third-party integrations could incorrectly identify or group tokens.
While this doesn't directly compromise security, it creates a poor user experience and increases the risk of user errors when interacting with these tokens.
Implement a registry mechanism at the factory level to track and validate token identifiers. This could be achieved by:
Maintaining a record of used token names and symbols in the factory contract.
Validating new token details against this registry during vault deployment.
Rejecting duplicate submissions or requiring admin override for exceptional cases.
Alternatively, enforce a naming convention system that ensures uniqueness, such as incorporating vault identifiers or sequential numbers into token names and symbols.
ACKNOWLEDGED: The Aria Protocol team made a business decision to acknowledge this finding and not alter the contracts.
//
The AriaIPVault
contract has a large code size of 25,557 bytes with the current configuration, which exceeds the maximum limit of 24,576 bytes.
This could lead to potential deployment issues and limitations for new features.
Consider using Solidity's compiler optimization settings with low values to reduce the contract's code size and allow for deployment.
Additionally, review the contract's functionality to identify areas where code refactoring or optimization can be applied to reduce the overall code size.
SOLVED: The Aria Protocol team solved this finding in commit 8e26a62
by following the mentioned recommendation.
//
Some functions of the contracts in scope have multiple modifiers, with one of them being nonReentrant
which prevents reentrancy behavior on the functions. Ideally, the nonReentrant
modifier should be the first one to prevent even the execution of other modifiers in case of reentrancy behavior.
In Solidity, if a function has multiple modifiers, they are executed in the order specified. If checks or logic of modifiers depend on other modifiers, this has to be considered in their ordering.
While there is currently no obvious vulnerability with nonReentrant
not being the first modifier, placing it first ensures that all other modifiers are executed only if the call is non-reentrant. This is a safer practice and can prevent potential issues in future updates or unforeseen scenarios.
Switch modifier order to consistently place the nonReentrant
modifier as the first one to run so that all other modifiers are executed only if the call is non-reentrant.
ACKNOWLEDGED: The Aria Protocol
team made a business decision to acknowledge this finding and not alter the contracts.
//
The VaultWhitelistAdmin
contract currently uses floating pragma versions ^0.8.23
which means that the code can be compiled by any compiler version that is greater than or equal to 0.8.23
, and less than 0.9.0
, while other contract in scope have their compiler fixed to version 0.8.26
.
Additionally, from Solidity versions 0.8.20
through 0.8.24
, the default target EVM version is set to Shanghai
, which results in the generation of bytecode that includes PUSH0
opcodes. Starting with version 0.8.25
, the default EVM version shifts to Cancun
, introducing new opcodes for transient storage, TSTORE
and TLOAD
.
In this aspect, it is crucial to select the appropriate EVM version when it's intended to deploy the contracts on networks other than the Ethereum mainnet, which may not support these opcodes. Failure to do so could lead to unsuccessful contract deployments or transaction execution issues.
Lock the pragma version to the same version used during development and testing and make sure to specify the target EVM version when using Solidity versions from 0.8.20
and above if deploying to chains that may not support newly introduced opcodes.
Additionally, it is crucial to stay informed about the opcode support of different chains to ensure smooth deployment and compatibility.
SOLVED: The Aria Protocol team solved this finding in commit e1bd26c
by following the mentioned recommendation.
//
In the VaultAssetRegistryAdmin
contract, there is an import that is not used within the contract and that can be removed to improve code readability and maintainability:
import {IAriaIPDistributionContract} from "contracts/rwip/staking/IAriaIPDistributionContract.sol";
Remove the unused import from the contract.
SOLVED: The Aria Protocol team solved this finding in commit ef0dff4
by following the mentioned recommendation.
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.
// Download the full report
Vault Contracts
* Use Google Chrome for best results
** Check "Background Graphics" in the print settings if needed