Open
Conversation
Collaborator
Author
🔗 Additional ContextOriginal Blog Post: https://blog.trailofbits.com/2026/03/11/six-mistakes-in-erc-4337-smart-accounts/ Content Categories: Based on the analysis, this content was categorized under "Blockchain & Crypto (Web3) -> Add/extend a page on ERC-4337 Account Abstraction / Smart Account Security Pitfalls (incl. validateUserOp patterns, gas-field signing, ERC-1271 domain separation, validation statefulness, fee-drain via revert-after-validation, ERC-7702 init frontrun protections)". Repository Maintenance:
Review Notes:
Bot Version: HackTricks News Bot v1.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Automated Content Update
This PR was automatically generated by the HackTricks News Bot based on a technical blog post.
📝 Source Information
🎯 Content Summary
This Trail of Bits post (dated 2026-03-11) explains the ERC-4337 "account abstraction" execution model and highlights six recurring vulnerability patterns observed during audits of ERC-4337 smart accounts ("smart wallets"). The key security takeaway is that account abstraction turns your wallet into a programmable system: a single bug can become as catastrophic as a private-key leak (i.e., full funds loss).
How ERC-4337 works (mental model + where the attack surface comes from)
Ethereum has tw...
🔧 Technical Details
Bypass ERC-4337 validation via direct calls to unprotected privileged methods: If a smart account exposes execute (or any fund-moving/privileged function) as external/public without enforcing require(msg.sender == entryPoint) (or a vetted executor module), an attacker can call it directly on-chain and perform arbitrary calls (including value transfers), draining funds while completely bypassing UserOperation validation.
Drain ETH by mutating unsigned/unchecked gas parameters in a UserOperation: If signature validation checks only the "intent" (e.g., callData) and does not verify the EntryPoint-provided userOpHash that binds the full operation (including preVerificationGas, verificationGasLimit, callGasLimit, maxFeePerGas, maxPriorityFeePerGas), a bundler or frontrunner can inflate these fields—especially preVerificationGas, which directly increases bundler reimbursement—to cause systematic overpayment and drain ETH. Fix by signing/verifying userOpHash and/or enforcing strict cap...
🤖 Agent Actions
Summary of changes:
Files modified/created:
src/blockchain/blockchain-and-crypto-currencies/erc-4337-smart-account-security-pitfalls.mdsrc/blockchain/blockchain-and-crypto-currencies/README.mdIf you want adjustments or additional cross-links within other sections, tell me where you’d like them.
This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.