commit 13e5863: [Minor] Use more strict regex in LEAKED_PASSWORD_SCAM

GitHub noreply at github.com
Wed Feb 20 13:28:03 UTC 2019


Author: Alexander Moisseev
Date: 2019-02-19 12:56:57 +0300
URL: https://github.com/rspamd/rspamd/commit/13e5863d606dffc51786671a7cd415323db3ae2e (refs/pull/2761/head)

[Minor] Use more strict regex in LEAKED_PASSWORD_SCAM
to avoid matching `passwordless`
---
 rules/regexp/misc.lua | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/rules/regexp/misc.lua b/rules/regexp/misc.lua
index aaf8425bd..642a02e21 100644
--- a/rules/regexp/misc.lua
+++ b/rules/regexp/misc.lua
@@ -64,7 +64,7 @@ reconf['HAS_ONION_URI'] = {
 local my_victim = [[/(?:victim|prey)/{words}]]
 local your_webcam = [[/webcam/{words}]]
 local your_onan = [[/(?:mast[ur]{2}bati(?:on|ng)|onanism|solitary)/{words}]]
-local password_in_words = [[/^pass(?:(?:word)|(?:phrase))/i{words}]]
+local password_in_words = [[/^pass(?:(?:word)|(?:phrase))$/i{words}]]
 local btc_wallet_address = [[/^[13][0-9a-zA-Z]{25,34}$/{words}]]
 local wallet_word = [[/^wallet$/{words}]]
 local broken_unicode = [[has_flag(bad_unicode)]]
@@ -93,4 +93,4 @@ reconf['LEAKED_PASSWORD_SCAM'] = {
   },
   score = 7.0,
   group = 'scams'
-}
\ No newline at end of file
+}


More information about the Commits mailing list