Skip to content
Crypto Write-up Advanced

How malicious Tor relays are exploiting users in 2020

A single malicious actor ran over 23% of the Tor network's exit capacity, using those relays to perform person-in-the-middle attacks that stripped HTTPS and rewrote bitcoin addresses in unencrypted HTTP traffic. The attacker could redirect cryptocurrency transactions to their own wallets and potentially manipulate other plain HTTP traffic.

medium.com

Published on medium.com

In December 2019 I wrote about The Growing Problem of Malicious Relays on the Tor Network with the motivation to rise awareness and to improve the situation over time. Unfortunately instead of improving, things have become even worse, specifically when it comes to malicious Tor exit relay activity.

nusenu, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the Tor network's lack of requirements for large relay operators, combined with websites not using HSTS preloading or HTTPS, allowed a single entity to control a large fraction of exit capacity and perform SSL stripping.

Impact

The attacker could redirect cryptocurrency transactions to their own wallets and potentially manipulate other unencrypted HTTP traffic; the full extent of their operations is unknown, and the attack is not specific to Tor Browser.

What the attacker needed

User connects via Tor; exit relay controlled by attacker; website uses HTTP without HSTS

The fix

The report suggests requiring verified email addresses for exit/guard flags and physical address verification for large operators, plus HSTS preloading by websites; it does not state that these were implemented.

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 write-up has not been written yet. The Original tab links to the source.

Tor is a privacy network that routes your internet traffic through three volunteer-run computers called relays. The last relay, the exit, sees your traffic as it leaves Tor. If a website uses unencrypted HTTP, the exit relay can read and change what you send. This report describes an attacker who ran many exit relays and used them to alter bitcoin addresses on unencrypted pages, so payments went to the attacker instead of the intended recipient.

What is Crypto?

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.

Similar reports

View all

Same bug class and techniques, clearest first.

Cryptographic weaknesses

The lesson behind this report.

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.