GithubHelp home page GithubHelp logo

WYSIWYG (Quill) and XSS about wink HOT 5 CLOSED

themsaid avatar themsaid commented on May 3, 2024
WYSIWYG (Quill) and XSS

from wink.

Comments (5)

themsaid avatar themsaid commented on May 3, 2024 6

I thought about it before releasing but I don't want to remove such flexibility from Wink just to protect you form yourself or your team. I want you to be able to embed anything in the editor (Tweet, Instagram Post, YouTube Video, ServiceThatIsNotPopular Embeddable card, etc...)

With that comes risk yes, but if there's no trust between you and your team there's more harm than XSS can be done :)

from wink.

saleem-hadad avatar saleem-hadad commented on May 3, 2024

A cleaver way might be if we leave the option to the user, let's say we add "activate XSS protection" as a boolean value in the config, what do you think?

from wink.

Lelectrolux avatar Lelectrolux commented on May 3, 2024

@themsaid Fair enough... I would still add a mention somewhere as there might exists some sneaky 2 stage attacks this behaviour helps a lot.

But to be fair, HTMLPurifier could be use to remove at least the blatant js hacks based on html attributes and script tags. It wouldn't prevent you from using iframes and the rest for embeded cards.

With that comes risk yes, but if there's no trust between you and your team there's more harm than XSS can be done :)

Do you trust anyone you work with to be good with computer and never leave their logged in phone on a table ? Even without malice, a naive team member can do harm in this setup.

Once again, your call, but I'd add a disclaimer.

from wink.

themsaid avatar themsaid commented on May 3, 2024

@Lelectrolux I think I'm going to close this for now since I'm not really willing to disable the HTML embeds, but adding a note about it in the docs is a good idea. Will make sure I do that when the docs are ready.

Thanks :)

from wink.

Lelectrolux avatar Lelectrolux commented on May 3, 2024

Have a nice day.

from wink.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.