News for hackers. Stuff that matters.
Re:Another flaw in Signal desktop app leaks chats in plaintext by thaumasiotes on Thursday May 17, 2018 @09:35PM (#17097967)
> The issue was using innerHTML (or rather $.html()) with strings concatenated together from user input.

> The Signal devs thought $.html() does some kind of escaping

I mean, it does do a kind of escaping. If you assign javascript to innerHTML directly, it won't execute. jQuery specifically checks whether you're adding a script tag, and if so, it takes the extra step to execute it for you.

Re:Another flaw in Signal desktop app leaks chats in plaintext by derefr on Friday May 18, 2018 @12:27AM (#17098687)
You mean, the innerHTML of a <script> element. Which isn’t really a thing, because the inside of a <script> tag is a document boundary—assigning raw Javascript to innerText or innerHTML directly would make no sense in either case. You need to wrap your Javascript in a CDATA node ;)
Re:Another flaw in Signal desktop app leaks chats in plaintext by thaumasiotes on Friday May 18, 2018 @04:24AM (#17099603)
No, analogously to adding a script tag with jQuery, I meant adding a script tag, with javascript inside, to the innerHTML of some other element.