1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00
psalm/src/Psalm/Internal/InternalTaintSinkMap.php

25 lines
664 B
PHP
Raw Normal View History

<?php
// This maps internal function names to sink types that we dont want to end up there
return [
'exec' => [['shell']],
2020-06-19 17:56:04 +02:00
'file_get_contents' => [['text']],
'file_put_contents' => [['shell']],
'fopen' => [['shell']],
2020-05-29 06:24:07 +02:00
'header' => [['text']],
'igbinary_unserialize' => [['text']],
2020-05-29 06:24:07 +02:00
'ldap_search' => [['text']],
'mysqli_query' => [[], ['sql']],
'passthru' => [['shell']],
'pcntl_exec' => [['shell']],
'printr' => [['html', 'user_secret', 'system_secret']],
'PDO::prepare' => [['sql']],
'PDO::query' => [['sql']],
'PDO::exec' => [['sql']],
2020-05-29 06:24:07 +02:00
'setcookie' => [['text'], ['text']],
'shell_exec' => [['shell']],
'system' => [['shell']],
'unserialize' => [['text']],
];