Skip to content
DoS Disclosed report Intermediate

DoS for remote nodes using Slow Loris attack

The Monero daemon's RPC server was vulnerable to a Slow Loris attack, where many slow connections could exhaust resources and make the daemon unresponsive to legitimate RPC requests. An attacker could use a single machine to take down multiple remote nodes.

sobhraj_charles Follow

Originally disclosed on HackerOne

  • Triaged in 30 hours
  • Fixed in 31 hours
  • Disclosed after 5 months

Summary:

Using the slow loris attack it's possible to make the the daemon unresponsive to all RPC requests without at least a restart.

Description:

I used this node.js application (https://www.npmjs.com/package/sloww) to perform the attack on one of my remote nodes, but any other implementation of the attack should also work fine.

Releases Affected:

  • Ubuntu 16.04 x64 - Monero v0.12.3.0 was affected so all releases before should be affected as well.

Steps To Reproduce:

  1. Start the daemon with standard remote node parameters like ./monerod --rpc-bind-ip 0.0.0.0 --confirm-external-bind
  2. Start the slow loris attack, I tested with 1000 sockets opened and 700 milliseconds as rate at which packets should be sent.
  3. Try sending a normal RPC command like curl -X POST http://IP:18089/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"get_block_count"}' -H 'Content-Type: application/json' there will not be any response from the RPC a few seconds after the attack was started.

Impact

An attacker could target a large number of remote nodes for example the ones under https://moneroworld.com/, with just a single PC.

The original report as published on HackerOne, by sobhraj_charles. 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

Impact

An attacker could make remote nodes unresponsive, potentially disrupting many nodes with a single PC.

What the attacker needed

Daemon exposed with RPC on [redacted]; attacker can reach RPC port

How it was found

  1. Start the daemon with standard remote node parameters.
  2. Launch a Slow Loris attack with many sockets and a slow packet rate.
  3. Attempt a normal RPC command and observe no response.

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 Slow Loris attack works by opening many connections to a server and sending data very slowly, so the server keeps each connection open and runs out of capacity to handle real requests. In this case, the Monero daemon's RPC interface could be overwhelmed this way, making it stop responding until restarted.

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