background
logo

Security Audit Report for MegaETH's Normal Account Contracts

개요

The target of this audit is the private code repository of Normal Account Contracts of MegaETH. The Normal Account Contracts of MegaETH is a smart account infrastructure for EOAs leveraging EIP-7702 delegation. Its core objective is to upgrade standard EOAs into fully programmable smart accounts without deploying individual proxy contracts per user. Through EIP-7702’s code delegation mechanism, an EOA can dynamically bind to predefined account logic while retaining its original address. The system supports multi-key authorization (secp256k1, P-256, WebAuthn, external signers), fine-grained spending limits, customizable execution guards to constrain transaction behavior, a new gas-payment system for flexible fee sponsorship, and cross-chain settlement capabilities that let a single account securely and efficiently interact across multiple chains

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 have found that the codebase contains 3 high-risk issues that require prompt attention. In addition, we have identified other non-critical issues as well as recommendations and notes that should be considered. The Normal Account Contracts team has addressed these issues promptly. It is important to note that our audit covers only the final reported versions of the codebase. Any subsequent updates would require a re-evaluation.

주요 발견 사항

스마트 컨트랙트에서 잠재적인 문제 10건을 발견했습니다. 권고 사항 7건과 참고 사항 3건도 함께 정리했습니다.

높은 위험도 3건
중간 위험도 3건
낮은 위험도 4건
권고 사항 7건
참고 사항 3건
ID Severity Description Status
1 High Lack of validations for the address i.funder Fixed
2 High Potential lock of funds due to the use of non-ERC20 standard tokens Fixed
3 High The improper construction of replaySafeDigest Fixed
4 Medium Pre-execution side effects persist when business call fails Confirmed
5 Medium Lack of the fee validation in the function executeSend() Fixed
6 Medium Potential replay attacks due to the incorrect multichain flow Fixed
7 Low Potential loss of gas fee due to malicious intents Fixed
8 Low Lack of signature validity checks before invoking the function ISettler.send() Fixed
9 Low The improper design of the function isValidSignatureWithKeyHash() Fixed
10 Low The execution design of the function initConfig() Fixed
11 - Remove redundant code Fixed
12 - Revise the error name VerificationError Fixed
13 - Add non-zero checks in the contract IthacaAccount constructor Fixed
14 - Add the non-reentrant guard to the withdrawTokens() and executePreCalls() functions Fixed
15 - Revise the inconsistent approval amount Fixed
16 - Override the function setPeer() in the contract LayerZeroSettler Fixed
17 - Add non-zero checks in the contracts SimpleSettler and LayerZeroSettler Fixed
18 - Ensure proper selection of relayers -
19 - Proper intent construction -
20 - Ensure proper LayerZero configurations -

자세한 내용은 감사 보고서에서 확인할 수 있습니다.

더 안전한 프로토콜을 위한 첫걸음

출시 전에 프로토콜 보안을 강화하세요. BlockSec의 전문 코드 감사팀에 문의하시면 됩니다.

Security Audit Report for MegaETH's Normal Account Contracts - BlockSec