Skip to content
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

escapeshellarg sanitizer typo #1

Open
jmrtz opened this issue Dec 23, 2019 · 0 comments
Open

escapeshellarg sanitizer typo #1

jmrtz opened this issue Dec 23, 2019 · 0 comments

Comments

@jmrtz
Copy link

jmrtz commented Dec 23, 2019

Hi,
there is a typo in your test cases for CWE_78 when using the escapeshellarg sanitizer.
The return value and argument of the sanitizer tained but tainted flows to the sink:

<?php

$tainted = $_GET['UserData'];
        $tained = escapeshellarg($tained);
      
$query = "cat '". $tainted . "'";
$ret = system($query);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant