Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

there is no way to make it secure, lol :D


What about only letting users customise CSS and HTML? Can that be secure?


JS CSS HTML are very mixed in each other. It is very hard to allow only CSS/HTML.


May I recommend https://js-quasis-libraries-and-repl.googlecode.com/svn/trun... as a good read. It examines a system that can safely escape content based on its context, and forms the basis of one of the template packages of Go.


btw <meta http-equiv=Set-Cookie> may behave same way!


Thanks for the rec, this looks really good! Reminds me a lot of XHP.



Alright... what if they could only change the CSS, and not the HTML and JS? (Obviously not a solution for Github pages, but workable in some scenarios)


Still sounds dangerous to me. It's possible to execute code from CSS! https://code.google.com/p/browsersec/wiki/Part1#Cascading_st...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: