Skip to content
DoS Audit finding Intermediate

Malicious peer can cause a syncing node to panic during blocksync

The project pinned a vulnerable version of CometBFT (v0.38.6) that is susceptible to a known denial-of-service issue. An attacker could cause a syncing node to panic during blocksync, potentially disrupting the network.

Lambda Follow

Originally disclosed on Sherlock

Source: https://github.com/sherlock-audit/2024-06-allora-judging/issues/28

Found by

Lambda

Summary

The system uses a vulnerable CometBFT version. An attacker can abuse this to cause a panic during blocksync.

Vulnerability Detail

In go.mod, the CometBFT version is pinned to v0.38.6. This version is vulnerable to GO-2024-2951. More details about the vulnerability are available here.

Impact

The vulnerability allows an attacker to DoS the network by causing panics in all nodes during blocksync.

Code Snippet

https://github.com/sherlock-audit/2024-06-allora/blob/main/allora-chain/cmd/allorad/main.go#L15

The vulnerability itself is in CometBFT, but the following calls in Allora call into vulnerable code:

   #1: cmd/allorad/main.go:15:26: allorad.main calls cmd.Execute, which eventually calls blocksync.BlockPool.OnStart
   #2: cmd/allorad/main.go:15:26: allorad.main calls cmd.Execute, which eventually calls blocksync.NewReactor
   #3: cmd/allorad/main.go:15:26: allorad.main calls cmd.Execute, which eventually calls blocksync.Reactor.OnStart
   #4: cmd/allorad/main.go:15:26: allorad.main calls cmd.Execute, which eventually calls blocksync.Reactor.Receive
   #5: cmd/allorad/main.go:15:26: allorad.main calls cmd.Execute, which eventually calls blocksync.Reactor.SwitchToBlockSync

Tool used

Manual Review

Recommendation

Update CometBFT to v0.38.8.

Discussion

sherlock-admin2

The protocol team fixed this issue in the following PRs/commits: https://github.com/allora-network/allora-chain/pull/457

The original report as published on Sherlock, by Lambda. Images and videos are our own copies; raw HTML is shown as text. View it on Sherlock.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The project used an outdated version of CometBFT (v0.38.6) that contains a known vulnerability (GO-2024-2951).

Impact

An attacker could cause a denial of service by triggering panics in all nodes during blocksync.

What the attacker needed

Malicious peer in the network

The fix

The issue was fixed by updating CometBFT to v0.38.8.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

CometBFT is software that helps blockchain nodes agree on data. A known bug in an old version lets a malicious participant crash nodes while they are catching up with the network. The project simply needed to update to a newer, fixed version.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

More by Lambda

View all

64 more disclosed reports, best first.

More from Allora

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.