It depends on the fact that there is no hiding of the REQUEST variable.
Sending a malicious request in index.php? var = 2.22507 ... and providing a POST variable also named var, only one will appear in the REQUEST array. A maximum of two and a minimum of one request to bypass this filter are required.
GET[var] POST[var] REQUEST[var] req1 test 2.225.. test req2 2.225.. test 2.225..
One will result in the request not being detected depending on the server configuration. This can also be done using other combinations, i.e. GET / COOKIE, POST / COOKIE, etc., you will get this idea.
Each array must be checked individually. In fact, you can even leave without checking REQUEST, this is a collection. This is a bit more overhead, but it is safer if you cannot guarantee that you never use $ _GET, $ _POST or $ _COOKIE directly in your code.
source share