Skip to content
Info disclosure Disclosed report Beginner

Expose user IP if TOR crashs

A Tor relay returned an X-Your-Address-Is header that disclosed the client's real IP address when the request did not arrive through Tor. An attacker or observer could use this to learn a user's true IP if the Tor session failed or crashed unexpectedly.

rbcafe Follow

Originally disclosed on HackerOne

  • Disclosed after 6 days

Greetings,

I have noticed that for unpredictable reason a TOR relay can exposes the IP of an user. I noticed this by going to the server http://195.176.3.24/ and getting information about the headers. I arrived to this header who is : "X-Your-Address-Is" .

How :

  • So I went to this tor-relay without being with TOR.
  • My IP was shown inside the X-Your-Address-Is
  • Then I go to this tor-relay with being with TOR.
  • A Tor IP was shown inside the X-Your-Address-Is
term.mov From the original on HackerOne

Then :

I noticed upon this that there was a clear pattern, so I tried to search more information on Shodan exposing information :

shodan.png
shodan.png From the original on HackerOne

Expectation :

The TOR relay should be able to distinguish a non-tor-ip from a tor-ip. It should not be possible to leak IP user information if the user is not clearly within a TOR session.

Best regards

@Rbcafe

Impact

  • Expose an IP if TOR crash for unexpected reason.
  • There is no security net if TOR crashes.

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 relay echoes the client's source address in a response header without checking whether the request actually came through Tor.

Impact

If the Tor session crashes or fails unexpectedly, the user's real IP could be exposed to the relay and to anyone observing the response.

What the attacker needed

Victim uses the relay; Tor session fails or crashes

The fix

The relay should not echo the client's address in a response header, or should only do so when the request is confirmed to arrive through Tor.

How it was found

  1. Visit the relay directly without using Tor.
  2. Observe the real IP address in the X-Your-Address-Is header.
  3. Visit the same relay through Tor.
  4. Observe a Tor exit IP in the same header instead.

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.

Tor is a network that hides your real IP address by routing traffic through relays. This relay added a header telling the visitor their own IP address, which is fine inside Tor but leaks the real address when the Tor connection fails. A header is extra information a web server sends back with a page.

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.