Redirecting users to malicious torrent-files/websites using WebTorrent
A link used by WebTorrent to open a downloaded file lacked protection against reverse tabnabbing, so the page that opened it could navigate the original tab elsewhere. An attacker could use this to send the victim to a malicious torrent file or website.
- Triaged in 14 hours
- Fixed in 36 hours
- Paid in 33 hours
- Disclosed after 22 months
Summary:
An attacker can redirect a user to a malicious torrent file/website using a reverse tab-nabbbing flaw in WebTorrent.
##Description
WebTorrent allows user to open files after download of while they are being downloaded directly from the browser

An attacker can use this to redirect users to malicious websites and torrent files as the anchor tag allowing to open up the file is not prone to reverse tabnabbing attacks.

##Tested on
- Brave Version 1.12.114 Chromium: 84.0.4147.135 (Windows)
Steps To Reproduce:
- Visit the POC link https://php-demo-app-shibli.cfapps.io/brave/poc-bave.php?x=.torrent
- Click on "Start Torrent"
- Once the file starts downloading, try opening up the file
- You will see the previous tab will navigate to a different torrent file or website.
Please refer below video poc for better understanding.
Impact
- An attacker can trick a victim to download a malicious file instead of the original file.
- An attacker can redirect a user to a malicious webpage for other harmful attacks.
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
Impact
An attacker could trick a victim into downloading a malicious file instead of the original, or redirect them to a malicious webpage for further attacks.
What the attacker needed
Victim uses WebTorrent in a browser; victim clicks the attacker's link; victim opens the downloaded file
How it was found
- Open the proof-of-concept page with a torrent file parameter.
- Click the button to start the torrent.
- Once the file is downloading, try to open the file.
- Observe the previous tab navigating to a different torrent file or website.
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 a web page opens another page in a new tab, the new page can sometimes reach back and change the tab that opened it. This is called reverse tabnabbing. Here, the link that opens a downloaded torrent file did not stop that, so the new page could redirect the user's original tab to an attacker's site or file.
What is Open redirect?
A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.