Skip to content
DoS Disclosed report Intermediate CVE-2022-31121

Remote denial of service in HyperLedger Fabric

An orderer node in HyperLedger Fabric crashed when it received a consensus message whose inner message was empty, because the code tried to determine the type of a nil pointer and panicked. An attacker able to send such a message to an orderer could cause a remote denial of service.

zqgnd Follow

Originally disclosed on HackerOne

  • Triaged in 15 days
  • Fixed in 20 days
  • Paid in 16 days
  • Disclosed after 20 days

Summary by the program

This issue was caused by a missing check of nil.

An orderer to orderer consensus message that contains an empty inner message crashes the node because it attempts to figure out its type and the mere action of determining the type of a nil pointer, causes a panic.

Thank you to Haosheng Wang of OPPO ZIWU Security Lab for this disclosure.

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

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

Likely a missing nil check before the code inspected the type of the inner consensus message, causing a panic on a nil pointer.

Impact

An attacker who can send an orderer-to-orderer consensus message with an empty inner message could crash the node, causing a remote denial of service.

What the attacker needed

Ability to send orderer consensus messages

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.

A program sometimes holds a reference to 'nothing' (called nil). If it tries to inspect that nothing as if it were a real object, it crashes. Here a node crashed when it received a message with an empty inside, so someone sending such a message could knock the node offline.

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 zqgnd

View all

2 more disclosed reports, best first.

More from Linux Foundation Decentralized Trust

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.