Assessment Report
go-ethereum
EIP-7928 Block-Level Access Lists
EIP-7928 adds a block-level access list that every Amsterdam block commits
in the header. This assessment covers
ethereum/go-ethereum
at 5b5c9d06810f8dfcc092e8d1c35b34c11fa9b8fe: sequential and
parallel BAL construction, Engine NewPayloadV5 /
GetPayloadV6, and eth/71 serve caps. Review date is
22 September 2026.
0Critical
2High
0Medium
1Low
2Info
Hackerbane · Assessment Report
HACK-AR-2026-GETH-EIP-7928
Contents
- -Document revision history
- -Contacts
- 1Executive overview
- 1.1Introduction
- 1.2What we found
- 1.3How this review was done
- 2Scoring (BVSS)
- 2.1Exploitability
- 2.2Impact
- 2.3Severity coefficient
- 2.4Scope
- 3Findings overview
- 4Findings
- 4.1(HACK-01) POST-EXECUTION SYSTEM CALLS RUN BEFORE WITHDRAWALS AT INDEX N+1
- 4.2(HACK-02) MERGE LAST-WRITE-WINS SAME-INDEX POST-EXECUTION WRITES
- 5Recommendations
- 6Fuzz testing
- 7Static analysis
- 8Remediation record
- 9Exhibit B
Document revision history
| Version | Modification | Date |
| 0.4 | Draft Review | 09/22/2026 |
| 0.5 | Document ID changed from HB-AR-2026.13 to HACK-AR-2026-GETH-EIP-7928. No other changes. | 10/05/2026 |
Contacts
1 Executive overview
1.1 Introduction
go-ethereum records every Amsterdam block's state accesses into a
block-level access list, hashes that list into the header, and
hash-compares a rebuilt list on import. Pre-execution system calls use
index 0. Transactions use 1..n. Post-execution system calls and
EIP-4895 withdrawals share index n+1. The list is an Engine API field
on ExecutionPayloadV4 and an eth/71 object on the wire.
Hackerbane reviewed
ethereum/go-ethereum
at 5b5c9d06810f8dfcc092e8d1c35b34c11fa9b8fe. Report date is
22 September 2026. Scope, commit, and file list are in section 2.4.
1.2 What we found
Geth at this pin disagrees with EELS on the BAL hash of two EEST
cross-index fixtures. StateProcessor.Process runs 7002,
7251, and the two 8282 calls, then Beacon.Finalize
withdrawals, all at index n+1 (HACK-01). EELS apply_body
does withdrawals first. Each geth system call Prepares a
fresh construction list and Merges last-write-wins, so a
slot written then restored across two calls at n+1 is encoded as a
write of the last post-value (HACK-02). 1207 other filled EEST cases
pass. Empty 7002/7251/8282 code returns empty system contract.
Engine V4/V5 fork codes are -38005 and -32602.
DecodeRLP allocates the full list before
ValidateSize (HACK-03).
Open Highs
| ID | Action | Status |
| HACK-01 | Run withdrawals, then the four request system calls, on one construction list at n+1. | PENDING |
| HACK-02 | Net same-index post-execution writes against the value at the start of the index. | PENDING |
1.3 How this review was done
- Manual read of the files in section 2.4 at
5b5c9d06.
go test on ./core/types/bal, ./core -run '^TestBAL', ./core/state -run TestApplyBlockAccessList, catalyst NewPayloadV5 / GetPayloadV6 / bodies V2, ./core/rawdb -run BAL.
- Vultr
vhp-8c-16gb-amd: package tests on ./core, ./core/state, ./eth/catalyst, ./eth/protocols/eth, ./consensus/beacon, ./miner. All pass. Instance destroyed after log copy.
geth-evm blocktest 1.17.6-unstable-5b5c9d06 on 208 filled EEST files: 1207 pass, 3 fail, all access list hash mismatch.
- Decode alloc vector: 1.5e6 empty accounts, 40.5 MiB RLP, then
ValidateSize reject.
- hive
ethereum/engine --sim.limit Amsterdam: 0 tests (no Amsterdam/BAL suite on that hive commit). Client image is ethereum/client-go:latest, not this pin.
go vet go1.26.1 on ./core/, ./core/types/bal/, ./core/state/, ./eth/catalyst/, ./consensus/beacon/, ./miner/, ./eth/protocols/eth/: clean.
See chapters 6 and 7 for fuzz and static analysis.
2 Scoring (BVSS)
Each finding gets a BVSS vector. Exploitability is Attack Origin, Attack
Cost, and Attack Complexity. Impact is Confidentiality, Integrity,
Availability, Deposit, and Yield. The coefficient is Reversibility
times Scope. The printed score is min(10, E * I * C * 10), rounded up
to one decimal.
S = min(10, E * I * C * 10)
2.1 Exploitability
E is the product of Attack Origin (AO), Attack Cost (AC), and Attack Complexity (AX).
| Metric | Value | Numeric |
| Attack Origin (AO) | Arbitrary (AO:A) / Specific (AO:S) | 1 / 0.2 |
| Attack Cost (AC) | Low / Medium / High | 1 / 0.67 / 0.33 |
| Attack Complexity (AX) | Low / Medium / High | 1 / 0.67 / 0.33 |
AO:A means any account can attempt the call. AO:S means a specific account must be compromised. AC is cost relative to one transaction on the target chain. AX is conditions beyond the attacker.
2.2 Impact
Confidentiality (C), Integrity (I), Availability (A), Deposit (D), and Yield (Y).
Integrity and Availability exclude impact already counted under Deposit or Yield.
| None | Low | Medium | High | Critical |
| C / I / A / D / Y | 0 | 0.25 | 0.5 | 0.75 | 1 |
I = max(mI) + (sum(mI) - max(mI)) / 4
2.3 Severity coefficient
| Coefficient | Value | Numeric |
| Reversibility (R) | None / Partial / Full | 1 / 0.5 / 0.25 |
| Scope (S) | Changed / Unchanged | 1.25 / 1 |
C = R * S
| Band | Score |
| Critical | 9.0 - 10.0 |
| High | 7.0 - 8.9 |
| Medium | 4.5 - 6.9 |
| Low | 2.0 - 4.4 |
| Informational | 0.0 - 1.9 |
HACK-01 and HACK-02 set I:H because geth rejects EELS-built Amsterdam
blocks (and a geth builder seals a list EELS rejects). HACK-01 is a CL
withdrawal to a post-execution predeploy. HACK-02 is two system calls
at n+1 that touch the same slot; EEST substitutes predeploy code to
force that overlap. HACK-03 sets A:L because a 40.5 MiB decode then
reject did not stall the test machine. HACK-04 and HACK-05 set all
impact None: validators still reject an oversized built list, and
Hash() fails closed on encode error.
2.4 Scope
Code repositories:
1. go-ethereum
- Repository: ethereum/go-ethereum
master.
- Commit ID:
5b5c9d06810f8dfcc092e8d1c35b34c11fa9b8fe
Reference pins (not geth findings against these trees):
- EIP-7928 text:
ethereum/EIPs file commit d2a64c2d4cc44f2f507577d0ebfb110dcc21d358
- EELS
forks/amsterdam d4c28bfe7aa35e91ee0cd50febd316eb90d92a37
- Engine API
ethereum/execution-apis 465d1b98d43e94ff3d57e904fd7d4bea7f6b804c
Files in scope:
core/types/bal/bal.go, bal_encoding.go, bal_lookup.go
core/state/statedb.go (Amsterdam recording), statedb_eip_7928.go
core/state_processor.go, state_processor_parallel.go, block_validator.go
consensus/beacon/consensus.go
eth/catalyst/api.go, beacon/engine/types.go
eth/protocols/eth/handler.go, protocol.go
core/vm/gas_table.go gasSStore8037And8038, operations_acl.go CALL 8038
params/protocol_params.go BALItemCost
Out of scope:
- Spec-only EIP-7928 findings (separate assessment of the EIP text).
- snap/2 beyond BAL apply, GraphQL field wiring, Clique/ethash.
- Co-scheduled Amsterdam EIPs except BAL inclusion (gas-before-access, 8282 predeploys).
- Code after the pinned commit.
- Third-party libraries except the Go module graph used to build this pin.
3 Findings overview
| Critical | High | Medium | Low | Informational |
| 0 |
2 |
0 |
1 |
2 |
| Security analysis | Risk level | Remediation |
| (HACK-01) POST-EXECUTION SYSTEM CALLS RUN BEFORE WITHDRAWALS AT INDEX N+1 | High (7.5) | PENDING |
| (HACK-02) MERGE LAST-WRITE-WINS SAME-INDEX POST-EXECUTION WRITES | High (7.5) | PENDING |
| (HACK-03) DECODERLP ALLOCATES THE FULL LIST BEFORE VALIDATESIZE | Low (2.5) | PENDING |
| (HACK-04) ASSEMBLEBLOCK WRITES THE BAL HASH WITHOUT VALIDATESIZE | Informational (0.0) | PENDING |
| (HACK-05) HASH RETURNS THE ZERO HASH WHEN ENCODERLP FAILS | Informational (0.0) | PENDING |
4 Findings
4.1 (HACK-01) POST-EXECUTION SYSTEM CALLS RUN BEFORE WITHDRAWALS AT INDEX N+1
High (7.5)H-01Consensus / n+1 orderPENDING
Description
EIP-7928 F-04 and EELS apply_body set block_access_index = len(txs)+1, process EIP-4895 withdrawals, then run the 7002, 7251, and 8282 system calls. Recipients are recorded with their final balance after that index's work (7928-60).
StateProcessor.Process calls PostExecution (those four system calls) then Engine().Finalize, still at len(txs)+1. Beacon.Finalize AddBalances each withdrawal and writes BalanceChange / AccountRead into the already-merged list. A TODO at line 150 says to fold Finalize into PostExecution.
When a withdrawal credits a 7002/7251/8282 predeploy that then forwards SELFBALANCE in its dequeue call, EELS nets to the post-forward balance and geth records the post-withdrawal balance. The rebuilt BAL hash diverges. A geth builder seals the geth list; an EELS-conformant validator rejects it. The reverse also holds. Actor is the CL withdrawal recipient list. BVSS: AO:A/AC:L/AX:L/C:N/I:H/A:N/D:N/Y:N/R:N/S:U (7.5).
Code location
Listing 1: core/state_processor.go (Lines 138-151)
| 138 | // The receipt trie is complete, let the pipeline finish it off while the |
| 139 | // block is wrapped up. |
| 140 | pipeline.close() |
| 141 | requests, bal, err := PostExecution(ctx, config, block.Number(), block.Time(), allLogs, evm, uint32(len(block.Transactions())+1)) |
| 142 | if err != nil { |
| 143 | return nil, err |
| 144 | } |
| 145 | blockAccessList.Merge(bal) |
| 146 | |
| 147 | // Finalize the block, applying any consensus engine specific extras |
| 148 | // (e.g. block rewards). |
| 149 | // |
| 150 | // TODO(rjl493456442) integrate it into the PostExecution. |
| 151 | p.chain.Engine().Finalize(p.chain, header, tracingStateDB, block.Body(), uint32(len(block.Transactions())+1), blockAccessList) |
Listing 2: consensus/beacon/consensus.go (Lines 345-372)
| 345 | // Finalize implements consensus.Engine and processes withdrawals on top. |
| 346 | func (beacon *Beacon) Finalize(chain consensus.ChainHeaderReader, header *types.Header, state vm.StateDB, body *types.Body, blockAccessIndex uint32, bal *bal.ConstructionBlockAccessList) { |
| 347 | if !beacon.IsPoSHeader(header) { |
| 348 | beacon.ethone.Finalize(chain, header, state, body, blockAccessIndex, bal) |
| 349 | return |
| 350 | } |
| 351 | // Withdrawals processing. |
| 352 | for _, w := range body.Withdrawals { |
| 353 | // Convert amount from gwei to wei. |
| 354 | amount := new(uint256.Int).SetUint64(w.Amount) |
| 355 | amount = amount.Mul(amount, uint256.NewInt(params.GWei)) |
| 356 | prev := state.AddBalance(w.Address, amount, tracing.BalanceIncreaseWithdrawal) |
| 357 | |
| 358 | // Populate the block-level accessList if Amsterdam is enabled |
| 359 | if chain.Config().IsAmsterdam(header.Number, header.Time) { |
| 360 | if w.Amount == 0 { |
| 361 | // Zero amount withdrawal, account is accessed potential |
| 362 | // without state changes. |
| 363 | bal.AccountRead(w.Address) |
| 364 | } else { |
| 365 | // Non-zero amount withdrawal, account is accessed with |
| 366 | // a balance change. |
| 367 | bal.BalanceChange(blockAccessIndex, w.Address, new(uint256.Int).Add(&prev, amount)) |
| 368 | } |
| 369 | } |
| 370 | } |
| 371 | // No block reward which is issued by consensus layer instead. |
| 372 | } |
Proof of concept
- Fill EEST
test_bal_withdrawals_and_dequeues_net_balance_at_last_index from execution-specs d4c28bfe7 (1 gwei withdrawal to each post-execution predeploy; predeploy code forwards all or half of SELFBALANCE).
- Run
geth-evm --verbosity 0 blocktest 1.17.6-unstable-5b5c9d06 on the filled JSON.
forward_all: insertion fails access list hash mismatch, local 6defd017ed3e31cdd84eb9a6a040adc0f7655de4760c57cc6ef8e86ef4313a09, remote 2c6102f38e8cf289ed058e25481e6cc8c1167b573c740e97134f61dfad8392b7.
forward_half: local 4f10ea221de548fe431b2a66fa34119ae6f191f29208516571e42f590e54d63e, remote 04e2c676dac61dbfaa50c80cc37a38838f6dbcd27530042e4d9e08176c3a283d.
- Same binary on 208 filled files: 1207 pass, 3 fail. The third fail is HACK-02. Logs:
audits/geth-eip-7928/audit/vectors/vultr-run/SUMMARY.txt.
BVSS
AO:A/AC:L/AX:L/C:N/I:H/A:N/D:N/Y:N/R:N/S:U (7.5)
Recommendation
Match apply_body: withdrawals, then the four request system calls, one construction list for the index. Fold Finalize into PostExecution as the TODO at state_processor.go:150 already names, with Finalize first. Re-run test_bal_withdrawals_and_dequeues_net_balance_at_last_index.
References
EELS src/ethereum/forks/amsterdam/fork.py:835-845. EEST test_block_access_lists_cross_index.py (withdrawals and dequeues). EIP-7928 F-04, 7928-58, 7928-60.
4.2 (HACK-02) MERGE LAST-WRITE-WINS SAME-INDEX POST-EXECUTION WRITES
High (7.5)H-02State nettingPENDING
Description
EIP-7928-45: implementations MUST compare each write against the storage value as of immediately before the current block_access_index. Index n+1 holds several post-execution system calls. EELS keeps one builder for that index and nets all of them against the start of the index.
processRequestsSystemCall Prepares a fresh stateAccessList per call, Calls, Finalises, and Merges into the block list. Merge on a colliding (slot, txIdx) keeps other's value. finalise only sees dirtiness inside the current call, so a slot written then restored across two calls at n+1 is encoded as a write of the last post-value. EEST expects that slot in storage_reads.
A geth builder produces a different BAL hash than EELS for the same txs. Validators split. The EEST fixture substitutes 7002/7251 bytecode so both calls run the same body. Default production layouts were not shown to collide on one slot; the construction path is still last-write-wins on every Amsterdam block. BVSS: AO:A/AC:L/AX:L/C:N/I:H/A:N/D:N/Y:N/R:N/S:U (7.5).
Code location
Listing 3: core/state_processor.go (Lines 436-467)
| 436 | func processRequestsSystemCall(requests *[][]byte, rules params.Rules, evm *vm.EVM, requestType byte, addr common.Address, blockAccessIndex uint32, blockAccessList *bal.ConstructionBlockAccessList) error { |
| 437 | if evm.StateDB.GetCodeSize(addr) == 0 { |
| 438 | return fmt.Errorf("empty system contract: no code at %v", addr) |
| 439 | } |
| 440 | if tracer := evm.Config.Tracer; tracer != nil { |
| 441 | onSystemCallStart(tracer, evm.GetVMContext()) |
| 442 | if tracer.OnSystemCallEnd != nil { |
| 443 | defer tracer.OnSystemCallEnd() |
| 444 | } |
| 445 | } |
| 446 | gasLimit, gasBudget := systemCallGasBudget(evm) |
| 447 | msg := &Message{ |
| 448 | From: params.SystemAddress, |
| 449 | GasLimit: gasLimit, |
| 450 | GasPrice: uint256.NewInt(0), |
| 451 | GasFeeCap: uint256.NewInt(0), |
| 452 | GasTipCap: uint256.NewInt(0), |
| 453 | To: &addr, |
| 454 | } |
| 455 | evm.SetTxContext(NewEVMTxContext(msg)) |
| 456 | evm.StateDB.Prepare(evm.GetRules(), common.Address{}, common.Address{}, nil, nil, nil) |
| 457 | evm.StateDB.SetTxContext(common.Hash{}, 0, blockAccessIndex) |
| 458 | evm.StateDB.AddAddressToAccessList(addr) |
| 459 | ret, _, err := evm.Call(msg.From, *msg.To, msg.Data, gasBudget, common.U2560) |
| 460 | if evm.StateDB.AccessEvents() != nil { |
| 461 | evm.StateDB.AccessEvents().Merge(evm.AccessEvents) |
| 462 | } |
| 463 | bal := evm.StateDB.Finalise(evm.GetRules()) |
| 464 | if err != nil { |
| 465 | return fmt.Errorf("system call failed to execute: %v", err) |
| 466 | } |
| 467 | blockAccessList.Merge(bal) |
Listing 4: core/types/bal/bal.go (Lines 158-194)
| 158 | func (b *ConstructionBlockAccessList) Merge(other *ConstructionBlockAccessList) { |
| 159 | if other == nil { |
| 160 | return |
| 161 | } |
| 162 | for addr, otherAcc := range other.Accounts { |
| 163 | acc, ok := b.Accounts[addr] |
| 164 | if !ok { |
| 165 | b.Accounts[addr] = otherAcc |
| 166 | continue |
| 167 | } |
| 168 | for key, writes := range otherAcc.StorageWrites { |
| 169 | existing, ok := acc.StorageWrites[key] |
| 170 | if !ok { |
| 171 | acc.StorageWrites[key] = writes |
| 172 | } else { |
| 173 | for txIdx, value := range writes { |
| 174 | existing[txIdx] = value |
| 175 | } |
| 176 | } |
| 177 | delete(acc.StorageReads, key) |
| 178 | } |
| 179 | for key := range otherAcc.StorageReads { |
| 180 | if _, ok := acc.StorageWrites[key]; ok { |
| 181 | continue |
| 182 | } |
| 183 | acc.StorageReads[key] = struct{}{} |
| 184 | } |
| 185 | for txIdx, balance := range otherAcc.BalanceChanges { |
| 186 | acc.BalanceChanges[txIdx] = balance |
| 187 | } |
| 188 | for txIdx, nonce := range otherAcc.NonceChanges { |
| 189 | acc.NonceChanges[txIdx] = nonce |
| 190 | } |
| 191 | for txIdx, code := range otherAcc.CodeChange { |
| 192 | acc.CodeChange[txIdx] = code |
| 193 | } |
| 194 | } |
Proof of concept
- Fill EEST
test_bal_post_execution_calls_net_storage_at_last_index (no withdrawals; 7002 code invokes the consolidation body, then 7251 runs it again; toggle slot 1 returns to 0).
- Run
geth-evm --verbosity 0 blocktest at 5b5c9d06.
- Result:
access list hash mismatch, local e93e85d2e4de176bb4f4d689786bfd3f490a4ad08786c1f76dbe2477c5efcff8, remote 1a51f556bbddb9252f36300cbe8c5f2da2270cdf261dba75205655d63e4e4dec.
- Same batch: 1207 other cases pass. This fixture is one of the three fails (the other two are HACK-01).
BVSS
AO:A/AC:L/AX:L/C:N/I:H/A:N/D:N/Y:N/R:N/S:U (7.5)
Recommendation
Build one construction list for the whole of index n+1. Do not Prepare a fresh list per system call. After Merge, drop writes whose post-value equals the value at the start of the index. Re-run test_bal_post_execution_calls_net_storage_at_last_index.
References
EIP-7928-45. EELS fork.py:835-845. SPEC-02 in the sibling EIP-text assessment (netting defined per transaction while indices 0 and n+1 hold several calls).
4.3 (HACK-03) DECODERLP ALLOCATES THE FULL LIST BEFORE VALIDATESIZE
Low (2.5)L-01Decode / DoSPENDING
Description
EIP-7928 constrains item count by block_gas_limit / ITEM_COST (2000). Geth enforces that in ValidateSize after the list is in memory.
BlockAccessList.DecodeRLP loops MoreDataInList and appends with no item or byte cap. Engine attachAccessList is rlp.DecodeBytes then WithAccessListUnsafe. ValidateBody size-bounds the attached list after that decode. eth/71 is separately capped at 1024 lists / 2 MiB.
A CL can attach an oversized BAL to engine_newPayloadV5. The EL inflates it, then rejects. Measured on this pin, empty accounts only, gasLimit=30_000_000 (bound 15000): 1.5e6 accounts = 40.5 MiB RLP, heapDelta ~19 MiB, then reject. No stall on that machine. BVSS: AO:A/AC:L/AX:L/C:N/I:N/A:L/D:N/Y:N/R:N/S:U (2.5).
Code location
Listing 5: core/types/bal/bal_encoding.go (Lines 59-76)
| 59 | // DecodeRLP implements rlp.Decoder. |
| 60 | func (e *BlockAccessList) DecodeRLP(s *rlp.Stream) error { |
| 61 | if _, err := s.List(); err != nil { |
| 62 | return err |
| 63 | } |
| 64 | var list BlockAccessList |
| 65 | for s.MoreDataInList() { |
| 66 | var a AccountAccess |
| 67 | if err := a.DecodeRLP(s); err != nil { |
| 68 | return err |
| 69 | } |
| 70 | list = append(list, a) |
| 71 | } |
| 72 | if err := s.ListEnd(); err != nil { |
| 73 | return err |
| 74 | } |
| 75 | *e = list |
| 76 | return nil |
Listing 6: beacon/engine/types.go (Lines 385-401)
| 385 | // attachAccessList decodes the block access list carried by the executable data |
| 386 | // and attaches it to the block. Payloads without an access list are returned |
| 387 | // unchanged. |
| 388 | // |
| 389 | // A present but empty access list field is not a valid RLP encoding (an empty |
| 390 | // list encodes as 0xc0) and is rejected like any other undecodable payload: |
| 391 | // the engine API requires such payloads to be answered with the INVALID status |
| 392 | // rather than an invalid params error. |
| 393 | func attachAccessList(block *types.Block, data ExecutableData) (*types.Block, error) { |
| 394 | if data.BlockAccessList == nil { |
| 395 | return block, nil |
| 396 | } |
| 397 | var accessList bal.BlockAccessList |
| 398 | if err := rlp.DecodeBytes(data.BlockAccessList, &accessList); err != nil { |
| 399 | return nil, fmt.Errorf("failed to decode BAL: %w", err) |
| 400 | } |
| 401 | return block.WithAccessListUnsafe(&accessList), nil |
BVSS
AO:A/AC:L/AX:L/C:N/I:N/A:L/D:N/Y:N/R:N/S:U (2.5)
Recommendation
Reject in attachAccessList (or DecodeRLP with a caller-supplied cap) when encoded length or len(list) exceeds gasLimit / BALItemCost, before allocating per-account objects. Keep ValidateSize as the consensus check.
4.4 (HACK-04) ASSEMBLEBLOCK WRITES THE BAL HASH WITHOUT VALIDATESIZE
Informational (0.0)I-01Builder pathPENDING
Description
The producer must emit a BAL that validators will accept under the size constraint.
AssembleBlock calls ToEncodingObj, Hash(), writes header.BlockAccessListHash, and attaches with WithAccessListUnsafe. Grep of this pin: ValidateSize is only referenced from Validate and tests. No call from miner/.
getPayload can return a BAL that fails the size bound. Import then rejects the same node's block. No chain split. BVSS: AO:A/AC:L/AX:L/C:N/I:N/A:N/D:N/Y:N/R:N/S:U (0.0).
Code location
Listing 7: core/state_processor.go (Lines 511-523)
| 511 | func AssembleBlock(chain consensus.ChainHeaderReader, header *types.Header, state *state.StateDB, body *types.Body, receipts []*types.Receipt, blockAccessList *bal.ConstructionBlockAccessList) *types.Block { |
| 512 | // Assign the post-transition state root |
| 513 | rules := chain.Config().Rules(header.Number, header.Difficulty.Sign() == 0, header.Time) |
| 514 | header.Root = state.IntermediateRoot(rules) |
| 515 | |
| 516 | if !rules.IsAmsterdam { |
| 517 | return types.NewBlock(header, body, receipts, trie.NewStackTrie(nil)) |
| 518 | } |
| 519 | // Assign the BlockAccessListHash if Amsterdam has been enabled |
| 520 | bal := blockAccessList.ToEncodingObj() |
| 521 | balHash := bal.Hash() |
| 522 | header.BlockAccessListHash = &balHash |
| 523 | return types.NewBlock(header, body, receipts, trie.NewStackTrie(nil)).WithAccessListUnsafe(bal) |
BVSS
AO:A/AC:L/AX:L/C:N/I:N/A:N/D:N/Y:N/R:N/S:U (0.0)
Recommendation
Call Validate (or ValidateSize) in AssembleBlock before writing the header hash, and fail the seal until the bound holds.
4.5 (HACK-05) HASH RETURNS THE ZERO HASH WHEN ENCODERLP FAILS
Informational (0.0)I-02EncodingPENDING
Description
BlockAccessList.Hash is keccak of the RLP. That hash is compared to the header field.
On EncodeRLP error the function returns common.Hash{} (32 zero bytes). EmptyBlockAccessListHash is keccak of 0xc0. Header compare then uses the zero hash. A non-zero header hash mismatches and the block is rejected.
No vector on this pin makes EncodeRLP fail on a constructed list. Fail closed for any real header hash. BVSS: AO:A/AC:L/AX:L/C:N/I:N/A:N/D:N/Y:N/R:N/S:U (0.0).
Code location
Listing 8: core/types/bal/bal_encoding.go (Lines 122-131)
| 122 | // Hash computes the keccak256 hash of the access list |
| 123 | func (e *BlockAccessList) Hash() common.Hash { |
| 124 | var enc bytes.Buffer |
| 125 | if err := e.EncodeRLP(&enc); err != nil { |
| 126 | // Errors here are related to BAL values exceeding maximum size defined |
| 127 | // by the spec. Return empty hash because these cases are not expected |
| 128 | // to be hit under reasonable conditions. |
| 129 | return common.Hash{} |
| 130 | } |
| 131 | return crypto.Keccak256Hash(enc.Bytes()) |
BVSS
AO:A/AC:L/AX:L/C:N/I:N/A:N/D:N/Y:N/R:N/S:U (0.0)
Recommendation
Return (common.Hash, error) from Hash(), or fail the block on encode error. Do not treat the zero hash as a valid access-list hash.
5 Recommendations
High
| ID | Risk | Recommendation | Status |
| HACK-01 | High (7.5) | Run withdrawals, then the four request system calls, on one construction list at n+1. | PENDING |
| HACK-02 | High (7.5) | Net same-index post-execution writes against the value at the start of the index. Stop Prepare-per-call. | PENDING |
Low
| ID | Risk | Recommendation | Status |
| HACK-03 | Low (2.5) | Cap Engine BAL decode by encoded length or gasLimit / BALItemCost before inflating accounts. | PENDING |
Informational
| ID | Risk | Recommendation | Status |
| HACK-04 | Informational (0.0) | Call ValidateSize in AssembleBlock before writing the header hash. | PENDING |
| HACK-05 | Informational (0.0) | Fail Hash() on encode error instead of returning the zero hash. | PENDING |
6 Fuzz testing
No Go fuzz harness (go test -fuzz or go-fuzz) was run on
core/types/bal or the Engine attach path. Differential
coverage was EEST blocktest (chapter 1.3): 1207 pass, 3 fail
(HACK-01, HACK-02). Decode amplification (HACK-03) was a counted alloc
vector, not a fuzzer.
7 Static analysis
go vet go1.26.1 on ./core/,
./core/types/bal/, ./core/state/,
./eth/catalyst/, ./consensus/beacon/,
./miner/, and ./eth/protocols/eth/ reported
no issues. staticcheck was not on PATH and was not run.
go test results are in section 1.3 and
audits/geth-eip-7928/audit/vectors/vultr-run/.
8 Remediation record
Report date 22 September 2026. No patch commit was reviewed. This assessment does not include a remediation review. All findings are PENDING in the pinned tree.
| Date | IDs | Commit / statement | Independent confirm | Merge |
| 09/22/2026 |
HACK-01 to HACK-05 |
PENDING. Tree unchanged relative to go-ethereum 5b5c9d06. |
No |
Open |
Still open: HACK-01 through HACK-05.
9 Exhibit B
Severity words for this Assessment Report, plus the as-is cap.
Services agreement terms apply when one exists.
All services, the assessment report, work product, or other materials are provided "as is" and "as available" and with all faults and defects without warranty of any kind. To the maximum extent permitted under applicable law, Hackerbane disclaims all warranties, express, implied, or statutory, including merchantability, fitness for a particular purpose, title, and non-infringement. Hackerbane makes no warranty that the services or the report will meet any person's requirements, achieve any intended result, be secure, accurate, complete, free of harmful code, or error-free, or that any error can or will be corrected.
No third party is a beneficiary of this report. This report is not financial, tax, legal, or regulatory advice.
Severity words used in the Report
| Critical | Funds or a live consensus safety property on the scoped chain, exploitable with the access the threat model grants, now. |
| High | Serious, less immediate than critical. A client split or integrity break that needs a realistic precondition: a misconfigured genesis, a specific fork state, a second bug. |
| Medium | A broken primitive or assumption that does not have an exploit path on the pinned call graph. Fix before the next release. |
| Low | Defense in depth. No direct loss path today; removes a step from a future one. |
| Informational | An observation with no security impact as scoped. Hygiene, clarity, or a note for the next reviewer. |
This client executes contracts written in Solidity. Solidity smart contract audit.