PHP
Functions that might be vulnerable if you control the data (in-depth guide here): file_get_contents
, readfile
, finfo->file
, getimagesize
, md5_file
, sha1_file
, hash_file
, file
, parse_ini_file
, copy
, file_put_contents (only target read only with this)
, stream_get_contents
, fgets
, fread
, fgetc
, fgetcsv
, fpassthru
, fputs
Dangerous PHP Functions
Command Execution
PHP Code Execution
Useful Extensions
PHP-relevant HackTheBox machines
UpDown
Vessel (Single / Double quote confusion + PHP file write)
Last updated