We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bef87d2 commit 33cd8efCopy full SHA for 33cd8ef
1 file changed
rules/evasion/covert-location/php_image.yara
@@ -7,8 +7,13 @@ rule php_image_include: critical {
7
$php = "<?php"
8
$include = /include\s*\(\s*[^\.]+\.(png|jpg|gif|bmp)/
9
10
+ // https://github.com/symfony/symfony/blob/7.4/src/Symfony/Component/ErrorHandler/Resources/views/exception_full.html.php#L9
11
+ // https://github.com/symfony/symfony/blob/7.4/src/Symfony/Component/ErrorHandler/Resources/assets/images/favicon.png.base64
12
+ $not_symfony1 = "include('assets/images/favicon.png.base64')"
13
+ $not_symfony2 = "<a href=\"https://symfony.com/doc/<?= Symfony\\Component\\HttpKernel\\Kernel::VERSION; ?>/index.html\">"
14
+
15
condition:
- filesize < 5242880 and all of them
16
+ filesize < 5242880 and all of them and none of ($not*)
17
}
18
19
rule php_in_image: critical {
0 commit comments