Important Ethereum (ETH) Bug Might Be Finally Fixed
In this news:
Key takeaways
- An Ethereum consensus client merged a fix for a validator pubkey cache poisoning attack.
- The vulnerability involves a bug in the global pubkey cache around the Gloas fork.
- The patch ensures keys are only added to the global cache once activation epochs are finalized.
One of Ethereum's consensus clients has merged a fix for a validator pubkey cache poisoning attack, according to a pull request on GitHub. The patch addresses a vulnerability around the Gloas fork, which could result in some nodes rejecting valid signatures due to a bug in the global pubkey cache.
Gloas is the consensus layer part of the upcoming Glamsterdam upgrade.
Three deposits, two chains
The issue lies in a mechanism where the client stores validator public keys and their indexes in a global cache. Technically, deposits that are already finalized should give the same validators on every chain, though it is a different story at the fork boundary.
The attacker needs 3 pending deposits just before the fork. The first one is a large top-up for an existing validator. The other two are new keys: A with builder credentials and B with regular validator credentials.
On the canonical chain, the top-up consumes the balance churn, so A and B are processed after the fork. A becomes a builder, and B takes the next validator index.
On the attacker's side chain, the topped-up validator gets slashed before the fork, and its deposit is skipped. This leads to A being processed earlier, essentially taking B's index.
The buggy cache assumed both chains would produce the same validators and imported A's key globally.
At the fork, affected nodes would reject all valid signatures from B on the canonical chain and fork off.
Realistically, the attack is somewhat complicated, as it needs a slashing at the right moment and a side chain, so it's unlikely to happen by accident.
What does the fix change
According to the PR, the fix is to only add keys to the global pubkey cache once their activation eligibility epoch is finalized.
A new HeadPubkeys structure also combines keys from the head state and the global cache, so nodes don't miss keys if the chain finalizes without new blocks.
Whether other consensus clients had a similar issue is yet to be confirmed. In other words, the closer Glamsterdam gets, the more edge cases around the fork boundary developers have to catch.
Source: u.today
Share the article:
Trending News & Crypto World
Latest Crypto News
Top Trending Cryptocurrencies on The Market
Current Price
$7.670
Market Cap
$5.9B 10.42%
24h Volume
$302.1M
Supplies
1.0B / 1.0B
Current Price
$48.830
Market Cap
$5.8B 11.64%
24h Volume
$471.0M
Supplies
293.1M / 400.0M
Current Price
$296.22
Market Cap
$5.6B 21.21%
24h Volume
$44.5M
Supplies
18.8M / ∞
Current Price
$1.001
Market Cap
$5.0B -0.04%
24h Volume
$288.4K
Supplies
10.0B / 10.0B
Current Price
$0.1303
Market Cap
$4.9B 11.81%
24h Volume
$423.7M
Supplies
45.0B / 45.0B
Current Price
$0.9993
Market Cap
$4.8B 0.05%
24h Volume
$24.7M
Supplies
4.6B / ∞
Current Price
$0.9999
Market Cap
$4.2B -0.30%
24h Volume
$159.5M
Supplies
4.2B / ∞
Current Price
$3.020
Market Cap
$4.0B 17.81%
24h Volume
$700.4M
Supplies
1.3B / ∞
Current Price
$178.52
Market Cap
$3.6B 18.84%
24h Volume
$170.4M
Supplies
20.1M / 21.0M
Current Price
$3,761.53
Market Cap
$3.0B 0.38%
24h Volume
$116.9M
Supplies
827.4K / ∞
Current Price
$0.07256
Market Cap
$2.9B 15.64%
24h Volume
$13.3M
Supplies
40.2B / ∞
Current Price
$1.000
Market Cap
$2.8B -0.42%
24h Volume
$366.8M
Supplies
2.8B / ∞