From 153b5ad97afe623a558ccc061bb753fd88e2ee00 Mon Sep 17 00:00:00 2001 From: Julien (jvoisin) Voisin Date: Tue, 23 Feb 2016 17:54:33 +0100 Subject: Tweak some minor rules --- php-malware-finder/malwares.yara | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/php-malware-finder/malwares.yara b/php-malware-finder/malwares.yara index d07c057..7e2acc0 100644 --- a/php-malware-finder/malwares.yara +++ b/php-malware-finder/malwares.yara @@ -103,7 +103,8 @@ rule DodgyPhp { strings: $basedir_bypass = /curl_init\s*\(\s*["']file:\/\// - $disable_magic_quotes = /set_magic_quotes_runtime\(0\)/ + $basedir_bypass2 = "file:file:///" // https://www.intelligentexploit.com/view-details.html?id=8719 + $disable_magic_quotes = /set_magic_quotes_runtime\s*\(\s*0/ $double_encoding = /(base64_decode\s*\(\s*){2}/ $execution = /(eval|assert|passthru|exec|system|win_shell_execute|base64_decode)\s*\(\s*(base64_decode|php:\/\/input|str_rot13|gz(inflate|uncompress)|getenv|pack|\\?\$_(GET|REQUEST|POST|COOKIE))/ $htaccess = "SetHandler application/x-httpd-php" -- cgit v1.3