CodeWalrus

Development => Web => Topic started by: Yuki on November 01, 2016, 03:34:26 PM

Title: This topic should crash your browser [Google Chrome]
Post by: Yuki on November 01, 2016, 03:34:26 PM


You shouldn't see this.

https://twitter.com/juju2143/status/793475099450077184

EDIT: Broken image in Firefox. As far as I can see, it just does something weird and unexpected in Chrome.
Title: Re: This topic should crash your browser
Post by: novenary on November 01, 2016, 05:42:17 PM
Edited the db to get in here. Nice find. :P
Title: Re: This topic should crash your browser
Post by: aetios on November 01, 2016, 06:11:24 PM
Did you put the BADs on the end on purpose? :P
Title: Re: This topic should crash your browser
Post by: Yuki on November 01, 2016, 06:39:45 PM
Quote from: aeTIos on November 01, 2016, 06:11:24 PM
Did you put the BADs on the end on purpose? :P
Lol, no.

echo -n "GIF89a\xE7\x5E\x52\x56\x00\x00\x00\x2C\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00;" | base64
Title: Re: This topic should crash your browser
Post by: WholeWheatBagels on November 01, 2016, 08:29:41 PM
Weird. Is this related to the http://a/&&30%30 crash bug that existed a few years ago?
Title: Re: This topic should crash your browser [Google Chrome]
Post by: c4ooo on November 01, 2016, 09:56:14 PM
When to juju's link, chrome didn't crash :(

(http://data:image/gif;base64,R0lGODlh515SVgAAACwAAAAAAAAAAAABADs=)
Title: Re: This topic should crash your browser [Google Chrome]
Post by: p2 on November 01, 2016, 11:51:02 PM
the first time I opened the topic I got an errof for the page.
But after the first comment was posted I was able to open it without any problems
Title: Re: This topic should crash your browser
Post by: Yuki on November 02, 2016, 12:20:49 AM
Quote from: WholeWheatBagels on November 01, 2016, 08:29:41 PM
Weird. Is this related to the http://a/&&30%30 crash bug that existed a few years ago?
Dunno, maybe.

Quote from: p2 on November 01, 2016, 11:51:02 PM
the first time I opened the topic I got an errof for the page.
But after the first comment was posted I was able to open it without any problems
@Streetwalrus moved it to a link.
Title: Re: This topic should crash your browser
Post by: WholeWheatBagels on November 02, 2016, 12:31:42 AM
Now that I go back and watch the video about that URL I realize its different.

The video if anyone is interested
https://www.youtube.com/watch?v=0fw5Cyh21TE

Still cool though!
Title: Re: This topic should crash your browser
Post by: Yuki on November 02, 2016, 12:55:58 AM
Yeah, well, Chrome would crash the same, the tab insta-crashes as soon as you open it, but the problem is probably different. Maybe something with the GIF parser that chokes with so much pixels. As I tested, it works with 2^29 minus a few thousand pixels, but minus 2, nope. 2^29 and more, it won't bother render it.
Title: Re: This topic should crash your browser [Google Chrome]
Post by: kotu on November 02, 2016, 01:16:27 AM
firefox is neat

plus

it only uses one thread for all its windows/tabs which i like a lot  :thumbsup:
Title: Re: This topic should crash your browser [Google Chrome]
Post by: DarkestEx on November 02, 2016, 01:19:56 AM
Quote from: kotu on November 02, 2016, 01:16:27 AM
it only uses one thread for all its windows/tabs which i like a lot  :thumbsup:
This sucks so hard :(
I use firefox as my main browser but it is slow as hell :(
Title: Re: This topic should crash your browser
Post by: Dream of Omnimaga on November 02, 2016, 02:18:02 AM
YEah by using 1 thread I assume that if one tab crashes then you need to close the entire browser, right?

Also I don't think I'll click the URL in the first post, in case. :P
Title: Re: This topic should crash your browser
Post by: Yuki on November 02, 2016, 02:53:18 AM
Yeah, the whole point of a multi-process browser is that if one tab crashes, it won't crash the whole browser.
Title: Re: This topic should crash your browser [Google Chrome]
Post by: kotu on November 02, 2016, 03:20:29 AM
i know
Title: Re: This topic should crash your browser [Google Chrome]
Post by: gameblabla on November 02, 2016, 09:30:24 AM
Cool !
Somehow, that reminds me how it's possible to insert javascript code in gifs.
Do run this :
<html><head>
<img src="microbee.gif">
<script src="microbee.gif">
</script>
</head><body></body></html>


And download this pict.
(https://gameblabla.nl/img/microbee.gif)
It should work on Firefox.
Title: Re: This topic should crash your browser
Post by: Dream of Omnimaga on November 02, 2016, 03:59:27 PM
Wow, I didn't know this. Nice trickif it'scross-browser compatible. :)
Title: Re: This topic should crash your browser
Post by: novenary on November 02, 2016, 04:24:42 PM
This is how it works apparently. https://quadhead.de/storing-javascript-code-in-gif-images/
It shouldn't be harmful, considering you need the ability to inject a <script> tag into the page.
Title: Re: This topic should crash your browser
Post by: Dream of Omnimaga on November 02, 2016, 04:31:31 PM
Hm I see. I am curious about if it works in IE6 :P
Title: Re: This topic should crash your browser
Post by: Yuki on November 02, 2016, 05:19:17 PM
Oooh, nice.
Title: Re: This topic should crash your browser
Post by: ben_g on November 02, 2016, 05:23:45 PM
Quote from: DJ Omnimaga on November 02, 2016, 04:31:31 PM
Hm I see. I am curious about if it works in IE6 :P
IE6 doesn't even need such a gif to crash while loading a page :P
Title: Re: This topic should crash your browser
Post by: Dream of Omnimaga on December 30, 2016, 04:29:32 AM
Quote from: ben_g on November 02, 2016, 05:23:45 PM
Quote from: DJ Omnimaga on November 02, 2016, 04:31:31 PM
Hm I see. I am curious about if it works in IE6 :P
IE6 doesn't even need such a gif to crash while loading a page :P
IE6 crashed much less than the 2005-07 versions of Firefox, though :P (version 1.05 until the end of 2.x). I had to CTRL+Alt+Del every 5 minute or so when using Firefox.

There was also the bug that caused Firefox to use 6 times more resources than Crysis at maxed out settings when a link was broken from time to time. Firefox would just freeze and make the entire computer lag like crazy for about 30 seconds before the Page cannot be found/loaded screen appeared.

Anyway I clicked the first post link in Opera and the tab just said out of memory after freezing for a second. To be honest, I don't like data images because they're hard to share (since the URL is so long and often won't fit in the address bar)