Results 1 to 4 of 4

Thread: Cross Site Scripting (XSS) filtering?

  1. #1
    Join Date
    Nov 2004
    Location
    Dallas, TX (USA)
    Posts
    58

    Default Cross Site Scripting (XSS) filtering?

    Has anyone developed a cross site scripting filter/interceptor for their webapp using Acegi? Does this even make sense? I have used the BadInputFilterValve from the O'Reilly http://www.oreilly.de/catalog/tomcat/ Tomcat book. It works great but it seemed like a filter would be more general.

  2. #2
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    No, Acegi Security doesn't have a XSS filter.

    I am not sure how you could do it at a filter level. http://www.cgisecurity.com/articles/...q.shtml#vendor discusses the conversion of potentially malicious characters from the output stream, but how would that filter decide which are valid (ie administrator/developer defined) versus invalid (malicious user defined)? It would seem more an application-level responsibility to filter at the point user content submissions are accepted.

  3. #3
    Join Date
    Nov 2004
    Location
    Dallas, TX (USA)
    Posts
    58

    Default

    Thanks for the quick response Ben. I'll keep pondering this and see how I can come up with a more neutral solution.

  4. #4
    Join Date
    Nov 2004
    Location
    Dallas, TX (USA)
    Posts
    58

    Default

    After testing my app, at appears that Spring is escaping the html markup that might make a page vulnerable. I'm not sure how/why but I didn't need to apply xss filtering to my spring app to make it work. Any attempt at putting markup into my input fields resulted in the markup being property html escaped! Not so for my older struts app tho :wink:

    As usual, I'm barking up the wrong tree.

Similar Threads

  1. Scripting language for the weblayer.
    By Alarmnummer in forum Web
    Replies: 2
    Last Post: Apr 13th, 2005, 11:35 AM
  2. Replies: 0
    Last Post: Apr 13th, 2005, 06:10 AM
  3. How is the Spring web site produced?
    By bburridg in forum Meta
    Replies: 3
    Last Post: Feb 17th, 2005, 04:48 AM
  4. bean definition using inline scripting languages?
    By jbetancourt in forum Architecture
    Replies: 4
    Last Post: Oct 20th, 2004, 06:09 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •