Your protocol has 2 security issues — 1 High, 1 Low severity.
Security Overview //
Security Overview
Access Control
Secure
Reentrancy Protection
Secure
Oracle Security
Secure
Upgrade Safety
Secure
Input Validation
Secure
Event Logging
Secure
Severity Breakdown
Vulnerability Breakdown
Below is a comprehensive breakdown of the vulnerabilities discovered in your smart contracts. As part of our marketing outreach, we expose the highest-severity vulnerability for free.
Denial of Service (DoS) via unbounded array loop
BridgeValidator.sol:109
Impact
If the array size is influenced by users (e.g. dynamic list of depositors, addresses, tokens), an attacker or heavy usage can make the array grow, locking the protocol's key functions permanently.
Description
Line 109 contains a `for` loop that appears to iterate over the length of a dynamic array. If the array grows too large, the gas cost to execute the loop will exceed the block gas limit, causing the function to become permanently unusable.
Vulnerable Code
107 106 | /// @return True if the combined weight meets or exceeds the threshold.108 107 | function hasConsensus(address[] calldata signers) external view returns (bool) {109 108 | uint256 weightSum = 0;110 >>> 109 | for (uint256 i = 0; i < signers.length; i++) {111 110 | if (validators[signers[i]].isActive) {112 111 | weightSum += validators[signers[i]].weight;113 112 | }
Recommendation
Avoid iterating over unbounded dynamic arrays. Instead, use a pull-payment pattern or implement pagination so the loop can be processed in smaller, bounded chunks.
1 More Issue Detected
The following findings require expert review for full remediation guidance.
Floating pragma: `pragma solidity ^0.8.20`
The Solidity version pragma `^0.8.20` is not locked to a specific compiler version. Different compiler versions may introduce different behavior, optimizations, or bugs.
Lock the pragma to a specific version, e.g., `pragma solidity 0.8.20;`. Use the latest stable version for new contracts.
Our automated scan found 2 issues. Our expert auditors go deeper — covering logic bugs, economic attack vectors, and cross-contract interactions that automated tools miss.
Or email us at audit@0xram.com (Contact form is preferred for priority review)
Secure Your Protocol
Before Launch
This automated scan is just the surface. Our team of expert auditors conducts line-by-line manual reviews, formal verification, and economic simulations to ensure your protocol is battle-tested.
Or email us at audit@0xram.com (Contact form preferred for priority queueing)