Skip to content
Info disclosure Disclosed report Beginner

Restricted RPC leaks alternative block hashes via /get_alt_blocks_hashes

The restricted RPC mode of Monero was meant to hide alternative block metadata, but the get_alt_blocks_hashes endpoint still returned the list of alternative block hashes. A client on the restricted RPC port could therefore learn whether alternative blocks existed and obtain their exact hashes.

belair Follow

Originally disclosed on HackerOne

  • Triaged in 4 hours
  • Fixed in 54 days
  • Disclosed after 2 months

Summary by the program

The /get_alt_blocks_hashes RPC endpoint was restricted to prevent unintended access to alternative block hashes. The endpoint had previously been unrestricted. The issue was assessed as low severity due to the limited impact and the availability of similar information through other mechanisms.

Summary by the researcher

Monero's restricted RPC mode is designed to limit the information exposed to untrusted clients. The get_info endpoint correctly hides alternative block metadata by returning alt_blocks_count as 0.

However, the separate get_alt_blocks_hashes endpoint was not restricted in the same way and continued to return the list of alternative block hashes.

This inconsistency allowed clients connected to the restricted RPC port to learn whether alternative blocks existed and retrieve their exact hashes.

The original report as published on HackerOne, by belair. 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 restriction was applied to the get_info endpoint but not to the separate get_alt_blocks_hashes endpoint, leaving an inconsistent access policy across RPC methods.

Impact

A client connected to the restricted RPC port could learn whether alternative blocks existed and retrieve their exact hashes, though the impact was assessed as low because similar information is available through other mechanisms.

What the attacker needed

Access to the restricted RPC port

The fix

The get_alt_blocks_hashes endpoint was restricted so that restricted RPC mode no longer exposes alternative block hashes.

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 node in a blockchain network can sometimes hold more than one candidate version of the chain, and the extra blocks are called alternative blocks. Monero offers a limited RPC mode for untrusted clients, which is supposed to hide that kind of internal detail. One endpoint forgot to apply the same restriction, so a client could still see those extra block hashes.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by belair

View all

1 more disclosed report, 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.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.