Re:Signal-desktop HTML tag injection advisory
by eximius on Tuesday May 15, 2018 @11:10AM
(#17074487)
Depends entirely on your application. Often you know, or are willing to constrain, the uses of an input.
Re:Signal-desktop HTML tag injection advisory
by Bartweiss on Tuesday May 15, 2018 @11:14AM
(#17074531)
And for encryption, absolutely should when in doubt.
The HTML tag attack on PGP works by mixing plain and cipher text, which is a thing people might genuinely want to do. But the safer clients still interfered with it by re-encrypting anything which didn't begin with a PGP signature, for the very good reason that they couldn't trust mixed messages. The clients which mildly constrained inputs prevented the entire attack vector, and it looks a very good tradeoff right now.
Input is never the issue, output is: you don't know how the input will be used/rendered, so it should be messed with as little as possible.