News for hackers. Stuff that matters.
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.