Is using extract($_POST) insecure?

后端 未结 5 1472
半阙折子戏
半阙折子戏 2021-01-20 17:03

Is using extract($_POST) insecure? If yes then what can I do about this?

5条回答
  •  再見小時候
    2021-01-20 17:51

    Yes it is. It is the same thing that register_globals was. It means that if someone inject a value with the name "my_name" the variable "my_name" would exist. And if it exists, it can bring some garbage or security issue in your script if somewhere you use the variable $my_name

提交回复
热议问题