Skip to content

Commit a460bda

Browse files
committed
MTS-2096:
Added functions marked as insecure by Sec Team.
1 parent 887ecba commit a460bda

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Magento2/Sniffs/Security/InsecureFunctionSniff.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,19 @@ class InsecureFunctionSniff extends ForbiddenFunctionsSniff
3333
'srand' => null,
3434
'mt_srand' => null,
3535
'mt_rand' => 'random_int',
36+
// Custom Rules - MTS-2096
37+
'eval' => null,
38+
'preg_replace' => null,
39+
'preg_replace_callback' => null,
40+
'preg_replace_callback_array' => null,
41+
'include' => null,
42+
'include_once' => null,
43+
'require' => null,
44+
'require_once' => null,
45+
'proc_nice' => null,
46+
'proc_open' => null,
47+
'proc_close' => null,
48+
'proc_terminate' => null,
49+
'proc_get_status' => null,
3650
];
3751
}

0 commit comments

Comments
 (0)