We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using call_user_func() and call_user_func_array() causes lose of taint value.
call_user_func()
call_user_func_array()
Example code:
<?php $input = $_GET['in']; $function = 'render'; // Send tainted variable to $function $output = call_user_func($function, $input); function render($input) { // $input is tainted if (is_tainted($input)) { print "Input is tainted<br>"; } return $input; } // $output is tainted if (is_tainted($output)) { print "Output is tainted<br>"; }
Output:
Input is tainted
The text was updated successfully, but these errors were encountered:
I've cleaned up the code a bit and tried to PR a test which fails locally #31
Sorry, something went wrong.
No branches or pull requests
Using
call_user_func()
andcall_user_func_array()
causes lose of taint value.Example code:
Output:
The text was updated successfully, but these errors were encountered: