71 points · by jlblatt · 11y ago · 40 comments
Can I ask why you took the approach of making a Github repo to post this rather than filing a Chromium bug?
The library I was using converted the port text into a 32 bit integer but the library didn't account for the possibility that someone supplied a port well over the 32 bit int limits. I was curious how many tools that use URLs would suffer similar fates and whether there might be any interesting security vulnerabilities.
Just goes to show, no matter how much crazy you've seen, there's likely crazier things hidden from you across the Internet ;)
[1]: http://commoncrawl.org/ [2]: https://twitter.com/Smerity/status/576339945041707008
Edit - followed links
Have added new crash options for users with NoScript (even if you're blocking 302s - try right clicking).
➜ ~ curl http://crashfirefox.com/
....................../´¯/)
....................,/¯../
.................../..../
............./´¯/'...'/´¯¯`·¸
........../'/.../..../......./¨¯\
........('(...´...´.... ¯~/'....')
.........\.................'...../
..........''...\.......... _.·´
............\..............(
..............\.............\...
SNITCHES GET STITCHES
....................../´¯/)
....................,/¯../
.................../..../
............./´¯/'...'/´¯¯`·¸
........../'/.../..../......./¨¯\
........('(...´...´.... ¯~/'....')
.........\.................'...../
..........''...\.......... _.·´
............\..............(
..............\.............\...
SNITCHES GET STITCHES
....................../´¯/)
....................,/¯../
.................../..../
............./´¯/'...'/´¯¯`·¸
........../'/.../..../......./¨¯\
........('(...´...´.... ¯~/'....')
.........\.................'...../
..........''...\.......... _.·´
............\..............(
..............\.............\...
SNITCHES GET STITCHES
➜ ~ curl http://crashfirefox.com | wc -l
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 3613k 0 3613k 0 0 2020k 0 --:--:-- 0:00:01 --:--:-- 2019k
120000 curl -i -H 'User-Agent: Firefox' crashfirefox.com | head -n 80 | cut -b 1-100But the reason I posted this is because it doesn't rely on Javascript to eat up memory- anyone can post a malformed/long link to a web forum and crash the thread/site for other Chrome users immediately, without clicking thru.
I was initially turned off from Chrome in its early versions because it seemed that tabs crashed much more easily, since it wasn't as big a deal to have a tab crash. Firefox crashes as a whole, so it has much more motivation to diligently make sure its subsystems are not prone to crashing on high-level documents / languages, however malformed they may be.
But as was posted below, it's still quite easy to lock up Firefox. So I applaud crashfirefox.com as well as this Chrome demonstration, they're needed to keep the balance between robustness and new features.
1) Most people don't have SSL enabled for most (if any) sites that are optional.
2) Most normal users are using the standard build for MacOS/Win, not the dev channel, and not Linux.
3) This requires no XSS or anything remotely tricky. Just a couple hundred bytes of HTML, and that's it.
4) Most web forum filters and formatting code (including Markdown) let this thru just fine.
Maybe I'm blowing it out of proportion, but if you wanted to be a jerk to a whole lot of people very easily, you probably could.
EDIT: Grammar
But a HK clone was crashed.
Its because HN defaults to https. Https rendering of a site seems to be unaffected by this bug.
https://code.google.com/p/chromium/issues/detail?id=472899
and fixed in:
https://chromium.googlesource.com/chromium/src/+/5922e15ca3d...
FWIW