Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

secure by default - string santizination #6

Open
metasoarous opened this issue Jun 6, 2018 · 0 comments
Open

secure by default - string santizination #6

metasoarous opened this issue Jun 6, 2018 · 0 comments

Comments

@metasoarous
Copy link

As a Clojure geek, I have loved using this library when I'm in python, but I've realized I can't do that for anything that might take arbitrary input from the web, as I could open the app up to an html injection attack. Therefore, I think it would be prudent that the default behavior of cottonmouth.html.render et al would be to santize html with something existing python lib (perhaps? https://github.com/mozilla/bleach). It will be important in this to have some way of supporting inlining html strings, marking them as safe, or having a separate "safe" function call (or should it be called danger?). So that's something to think out. But again, I think this is a rather important issue if you want folks to use this library for anything serious/general.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant