Skip to content
DoS Disclosed report Intermediate

ZMQ get_output_distribution duplicate amount DoS

The ZMQ get_output_distribution RPC method accepted an unbounded amounts array and returned a separate distribution for each entry, so repeating the same amount caused the daemon to duplicate the full RingCT output distribution many times. A small request could therefore expand into a very large response and exhaust the daemon's memory.

helping_bro Follow

Originally disclosed on HackerOne

  • Triaged in 5 hours
  • Fixed in 24 days
  • Disclosed after 5 months

Summary by the program

ZMQ get_output_distribution RPC is vulnerable to memory exhaustion DoS.

The method accepts an unbounded amounts array and returns a separate distribution for each entry. Repeating amount 0 causes the daemon to duplicate the full RingCT output distribution many times, allowing a small request to expand into a very large response.

The issue is also reachable with --restricted-zmq-rpc, because ZMQ lacks the stricter validation applied by restricted HTTP RPC.

Resolved in https://github.com/monero-project/monero/pull/10419 and v0.18.5.0.

The original report as published on HackerOne, by helping_bro. 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 the RPC handler did not cap the number of entries in the amounts array or deduplicate repeated amounts before building a distribution for each one.

Impact

A small request could exhaust the daemon's memory, and the issue was reachable even with restricted ZMQ RPC enabled because ZMQ lacked the stricter validation used by restricted HTTP RPC.

What the attacker needed

Network access to the ZMQ RPC port

The fix

The issue was fixed in a pull request and released in v0.18.5.0.

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 daemon is a background program that answers requests from other software. This one had a request that let the caller ask for the same large chunk of data over and over in a single message, so a tiny request could make the server build an enormous reply and run out of memory. That is a denial of service: the service stops working for everyone.

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 helping_bro

View all

2 more disclosed reports, best first.

More from Monero

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.