Skip to content

Latest commit

 

History

History

php

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Characters not allowed

Dangerous function calls

  • exec
  • shell_exec
  • system
  • passthru
  • eval
  • popen
  • unserialize
  • include
  • file_put_contents
  • $_COOKIE | if

Exploiting function

$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!