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.
- 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.
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.