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

Python __call__ special method practical example -

arrays - jQuery - Retrieve values from HTML elements and return their sum -