logoalt Hacker News

CSS: The bomb inside your inbox

27 pointsby ashuranditoday at 10:17 AM5 commentsview on HN

Comments

PoignardAzurtoday at 11:55 AM

Reading the article, I kept thinking: "could you defeat this with an iframe?", and indeed:

> One of the best methods to protect against these attacks is strict isolation. If you isolate the email message using sandboxed iframes you restrict the ability to break out of trusted boundaries. If you are not using sandboxed iframes, always be careful when allowing custom attributes and check for HTML/CSS gadgets. Use a strict allow list of characters when validating keywords and names to avoid mutation when using the CSSOM.

iframes should be the first layer of any defense-in-depth against user-submitted content.

desrotoday at 11:52 AM

Allowing anything other than plain text in email bodies was a terrible mistake.

fragmedetoday at 11:20 AM

> In this section I targeted Fastmail, ProtonMail, Gmail, Cowork and Slack.

Oh that's all, is it?

pluctoday at 11:30 AM

> This page requires JavaScript for an enhanced user experience.

Yeah no shit.

show 1 reply