Closed Bug 1808010 Opened 3 years ago Closed 2 years ago

Longer Title Name - Download Crash

Categories

(Toolkit :: Downloads API, defect)

Desktop
All
defect

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: ameenbasha111, Unassigned, NeedInfo)

References

Details

(Keywords: reporter-external, Whiteboard: [reporter-external] [client-bounty-form] [verif?])

Attachments

(3 files)

Attached file attack.html

Hi Team. While testing Mozilla Firefox Download Feature on Windows platform Found a wierd phase in which the same is not happing in any other browsers (Chrome, edge) etc

While Saving a Webpage the title will be used as a default suggested name for save, While saving them if the File name is long than the windows suggested 256 the download is crashed and Failed. (This could be further used in some Browser Crash or Memory Corruption)

But the same thing is not possible in Chrome and Edge(These case was handled). so this is not specific to Chromium

I have attached the sample Html used for the POC

Once download failed the windows explorer was also become not responding for some time

Steps to reproduce

  1. Open the POC Html File
  2. Save the page by pressing Ctrl + S
  3. Save with suggested Name.

Now Download will fail and Windows Explorer will become slower

FYI: Tested in Latest version of firefox, Windows 11

Flags: sec-bounty?
Attached image Firefox download Failed
Attached image Chrome Download Success
Component: Security → Downloads API
Product: Firefox → Toolkit

(In reply to Ameen from comment #0)

While Saving a Webpage the title will be used as a default suggested name for save, While saving them if the File name is long than the windows suggested 256 the download is crashed and Failed.

What does "crashed and failed" mean here? Does the browser process actually crash? Your screenshot suggests not; it is just the download that fails, right?

Flags: needinfo?(ameenbasha111)
OS: Unspecified → All
Hardware: Unspecified → Desktop
See Also: → 1806730

(In reply to Ameen from comment #0)

Created attachment 9310224 [details]
attack.html

Steps to reproduce

  1. Open the POC Html File
  2. Save the page by pressing Ctrl + S
  3. Save with suggested Name.

FWIW, if I try these steps with the attached file the suggested file is "attack.html", not a very long string, and as a result there is no issue. Tested on 109 beta. It would be useful if you could clarify exactly what version you're using, and/or if perhaps bugzilla is breaking this testcase, in which case perhaps you can link to a web-based page that reproduces the issue?

I have installed the latest version on 2 weeks back in windows

FYI: if the POC is not working for you, you can replace the title tag with some large text

Flags: needinfo?(ameenbasha111)

(In reply to Ameen from comment #5)

I have installed the latest version on 2 weeks back in windows

FYI: if the POC is not working for you, you can replace the title tag with some large text

You haven't really answered either of my questions. I'll restate them a bit for clarity:

(In reply to :Gijs (he/him) from comment #3)

What does "crashed and failed" mean here? Does the browser process actually crash? Your screenshot suggests not; it is just the download that fails, right?

(In reply to :Gijs (he/him) from comment #4)

FWIW, if I try these steps with the attached file the suggested file is "attack.html", not a very long string, and as a result there is no issue. Tested on 109 beta. It would be useful if you could clarify exactly what version you're using, and/or if perhaps bugzilla is breaking this testcase by providing a Content-Disposition filename header, in which case perhaps you can link to a web-based page that reproduces the issue?

Flags: needinfo?(ameenbasha111)

It's been 1 month since the needinfo request, so tentatively closing this out. We can reopen if clearer steps to reproduce the issue are made available.

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Resolution: --- → INCOMPLETE
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: