2020-05-25 13:10:06 -04:00
|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
// This maps internal function names to sink types that we don’t want to end up there
|
|
|
|
|
|
|
|
|
|
return [
|
|
|
|
|
'exec' => [['shell']],
|
2020-11-17 12:44:31 -05:00
|
|
|
|
'create_function' => [['text'], ['eval']],
|
2020-06-19 11:56:04 -04:00
|
|
|
|
'file_get_contents' => [['text']],
|
2020-05-25 13:10:06 -04:00
|
|
|
|
'file_put_contents' => [['shell']],
|
|
|
|
|
'fopen' => [['shell']],
|
2020-05-29 00:24:07 -04:00
|
|
|
|
'header' => [['text']],
|
2020-11-17 12:44:31 -05:00
|
|
|
|
'igbinary_unserialize' => [['unserialize']],
|
2020-05-29 00:24:07 -04:00
|
|
|
|
'ldap_search' => [['text']],
|
|
|
|
|
'mysqli_query' => [[], ['sql']],
|
2020-09-08 16:54:23 +01:00
|
|
|
|
'mysqli::query' => [['sql']],
|
|
|
|
|
'mysqli_real_query' => [[], ['sql']],
|
|
|
|
|
'mysqli::real_query' => [['sql']],
|
|
|
|
|
'mysqli_multi_query' => [[], ['sql']],
|
|
|
|
|
'mysqli::multi_query' => [['sql']],
|
|
|
|
|
'mysqli_prepare' => [[], ['sql']],
|
|
|
|
|
'mysqli::prepare' => [['sql']],
|
|
|
|
|
'mysqli_stmt::__construct' => [[], ['sql']],
|
|
|
|
|
'mysqli_stmt_prepare' => [[], ['sql']],
|
|
|
|
|
'mysqli_stmt::prepare' => [['sql']],
|
2020-05-25 13:10:06 -04:00
|
|
|
|
'passthru' => [['shell']],
|
|
|
|
|
'pcntl_exec' => [['shell']],
|
|
|
|
|
'PDO::prepare' => [['sql']],
|
|
|
|
|
'PDO::query' => [['sql']],
|
|
|
|
|
'PDO::exec' => [['sql']],
|
2020-08-19 10:41:02 -04:00
|
|
|
|
'pg_exec' => [[], ['sql']],
|
|
|
|
|
'pg_prepare' => [[], [], ['sql']],
|
|
|
|
|
'pg_put_line' => [[], ['sql']],
|
|
|
|
|
'pg_query' => [[], ['sql']],
|
|
|
|
|
'pg_query_params' => [[], ['sql']],
|
|
|
|
|
'pg_send_prepare' => [[], [], ['sql']],
|
|
|
|
|
'pg_send_query' => [[], ['sql']],
|
|
|
|
|
'pg_send_query_params' => [[], ['sql'], []],
|
2020-05-29 00:24:07 -04:00
|
|
|
|
'setcookie' => [['text'], ['text']],
|
2020-05-25 13:10:06 -04:00
|
|
|
|
'shell_exec' => [['shell']],
|
|
|
|
|
'system' => [['shell']],
|
2020-11-17 12:44:31 -05:00
|
|
|
|
'unserialize' => [['unserialize']],
|
2020-11-16 21:04:22 +01:00
|
|
|
|
'popen' => [['shell']],
|
|
|
|
|
'proc_open' => [['shell']],
|
2020-11-18 06:52:48 +01:00
|
|
|
|
'curl_init' => [['ssrf']],
|
|
|
|
|
'curl_setopt' => [[], [], ['ssrf']],
|
2020-05-25 13:10:06 -04:00
|
|
|
|
];
|