- No alphanum allowed: https://gist.github.com/terjanq/aa39a5a40b8d9b8a8e2a54e747715a2c
_
: Dots and spaces in variable names are converted to underscores. For example<input name="a.b" />
becomes$_REQUEST["a_b"]
.array["key"]
: Can usearray{key}
- exec
- shell_exec
- system
- passthru
- eval
- popen
- unserialize
- include
- file_put_contents
- $_COOKIE | if
$input = urldecode("a%00$");
if (ereg("^[a-zA-Z0-9]+$", $input) === FALSE) {
echo 'Only Alphanumeric accepted';
} else {
echo "Got past the check!";
}
When our input is being urldecoded, ($_GET['key']
performs an urldecode()
), using the null byte (%00
) we can pass the check!