Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

style considered harmful?

Tags:

html

security

We have some code that removes "dangerous" attributes and tags from HTML. I noticed that style is among the list of "dangerous" attributes. What could be the risk from that attribute?

like image 781
JoelFan Avatar asked Aug 20 '10 17:08

JoelFan


1 Answers

In IE you can include @behaviors in there which can load little Javascripts.

With CSS3 you can also interject little bits of text, which could be dangerous depending on your website.

like image 112
Kevin Sedgley Avatar answered Sep 24 '22 06:09

Kevin Sedgley