Jump to content

XSS


waynew

Recommended Posts

Hey guys, I was reading around the other day when I came across this:

 

A very common approach to circumvent XSS-cleaners is to use entities instead of plaintext, therefore the first thing we do is to remove does entities with their UTF-8 equivalent (we assume, the input is utf-8 here)

 

They suggest using:

 

$string = html_entity_decode($string, ENT_COMPAT, "UTF-8");

 

Does this mean that using htmlentities()/strip_tags() alone isn't going to stop everything?

Link to comment
https://forums.phpfreaks.com/topic/122199-xss/
Share on other sites

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.