Thread: Templating
View Single Post
Old 07-26-2008, 04:20 PM   #3 (permalink)
ryanmr
The Contributor
 
ryanmr's Avatar
 
Join Date: Jun 2008
Location: Twin Cities, Minnesota, USA
Posts: 44
Thanks: 3
ryanmr is on a distinguished road
Default

Make sure you either strip out or stop CSS like this:
HTML Code:
 .h1 {
  background-image: url( javascript: XSS() );
 }
That's a pretty big XSS vector. If you don't only allow edits to css but also to xhtml/html, I suggest using HTML Purifier - Filter your HTML the standards-compliant way!, since that will be very likely to stop major XSS vectors.
ryanmr is offline  
Reply With Quote