-
Notifications
You must be signed in to change notification settings - Fork 653
New issue
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
Tainting with filter_vars and array_map #3675
Labels
Comments
Hey @thomasbley, can you reproduce the issue on https://psalm.dev ? |
No, seems taint-analysis is not enabled there and settings have no option to enable it. |
also:
gives no tainting error (FAIL) |
FYI you can append a comment to the header on psalm.dev: https://psalm.dev/r/cb40a74129 |
I found these snippets: https://psalm.dev/r/cb40a74129<?php // --taint-analysis
$get = array_map('trim', $_GET);
echo $get["test"];
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
gives an error (OK):
ERROR: TaintedInput - src/index.php:5:6 - Detected tainted html in path: $_GET -> $get (src/index.php:3:1) -> $get['test'] (src/index.php:5:6) -> call to echo (src/index.php:5:6) -> echo#1 (see https://psalm.dev/205)
echo $get["test"];
gives no tainting error (FAIL)
version used: psalm 3.12.1
The text was updated successfully, but these errors were encountered: