1. 16 2月, 2012 1 次提交
    • N
      Catch raw hrefs as bad, warn unless wrapped in a "safe" method · 3dc688ee
      Neil Matatall 提交于
      Add concept of a safe-ening method to mark hrefs as safe
      
      Feature:
      Warn when using unsafe hrefs.  This is a very specific case that as of now produces a ton of noise.  This came out of an xss vuln where the value was escaped but still vulnerable.
      
          link_to 'asdf', h(@scary)
      
      where
      
          @scary = 'javascript:alert(1)'
      
      or
      
          @scary = 'data:  # http://palpapers.plynt.com/issues/2010Oct/bypass-xss-filters/
      
      This branch accomplishes slightly intelligent warnings by adding a new command line option to declare methods that make a string URL safe (unless there is already a standard one out there).  e.g.:
      
          $ brakeman . --url-safe-methods ensure_valid_protocol!
      
          link_to 'asdf', ensure_valid_protocol!(@scary, :javascript)
      3dc688ee
  2. 11 2月, 2012 1 次提交
  3. 10 2月, 2012 4 次提交
  4. 09 2月, 2012 9 次提交
  5. 08 2月, 2012 1 次提交
  6. 07 2月, 2012 2 次提交
  7. 05 2月, 2012 6 次提交
  8. 04 2月, 2012 2 次提交
  9. 03 2月, 2012 8 次提交
  10. 02 2月, 2012 5 次提交
  11. 01 2月, 2012 1 次提交