White Listing Plugin for Rails
I "threw down the gauntlet":http://beast.caboo.se/forums/5/topics/319, challenging anyone to post XSS hacks on Beast. The community accepted and brought in some challengers that defeated "sanitize":http://rails.rubyonrails.org/classes/ActionView/Helpers/TextHelper.html#M000516. Today, I answer the pleading call of sanitize with the "white list plugin":http://svn.techno-weenie.net/projects/plugins/white_list/.
bq. "This White Listing helper will html encode all tags and strip all attributes that aren't specifically allowed. It also strips href/src tags with invalid protocols, like javascript: especially. It does its best to counter any tricks that hackers may use, like throwing in unicode/ascii/hex values to get past the javascript: filters. Check out the extensive test suite."
related
- 2010 Aug 03 Protocol Buffers with Riak for Node.js
- 2010 Jul 13 In-Process Node.js Queues
- 2010 Jul 07 Geek Talk Interview
- 2010 Jun 28 Tee and Child Processes
- 2010 Jun 23 You can let go now
- 2010 May 17 Railsconf: Building APIs
- 2010 May 10 Nori: Node.js Riak wrapper
- 2010 May 10 No, I did not create a mobile phone framework too
- 2010 May 04 Escaping your test suite with your life
- 2010 Apr 05 Will the iPad kill comic books?

