Closed Bug 278121 Opened 20 years ago Closed 17 years ago

crash clicking data: URL containing program [@ js_AllocGCThing]

Categories

(Core Graveyard :: File Handling, defect)

x86
Windows XP
defect
Not set
critical

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: hjtoi-bugzilla, Unassigned)

Details

(Keywords: crash)

Crash Data

Attachments

(1 file)

crash clicking data: URL containing program

This was reported by Michael Holzt to full-disclosure mailinglist. The original
poster mainly reported a security hole in Opera, but he had tested with Mozilla
and Firefox as well, which did not behave totally right either. Extracted the
Mozilla/Firefox parts here:

>The attack works by using an URL scheme like this:
> 
>   <a href="data:application/x-msdos-program;base64,
>     [base64 data]">Click me!</a>
> 
> I've made an example available which embeds putty.exe. The example is about
> 500 kByte HTML and is available on XXX. Please do
> not spread this URL outside of this list because of the traffic. Feel free
> to copy the example to your own webspace.
> 
> My tests with various windows based webbrowsers had the following results:
> 
>  - Mozilla 1.5.4 will try to open the "what should i do with that" 
> file dialog and then hangs. needs to get killed.
> 
>  - Firefox 1.0 allows saving of the data to harddisk
> (on linux it will also display much rubbish
> in the save dialog)

When I tested with Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5)
Gecko/20041217 I got a crash clicking the data URL (before even file handling
dialog - so I am not sure if this is the right component).

Talkback URL:
http://talkback-public.mozilla.org/talkback/fastfind.jsp?search=2&type=iid&id=3026440#id

I'll attach the testcase as well.
gzipped HTML file (it was too big otherwise). Save, gunzip, open.
Sounds like part of the problem is attempting to show the whole data: url in the
dialog... I thought we had existing bugs on that, though.
Whiteboard: DUPEME
we should probably use crop="middle" or something on the URL
I could not reproduce this bug under Mozilla/5.0 (Windows; U; Windows NT 5.1;
en-US; rv:1.8a6) Gecko/20050112 Firefox/1.0.
Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8a6) Gecko/20050114
Firefox/1.0+

No crash for me; the file saved as 305m7cpe-1 .

I did get this message:
WARNING: Write failed (non-fatal), file
../../../../src/xpcom/io/nsInputStreamTee.cpp, line 84

(In reply to comment #2)
> Sounds like part of the problem is attempting to show the whole data: url in
> the
> dialog... I thought we had existing bugs on that, though.

I'm not finding a dup. 
shouldn't this be closed, given comment 3 and comment 4?

=> WFM per comment 4 and comment 5
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → WORKSFORME
Crash Signature: [@ js_AllocGCThing]
Whiteboard: DUPEME
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: