Skip to content

Commit

Permalink
Add $_REQUEST as a taint source
Browse files Browse the repository at this point in the history
Ref #3636
  • Loading branch information
muglug committed Jun 22, 2020
1 parent f2f5606 commit 7f05b3c
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,11 @@ private static function taintVariable(
$codebase = $statements_analyzer->getCodebase();

if ($codebase->taint && $codebase->config->trackTaintsInPath($statements_analyzer->getFilePath())) {
if ($var_name === '$_GET' || $var_name === '$_POST' || $var_name === '$_COOKIE') {
if ($var_name === '$_GET'
|| $var_name === '$_POST'
|| $var_name === '$_COOKIE'
|| $var_name === '$_REQUEST'
) {
$taint_location = new CodeLocation($statements_analyzer->getSource(), $stmt);

$server_taint_source = new Source(
Expand Down

0 comments on commit 7f05b3c

Please sign in to comment.