CSS: The bomb inside your inbox

(portswigger.net)

29 points | by ashurandi 2 hours ago

5 comments

  • PoignardAzur 24 minutes ago
    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.

  • ashurandi 15 minutes ago
    Would a hard isolation model for HTML email be a better long-term solution, or is that impractical for reasons I’m missing?
  • desro 27 minutes ago
    Allowing anything other than plain text in email bodies was a terrible mistake.
  • fragmede 59 minutes ago
    > In this section I targeted Fastmail, ProtonMail, Gmail, Cowork and Slack.

    Oh that's all, is it?

  • pluc 50 minutes ago
    > This page requires JavaScript for an enhanced user experience.

    Yeah no shit.

    • thunderbong 41 minutes ago
      You're certainly welcome to browse the internet without JavaScript.

      But when most of the articles submitted here don't work without JavaScript, this comment seems really irrelevant.