News for hackers. Stuff that matters.
Re:GraphicsMagick and ImageMagick popen() shell vulnerabilit... by trollian on Sunday May 29, 2016 @06:56PM (#11798605)
Who on earth still uses ImageMagick? Security holes in it are old news. Like 15 year old news.
Re:GraphicsMagick and ImageMagick popen() shell vulnerabilit... by Mandatum on Sunday May 29, 2016 @07:22PM (#11798701)
Unfortunately when it comes to file conversion/creation even, ImageMagick is the best of a bad bunch. Graphics formats are notoriously bad, check out the famous PSD rant on it: http://web.archive.org/web/20090426230545/http://code.google...
Re:GraphicsMagick and ImageMagick popen() shell vulnerabilit... by voltagex_ on Sunday May 29, 2016 @07:43PM (#11798778)
Re:GraphicsMagick and ImageMagick popen() shell vulnerabilit... by Bromskloss on Sunday May 29, 2016 @09:46PM (#11799117)
Look! It's possible to highlight an entire block of code: https://github.com/zepouet/Xee-xCode-4.5/blob/master/XeePhot...

Maybe we should even link to a specific version of the file, to make sure that nothing breaks when it is updated or moved: https://github.com/zepouet/Xee-xCode-4.5/blob/83394493f51991...

Re:GraphicsMagick and ImageMagick popen() shell vulnerabilit... by Bromskloss on Sunday May 29, 2016 @06:59PM (#11798617)
What replacement would you suggest?
Re:GraphicsMagick and ImageMagick popen() shell vulnerabilit... by tobltobs on Sunday May 29, 2016 @07:41PM (#11798769)
Libvips. It also doesn't choke on large files and doesn't fill your tmp dir with GBs large tempfiles.
Re:GraphicsMagick and ImageMagick popen() shell vulnerabilit... by mappu on Sunday May 29, 2016 @07:09PM (#11798657)
Most basic image manipulation can be performed using only the standard library packages, if your language includes such (PHP's bundled `libgd2` fork / Golang's `image` package / Qt QImage+QPixMap ). For Python `pillow` is popular.
Re:GraphicsMagick and ImageMagick popen() shell vulnerabilit... by nkozyra on Sunday May 29, 2016 @10:14PM (#11799198)
I don't think ImageMagick is targeted at "basic" image manipulation, though.
Re:GraphicsMagick and ImageMagick popen() shell vulnerabilit... by harryf on Sunday May 29, 2016 @07:41PM (#11798772)
Python / Pillow (formerly PIL) could offer a real path here although there's a gap to Imagemagick on things like SVG
Re:GraphicsMagick and ImageMagick popen() shell vulnerabilit... by mschuster91 on Sunday May 29, 2016 @07:26PM (#11798715)
I believe php uses imagick under the hood, and even if it does not, I'd rather rely on imagick than on PHP code when accepting exotic formats.
Re:GraphicsMagick and ImageMagick popen() shell vulnerabilit... by voltagex_ on Sunday May 29, 2016 @07:48PM (#11798801)
From a security standpoint, wouldn't it be better to rely on PHP (first)? Are you more or less likely to get RCE from PHP or ImageMagick? I'd say PHP has had a lot more eyes on it, security wise.
Re:GraphicsMagick and ImageMagick popen() shell vulnerabilit... by cyphar on Monday May 30, 2016 @01:22AM (#11799705)
> From a security standpoint, wouldn't it be better to rely on PHP (first)?

You're joking, right? Popping PHP boxes is script kiddie 101. You might argue that "bad developers make insecure software" but when you're given a toolbox with nothing but oddly shaped hammers it's very hard to make a house.

Re:GraphicsMagick and ImageMagick popen() shell vulnerabilit... by lillesvin on Monday May 30, 2016 @05:13AM (#11800391)
That's rarely PHP failing but whatever framework/CMS is used. That's like saying C++ is inherently insecure because there exists a lot of software written in C++ with security holes.
Re:GraphicsMagick and ImageMagick popen() shell vulnerabilit... by cyphar on Monday May 30, 2016 @01:14PM (#11802171)
Did you read the second sentence I wrote? Just because you can write safe code in a language that tries to make you footgun at every turn, doesn't mean that language is a good language. Pick a language that doesn't suffer from crippling security issues (which, sure, you can workaround -- but why use a language that requires workarounds to get security?).
Re:GraphicsMagick and ImageMagick popen() shell vulnerabilit... by ndj7 on Friday June 03, 2016 @04:47PM (#11833164)
We started Imageflow (https://www.imageflow.io ) in C to design the C ABI for interop with all the host languages, but we're swapping out components for Rust every time it's possible/practical.
Re:GraphicsMagick and ImageMagick popen() shell vulnerabilit... by tracker1 on Monday May 30, 2016 @03:36AM (#11800095)
Or, when saving to file for imagemagic, have it be a random temp name, with the correct file extension, read in the result, and only serve it as the original name when downloaded, if it fits the use case.
Re:GraphicsMagick and ImageMagick popen() shell vulnerabilit... by 0x0 on Sunday May 29, 2016 @08:56PM (#11799001)
PHP does not use imagick, but a (forked) libgd2 by default (some distros patch php to use the distro libgd). Imagick is only available if you install a C PHP extension providing an imagick interface.
Re:GraphicsMagick and ImageMagick popen() shell vulnerabilit... by kristopolous on Sunday May 29, 2016 @07:19PM (#11798692)
True, and most people. Despite the issues, it's still really versatile tech.