Jump to content

$PHP_SELF


chaiwei

Recommended Posts

Hi all,

 

I saw some website they wrote $PHP_SELF is not secure.

It will causing XSS to exploit your site.

 

But I don't know how XSS will bring harm to us.

Because most of the example they just inject a script alert.

But it can't change our code or anything.

It may inject a javascript. but I can't see what can it done with javascript that until it causing serious problem to our site.

 

I believe that XSS will bring major securities issues. But I just don't know how it works.

 

So back to the topic, instead of $PHP_SELF, I should use $_SERVER['PHP_SELF'] ?

 

Are there any methods to use besides this two?

thanks

 

 

Link to comment
https://forums.phpfreaks.com/topic/160659-php_self/
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.