Skip to content

fix(ethereum): Audit fixes A-810, A-812 (nonce race, isEscapeHatchOpen logging) - #21948

Merged
PhilWindle merged 7 commits into
merge-train/spartanfrom
spyros/ethereum-audit-fixes-a810-a811-a812
Mar 26, 2026
Merged

PhilWindle merged 7 commits into
merge-train/spartanfrom
spyros/ethereum-audit-fixes-a810-a811-a812

Conversation

@spypsy

@spypsy spypsy commented Mar 24, 2026

Copy link
Copy Markdown
Member

Fixes A-810

  • Problem: No mutex; concurrent publishers could use the same nonce when calling sendTransaction on the same L1TxUtils instance.
  • Fix: Added a Semaphore(1) mutex so sendTransaction is serialized per instance. Acquire before nonce read, release in finally after send (success or failure).

Fixes A-812

  • Problem: isEscapeHatchOpen caught all errors and returned false without logging, causing a liveness risk — operators couldn't detect RPC/contract failures.
  • Fix: Log a warning (epoch, error) when the catch triggers, while still returning false to preserve the defensive behaviour.

Made with Cursor

Comment thread yarn-project/ethereum/src/l1_tx_utils/l1_tx_utils.ts Outdated
@PhilWindle

Copy link
Copy Markdown
Contributor

Do we ever use L1TxUtils in such a way as to have multiple interleaved calls where this would be a problem?

@spypsy

spypsy commented Mar 25, 2026

Copy link
Copy Markdown
Member Author

@PhilWindle even if we don't currently, seems like a good idea to have for future-proofing. Also means since we're not using L1TxUtils this way currently, this shouldn't affect its operation at all.

Happy to remove and close the ticket anyway

@PhilWindle
PhilWindle enabled auto-merge (squash) March 26, 2026 09:01
@PhilWindle
PhilWindle disabled auto-merge March 26, 2026 10:35
@PhilWindle
PhilWindle merged commit f91da31 into merge-train/spartan Mar 26, 2026
11 checks passed
@PhilWindle
PhilWindle deleted the spyros/ethereum-audit-fixes-a810-a811-a812 branch March 26, 2026 10:35
github-merge-queue Bot pushed a commit that referenced this pull request Mar 27, 2026
BEGIN_COMMIT_OVERRIDE
fix: only clear provenBlockNumber when it exceeds prune point (#21946)
chore: (A-779) load all accounts before calling
LogService.#getSecretsForSenders (#21923)
fix: align staging-public mana target with testnet/mainnet (#21983)
chore: (A-777) add warn logs for regressive path in block synchronizer
(#21925)
fix: fully validate txs retrieved from tx file store (#21988)
refactor: extract checkpoint proposal handling to ProposalHandler
(#21999)
fix: unbounded memory in calldataRetriever (#22004)
fix(p2p): check peer rate limit before global to prevent quota
starvation (#21997)
fix(p2p): evict expired failed-auth-handshake entries on heartbeat
(#21992)
chore: defensively handle skipPushProposedBlocksToArchiver (#22017)
chore: bump testnet prover resource profile to prod-hi-tps (#22019)
chore: (A-835) remove unused serializer (#22037)
fix(p2p): remove disconnected peers from scoring maps (#22009)
fix(e2e): set anvilSlotsInAnEpoch in slashing tests (#21869)
fix(ethereum): Audit fixes A-810, A-812 (nonce race, isEscapeHatchOpen
logging) (#21948)
chore: remove old TxPool implementation (#22028)
fix: Fix blob encoding when uploaded from proposals (#22045)
chore: Adds /cycle and /fix skills. Also configures linear mcp server
(#22043)
chore: remove validatorReexecute config option (#22024)
fix(sequencer): use last L1 slot of L2 slot as eth_simulateV1 timestamp
(#22023)
docs(simulator): clarify teardown gas billing is intentional (#22057)
chore: revert account loading optimization in log service (#22062)
fix: use DateProvider in PeerScoring (#22070)
fix(aztec.js): preserve extraHashedArgs in DeployMethod.with() (#22053)
fix(p2p): replace process.exit() with graceful shutdown in worker
cleanup (#22046)
chore: merge next (#22089)
fix(stdlib): correct NoteDao size (#22068)
feat: improve blob download from filestores (#22096)
fix: remove stale tx_pool v1 benchmark reference (#22104)
END_COMMIT_OVERRIDE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants