Memory leak that enables remote Denial of Service against applications processing TLS client certificates
A memory leak in Node.js's OpenSSL integration occurs when converting X.509 certificate fields to UTF-8 without freeing the allocated buffer. Remote clients could trigger steady memory growth through repeated TLS connections, potentially leading to resource exhaustion and denial of service.
Originally disclosed on HackerOne
- Triaged in 33 days
- Fixed in 4 months
- Disclosed after 5 months
Summary by the program
A memory leak in Node.js’s OpenSSL integration occurs when converting X.509 certificate fields to UTF-8 without freeing the allocated buffer. When applications call socket.getPeerCertificate(true), each certificate field leaks memory, allowing remote clients to trigger steady memory growth through repeated TLS connections. Over time this can lead to resource exhaustion and denial of service.
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 the code converts X.509 certificate fields to UTF-8 but does not free the allocated buffer afterwards.
Impact
Repeated TLS connections could cause steady memory growth, leading to resource exhaustion and denial of service.
What the attacker needed
Application calls getPeerCertificate(true); attacker can make repeated TLS connections
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.
When a program asks for details about a TLS client certificate, it converts some text fields into a common encoding called UTF-8. The code forgets to release the temporary memory it used for that conversion, so each request leaves a little memory behind. If many connections are made, the program's memory use keeps growing and it may eventually run out and stop working.
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.