-
-
Notifications
You must be signed in to change notification settings - Fork 522
Open
Description
filter_input() is listed as an escaping function. However if the third parameter isn't set, then no sanitization takes place.
Example:
URL: http://test.dev/?test=%3Cscript%3Ealert%281%29%3B%3C%2Fscript%3E
echo filter_input( INPUT_GET, 'test' );
vs.
echo filter_input( INPUT_GET, 'test', FILTER_SANITIZE_STRING );
Should detection of filter_input require manual inspection or is it possible to check if the third parameter is set?