Polygon shipped two hard forks before telling anyone what they fixed

Source Cryptopolitan

Polygon Labs quietly released two hard forks that fixed a number of security issues in its proof-of-stake (POS) network.

The layer-2 network finally shared the details in a forum post. All node operators have to upgrade or they will be kicked out of the network consensus.

Austin fork stops nodes from sending the TxDependency field

The worst bug was in Heimdall, which is the software that coordinates Polygon validators.

Heimdall bundles the contents of each transaction inside a wrapper called, google.protobuf.Any, according to a forum post by Parvez03.

A wrapper can sit inside another, just like how boxes can be packed inside other boxes. However, in this analogy, there’s no cap on how many layers deep wrappers could go.

An attacker could create a single transaction stacked with those layers for almost no cost. This makes validators waste computing power to unpack it.

Polygon described the flaw as “a permissionless way to force costly, correlated work across the whole validator set.”

The Kyoto hard fork upgraded the Heimdall software to v0.11.0.

“Kyoto adds a byte-level pre-scan that rejects a transaction once its nesting passes a threshold, enforced identically at mempool admission (CheckTx) and on the consensus path (ProcessProposal),” the post said.

Polygon checks two times:

  • When a transaction arrives.
  • When validators build the block.

The second hard fork, named Austin, focused on Bor, Polygon’s execution client. It patched two denial-of-service paths.

One was state-sync events, the process that carries L1-to-L2 bridge deposits. Those events execute contract code and precompiles, just like a normal transaction would do. However, the amount of gas burned was not capped per block.

The Austin fork adds a hard per-block limit on state-sync gas.

Polygon never capped the size of the TxDependency field.

A validator could load it with huge data to crash every node that read the block. There’s nothing else about that block that looked wrong.

Austin removes the field from the wire format entirely.

Nested protobuf fields let one cheap transaction force work on every Polygon validator.
Source: Polygon Forum.

Kyoto fork activated at Heimdall height 51,533,000

Polygon said that nobody exploited the bugs on the mainnet and that it fixed them all before the forks went live.

The Austin fork was activated on mainnet at Bor block 91,949,700 and the Kyoto fork at Heimdall height 51,533,000.

Every node requires Bor v2.10.0. Validators and full nodes also require Heimdall version 0.11.0. Nodes running older software have already forked from the canonical chain.

The fixes are simple binary upgrades, with no state migration, genesis change, or full resyncs needed.

POL traded at $0.09, down about 9.3% over the past 24 hours. The token is in the green zone, up 25.8% over the last 30 days, according to CoinGecko.

In July, the Heimdall V2 mainnet went offline for about an hour, according to a past Cryptopolitan report.

The smartest crypto minds already read our newsletter. Want in? Join them.

Disclaimer: For information purposes only. Past performance is not indicative of future results.
placeholder
Crude Oil Price Forecast: US-Iran Conflict Escalates Again, Will Brent Continue to Rise After Breaking $90? The US and Iran exchanged direct fire again after more than a month, rapidly escalating shipping risks in the Strait of Hormuz and pushing international oil prices back above $90 a barrel
Author  TradingKey
12 hours ago
The US and Iran exchanged direct fire again after more than a month, rapidly escalating shipping risks in the Strait of Hormuz and pushing international oil prices back above $90 a barrel
placeholder
Gold Price Forecast: Can Gold Keep Rising as Fed Rate Hike Expectations Heat Up and US-Iran Conflict Escalates? As of the Asian session on August 31, gold prices today (XAUUSD) extended last Friday's decline, briefly falling below $4,400 during intraday trading to hit a low of $4,396.36. Last Frida
Author  TradingKey
12 hours ago
As of the Asian session on August 31, gold prices today (XAUUSD) extended last Friday's decline, briefly falling below $4,400 during intraday trading to hit a low of $4,396.36. Last Frida
placeholder
Today’s Market Recap: Escalating US-Iran Conflict Pushes Oil Past $90, Warsh's Hawkish Remarks Boost Fed Rate-Hike Expectations, August Nonfarm Payrolls in Focus This WeekTracking Market TrendsTradingKey - On August 28, Eastern Time, the three major U.S. stock indexes closed lower across the board. Remarks by Federal Reserve Chairman Warsh at the Jackson Hole symposium
Author  TradingKey
20 hours ago
Tracking Market TrendsTradingKey - On August 28, Eastern Time, the three major U.S. stock indexes closed lower across the board. Remarks by Federal Reserve Chairman Warsh at the Jackson Hole symposium
placeholder
Bitcoin Price Prediction: Fed Chair Warsh Makes Jackson Hole Debut, Can BTC Break $83,000?Fed Chair Warsh Makes Jackson Hole Debut: Can Bitcoin Capitalize on Momentum to Break Strong $83,000 Resistance?On August 28, Bitcoin (BTC) price continued to fluctuate in a narrow range
Author  TradingKey
Aug 28, Fri
Fed Chair Warsh Makes Jackson Hole Debut: Can Bitcoin Capitalize on Momentum to Break Strong $83,000 Resistance?On August 28, Bitcoin (BTC) price continued to fluctuate in a narrow range
placeholder
Silver Reclaims $70 to Hit Nearly Two-Month High as Monthly Gain Exceeds 20% On August 28 Eastern Time, international silver prices continued their recent strong rally, with spot silver (XAGUSD) briefly breaking through the key $70 mark intraday, after approaching
Author  TradingKey
Aug 28, Fri
On August 28 Eastern Time, international silver prices continued their recent strong rally, with spot silver (XAGUSD) briefly breaking through the key $70 mark intraday, after approaching
goTop
quote