Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is using extract($_POST) insecure?

Tags:

security

php

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

like image 627
Qiang Avatar asked Sep 05 '25 03:09

Qiang


1 Answers

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

like image 196
artragis Avatar answered Sep 07 '25 21:09

artragis



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!