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.
- 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
Then :
I noticed upon this that there was a clear pattern, so I tried to search more information on Shodan exposing information :
- The url for the search was : https://www.shodan.io/search?query=%22Address%22+Content-Encoding%3A+identity
- I obtained servers
- The X-Your-Address-Is was clearly exposed indicating IPS.

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.
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
- Visit the relay directly without using Tor.
- Observe the real IP address in the X-Your-Address-Is header.
- Visit the same relay through Tor.
- 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.