3 ms·
The code could, at the very least, be using $_POST. Yes, that wouldn't stop it, but it would make it harder to execute via naked URLs (assuming that's the explo
by mgkimsal 15y ago
The code could, at the very least, be using $_POST. Yes, that wouldn't stop it, but it would make it harder to execute via naked URLs (assuming that's the exploit going around, which I think it is).
This is precisely why I do not like $_REQUEST, and counsel against it in presentations/classes I do on PHP. This is clearly written to be something which modifies state - GET values should be ignored in this situations. And yes, again, it's not perfect - someone could craft malicious POST requests - I know - but that requires an extra level of effort not currently needed, and it's an extra level of effort some people won't bother with.