News for hackers. Stuff that matters.
Re:Email doesn't suck – it's email clients that need improving by egberts1 on Wednesday August 24, 2022 @05:16PM (#32585883)
But it does nothing to prevent JS in its payload.
Re:Email doesn't suck – it's email clients that need improving by Beltalowda on Wednesday August 24, 2022 @07:01PM (#32587007)
I can also put JavaScript in a DNS TXT record; the protocol does nothing to stop that!

There is no "JavaScript" in JMAP in the sense that it's supported by the protocol, and the specification explicitly warns against email clients interpreting JavaScript.

Re:Email doesn't suck – it's email clients that need improving by egberts1 on Friday August 26, 2022 @08:25AM (#32606465)
Now you are getting the idea of how to design a new network protocol in contrast to adding the supporting numbers of parsers and validators.

Potential and actual vulnerabilities explodes, like the chronic problems of Microsoft Macros.

Re:Email doesn't suck – it's email clients that need improving by sleepybrett on Wednesday August 24, 2022 @06:08PM (#32586431)
sure, but that's not a feature a protocol should have. Because the protocol itself does not interact with it in any way. It's clients that process that javascript and execute it. The protocol is about moving 'emails' from one place to another. If you don't want javascript in your email and run your own email stack you can certainly filter out javascript blobs if you want. Or you can chose clients that disable or simply don't even know what javascript is.
Re:Email doesn't suck – it's email clients that need improving by egberts1 on Friday August 26, 2022 @08:38AM (#32606613)
While it is a bit late to close the door on JS usage within SMTP protocol, choices of client SMTP becomes paramount given its legacy stage of SMTP protocol.
Re:Email doesn't suck – it's email clients that need improving by sleepybrett on Friday August 26, 2022 @10:43AM (#32608166)
again, the protocol should be dumb, its a way to move bytes. If there is js encoded in those bytes the rotocol will not and should not know or care. It's up to a client do decide what it wants to do with the bytes it receives.
Re:Email doesn't suck – it's email clients that need improving by windows_sucks on Wednesday August 24, 2022 @06:03PM (#32586381)
the client should be responsible for not executing embedded JS in a message