Jump to content

[SOLVED] Disabling malicious code in CSS (Cascading Style Sheets)


MysterySword

Recommended Posts

Well, I made a system where users can use CSS to change the look of their profiles. However, I'm worried about vulnerabilities in the submitted CSS code.

 

Here's the code in the profiles that run the custom CSS:

echo "<STYLE type=\"text/css\">".$user_data['user_css']."</STYLE>\n";

 

I'm free from MySQL errors, because of a command that strips input, but I'm talking about when that code is activated in the profile. I believe JavaScript can run within CSS, so is it possible to disable that?

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.