Is there a security threat if I enable a user to add CSS? -


is not secure enable user add own rules of css personal page, in (for example) social website ?

it not secure. there multiple ways embed javascript in css such gets executed @ least browsers. google "xss css" , through top hits.

don't unless you're willing hardcore sanitization of css, , clean mess when sanitization inevitably bypassed , users' cookies compromised.


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -