Does PHP’s $_REQUEST method have a security problem?

I would say that it is dangerous to characterise $_POST as more secure than $_REQUEST.

If the data is not being validated and sanitized before being used, you have a possible vector of attack.

In short:
It doesn’t matter where the data comes from if it is not being handled in a secure manner.

Leave a Comment