Polygon称Austin和Kyoto硬分叉修复了PoS网络中的安全问题
要点速览
- •Kyoto 将 Heimdall 升级至 v0.11.0,并在交易进入共识前拦截超过嵌套阈值的交易。
- •Austin 通过为 state-sync gas 设定严格的每区块上限,并从 wire format 中移除 TxDependency 字段来修补 Bor。
- •Polygon 表示,主网上没有人利用这些漏洞,且修复工作在硬分叉激活前已完成。
- •所有节点都必须运行 Bor v2.10.0,验证者和全节点必须使用 Heimdall 0.11.0,否则将偏离 canonical chain。
- •Polygon 表示这些升级只需二进制更新,不涉及 state migration、genesis change 或完整重新同步。

Polygon Labs悄然发布了两个硬分叉,修复了其权益证明(PoS)网络中的多项安全问题。
这条 layer-2 网络后来在论坛帖子中披露了相关细节。所有节点运营者都必须升级,否则将被排除在网络共识之外。
Austin fork stops nodes from sending the TxDependency field
最严重的漏洞出现在 Heimdall,这是一款负责协调 Polygon 验证者的软件。
根据 Parvez03 在论坛上的帖子,Heimdall 会将每笔交易的内容封装到一个名为 google.protobuf.Any 的包装器中。
一个包装器可以套在另一个包装器外面,就像箱子里还能再装箱子一样。不过在这里,这种嵌套层数没有上限。
攻击者几乎可以零成本构造一笔包含这些层级的交易,从而迫使验证者耗费算力去拆解它。
Polygon 将这一缺陷描述为“无需许可即可迫使整个验证者集合进行昂贵且相关联工作的方式”。Kyoto hard fork 将 Heimdall 升级至 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 ),” 该帖子表示。
“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 ),” 该帖子表示。
Polygon 会检查两次:
当交易到达时。
当验证者构建区块时。
第二个硬分叉名为 Austin,针对的是 Bor,也就是 Polygon 的执行客户端。它修补了两条拒绝服务路径。
其中一条涉及 state-sync events,即承载从 L1 到 L2 桥接存款的流程。这些事件会像普通交易一样执行合约代码和 precompiles。不过,每个区块消耗的 gas 数量此前并未设上限。
Austin fork 为 state-sync gas 增加了严格的每区块上限。
Polygon 也从未限制 TxDependency 字段的大小。验证者可以向其中填入大量数据,使读取该区块的每个节点崩溃,而该区块的其他部分看起来并无异常。
Austin 直接将该字段从 wire format 中移除。
Kyoto fork activated at Heimdall height 51,533,000
Polygon 表示,这些漏洞在主网中没有被利用,并且在硬分叉上线前都已修复。
Austin fork 于 Bor block 91,949,700 在主网上激活,Kyoto fork 则于 Heimdall height 51,533,000 激活。
所有节点都需要 Bor v2.10.0。验证者和全节点也需要 Heimdall 0.11.0 版本。运行旧软件的节点已经与 canonical chain 分叉。
这些修复只是简单的二进制升级,不需要 state migration、genesis change 或完整重新同步。
根据 CoinGecko,POL 交易价格为 $0.09,过去 24 小时内下跌约 9.3%。过去 30 天内,该代币上涨 25.8%,处于绿色区间。
7 月,Heimdall V2 mainnet 曾离线约一小时,Cryptopolitan 之前曾有相关报道。
最聪明的加密货币人士已经在阅读我们的 newsletter。想加入?Join them .