]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Lua_content: Make regexp more strict
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 28 Nov 2019 17:21:09 +0000 (17:21 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 28 Nov 2019 17:21:09 +0000 (17:21 +0000)
lualib/lua_content/pdf.lua

index a531396dbd2dba2b59fa668fb9ca495b4b7930cd..6676d6d36b27c1cdc2f25c145c9a570418b5d91d 100644 (file)
@@ -46,7 +46,7 @@ local pdf_patterns = {
     patterns = {
       [[netsh\s]],
       [[echo\s]],
-      [[/[A-Za-z]*#\d\d]], -- Hex encode obfuscation
+      [[/[A-Za-z]*#\d\d(?:[#A-Za-z<>/\s])]], -- Hex encode obfuscation
     }
   }
 }