Improper error handling in async cryptographic operations crashes process
A C++ method used in asynchronous cryptographic operations could call an exception-throwing function from a background thread based on user-supplied input, which crashes the Node.js process. An attacker could potentially cause a remote denial of service by supplying crafted input to a cryptographic operation.
- Triaged in 8 hours
- Fixed in 6 months
- Disclosed after 6 months
Summary by the program
The C++ method SignTraits::DeriveBits() may incorrectly call ThrowException() based on user-supplied inputs when executing in a background thread, crashing the Node.js process. Such cryptographic operations are commonly applied to untrusted inputs. Thus, this mechanism potentially allows an adversary to remotely crash a Node.js runtime.
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, an exception is thrown from a background thread in the C++ cryptographic code instead of being handled safely, and that unhandled exception terminates the Node.js process.
What the attacker needed
Ability to supply input to a crypto operation
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.
Node.js is a program that runs JavaScript, often on servers. Some of its built-in security features, like encryption, run in the background so they do not freeze the main program. This report says that if a background encryption task receives bad input, it can trigger an error in a way that kills the whole program, so someone sending that bad input could take the service down.
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.