Skip to content
Info disclosure Disclosed report Intermediate

Expose relay IP in the debug (The source is different from the rendering)

The debug view of a Tor Browser page showed the relay's IP address in the page source while the rendered text showed the client's IP. An attacker could change the client IP to learn the relay IP.

rbcafe Follow

Originally disclosed on HackerOne

  • Disclosed after 4 months

Greetings,

I observed that it was possible to expose the ip of a relay by doing this :

Poc :

1.png
1.png From the original on HackerOne
  • Open Tor Browser debug
  • You must observe this visual
2.png
2.png From the original on HackerOne

Note :

You observe that between the debug and the main window there is no relation between the rendered text and the source code. The text discloses the IP of the client while the source discloses the IP of the relay.

Best regards

@Rbcafe

Impact

  • Get the IP of the relay by changing the ip of the client.

The original report as published on HackerOne, by rbcafe. 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 debug page rendered one value (client IP) but included a different value (relay IP) in the HTML source, possibly due to a mismatch in how the page was generated or cached.

Impact

An attacker could change their client IP to learn the IP address of a Tor relay.

What the attacker needed

Tor Browser; access to the debug view

How it was found

  1. Go to the specified Google sorry page.
  2. Observe the visual output.
  3. Open Tor Browser debug.
  4. Observe the visual output.

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 you visit a website through Tor, your traffic goes through several relays. This report says that a special debug page in Tor Browser showed the relay's IP address in the page source, even though the visible text showed the client's IP. By changing their own IP, someone could use this to find out the relay's IP address.

What is Info disclosure?

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

More by rbcafe

View all

11 more disclosed reports, best first.

More from Tor

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.