>> The problem is that when you enable TIFF support, it is enabled for
>> both reading and writing files [1]. So for your use case (writing TIFF
>> files) it may not be having any security impact, but it automatically
>> enables support for reading TIFF files -- which is very dangerous,
>> considering that wkhtmltopdf can be used to convert any random URL on
>> the web, which can have a reference to a malicious TIFF file.
>
>
> I see. Well, I appreciate the concern, but this seems more like something
> that should at most be disclosed as a disclaimer when using wkhtmltopdf with
> TIFF rather than a block on its use. For us, the HTML being converted is
> under our control and so there is no concern for malicious HTML. After all,
> there have been bugs in PDF readers, Word, Linux (openssl, bash recently),
> spam/virus emails, web browsers, and of course Windows itself, all of which
> are attack vectors. The same is true for all web forms and HTML editors --
> users "can" create malicious content, link to malicious content, XSS,
> phishing, but it's up to the programmers to "clean" the input when allowing
> outside data to be used, so it's really no different than anything else.
That's a very wrong argument -- why should you enable features which
are known to have security vulnerabilities? By that logic, I should
not have released 0.12.1.1 and 0.12.1.2 for Windows -- a disclaimer to
the effect that accessing sites via SSL would be possibly dangerous
would have sufficed. You cannot restrict the uses to which a tool can
be put to use for the convenience of the developers -- it goes against
the very spirit of free software.
> I'd be open to requiring a runtime option/flag to enable TIFF output if that
> would help, but perhaps that's not easily done to tell QT to use or not use
> it.
Nope, not possible.
>> I'm open to enabling TIFF support on Linux (where distributions do
>> issue security updates) but not for Windows (where you have to compile
>> your own libtiff). I'm not sure whether OS X has libtiff built-in but
>> I highly doubt it (as even libpng is not built in) -- so the same
>> reasoning that goes for Windows applies here.
>
> Well, this would work for us since our particular need now is for TIFF on
> Linux only. That would be much appreciated!
I'll see if that can be done for a future 0.12.2 build.
> I don't suppose QT has a way to tell it to only allow writing TIFFs and not
> reading them. We just want to create TIFFs.
Nope, not for the built in image formats.