XSS security in Rails
It seems to me that if someone wanted a web application framework to be successful that focusing on a strong, yet unobtrusive, security model would be important. One reason PHP is avoided by many developers is that so many PHP applications are full of security vulnerabilities. I’ve always been a fan of escaping all content except when otherwise specified, the opposite of how Rails operates. I remember investigating early plugins to accomplish this but without much luck. It seems like there has been a lot of activity in this area and I thought I would investigate the landscape again.
- SafeERB - Seems immature and is apparently fairly difficult to work with (still requires everything to be escaped manually).
- xss-shield - Virtually no documentation.
- xss_terminate - Can sanitize or strip tags on save; does not addresss html escaping.
- CrossSiteSniper
That last post is a good writeup on the shortcomings of the other solutions and how CrossSiteSniper avoids them. I think that will be my first plugin to try.




Recent comments
9 weeks 2 days ago
10 weeks 27 min ago
15 weeks 1 day ago
15 weeks 1 day ago
15 weeks 2 days ago
15 weeks 6 days ago
16 weeks 1 hour ago
16 weeks 5 days ago
16 weeks 5 days ago
16 weeks 5 days ago