1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-19 03:54:42 +01:00
psalm/src/Psalm/Internal/InternalTaintSinkMap.php

18 lines
439 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']],
'file_put_contents' => [['shell']],
'fopen' => [['shell']],
'passthru' => [['shell']],
'pcntl_exec' => [['shell']],
'printr' => [['html', 'user_secret', 'system_secret']],
'PDO::prepare' => [['sql']],
'PDO::query' => [['sql']],
'PDO::exec' => [['sql']],
'shell_exec' => [['shell']],
'system' => [['shell']],
];