2020-05-25 19:10:06 +02: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 18:44:31 +01:00
|
|
|
|
'create_function' => [['text'], ['eval']],
|
2020-06-19 17:56:04 +02:00
|
|
|
|
'file_get_contents' => [['text']],
|
2020-05-25 19:10:06 +02:00
|
|
|
|
'file_put_contents' => [['shell']],
|
|
|
|
|
'fopen' => [['shell']],
|
2020-05-29 06:24:07 +02:00
|
|
|
|
'header' => [['text']],
|
2020-11-17 18:44:31 +01:00
|
|
|
|
'igbinary_unserialize' => [['unserialize']],
|
2020-05-29 06:24:07 +02:00
|
|
|
|
'ldap_search' => [['text']],
|
|
|
|
|
'mysqli_query' => [[], ['sql']],
|
2020-09-08 17:54:23 +02: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 19:10:06 +02:00
|
|
|
|
'passthru' => [['shell']],
|
|
|
|
|
'pcntl_exec' => [['shell']],
|
|
|
|
|
'PDO::prepare' => [['sql']],
|
|
|
|
|
'PDO::query' => [['sql']],
|
|
|
|
|
'PDO::exec' => [['sql']],
|
2020-08-19 16:41:02 +02: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 06:24:07 +02:00
|
|
|
|
'setcookie' => [['text'], ['text']],
|
2020-05-25 19:10:06 +02:00
|
|
|
|
'shell_exec' => [['shell']],
|
|
|
|
|
'system' => [['shell']],
|
2020-11-17 18:44:31 +01:00
|
|
|
|
'unserialize' => [['unserialize']],
|
2020-11-16 21:04:22 +01:00
|
|
|
|
'popen' => [['shell']],
|
|
|
|
|
'proc_open' => [['shell']],
|
2020-05-25 19:10:06 +02:00
|
|
|
|
];
|