HexBrain

Brave Software · Report #968328

Redirecting users to malicious torrent-files/websites using WebTorrent

Validstatus
mediumseverity
14upvotes
30 Jun 2022disclosed

How it was found

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

{F965466}

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.

{F965467}

Tested on

  • Brave Version 1.12.114 Chromium: 84.0.4147.135 (Windows)

Steps To Reproduce:

Please refer below video poc for better understanding.

{F965473}

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.

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original