Skip to content
Open redirect Disclosed report Beginner

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.

d3f4u17 Follow

Originally disclosed on HackerOne

  • 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

ss1.PNG
ss1.PNG From the original on HackerOne

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.

ss2.PNG
ss2.PNG From the original on HackerOne

##Tested on

  • Brave Version 1.12.114 Chromium: 84.0.4147.135 (Windows)

Steps To Reproduce:

Please refer below video poc for better understanding.

bandicam_2020-08-27_13-51-10-941.mp4 From the original on HackerOne

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.

The original report as published on HackerOne, by d3f4u17. 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

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

  1. Open the proof-of-concept page with a torrent file parameter.
  2. Click the button to start the torrent.
  3. Once the file is downloading, try to open the file.
  4. 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.

More by d3f4u17

View all

8 more disclosed reports, best first.

More from Brave Software

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Open redirect

The lesson behind this report.

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.