manusa / isotope-mail

Isotope Mail Client
https://blog.marcnuri.com/isotope-mail-client-introduction/
Apache License 2.0
237 stars 44 forks source link

Secutiry:improve sanitizer #231

Open shift-reality opened 5 years ago

shift-reality commented 5 years ago

It's Duplicate. There package: https://github.com/OWASP/java-html-sanitizer should be used for sanitize HTML&CSS styles on server-side. Also it remove all javascripts (anywhere), so untrusted content can be safety to embed in browser.. All harmful CSS and XSS removed. Always Emails use HTML 3.2 markup. Good Example case at: https://github.com/OWASP/java-html-sanitizer/blob/83c4ce38014d42709c8262804bba8254dfa2a30c/src/main/java/org/owasp/html/examples/EbayPolicyExample.java

Thanks