diff options
author | Alexander Moisseev <moiseev@mezonplus.ru> | 2019-02-19 12:56:57 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-19 12:56:57 +0300 |
commit | 13e5863d606dffc51786671a7cd415323db3ae2e (patch) | |
tree | ecebfcc15fbd8026e4767f429bb74c77045edb72 /rules | |
parent | d2645a9a8ee9d7521658bd04ac7564da63026cd4 (diff) | |
download | rspamd-13e5863d606dffc51786671a7cd415323db3ae2e.tar.gz rspamd-13e5863d606dffc51786671a7cd415323db3ae2e.zip |
[Minor] Use more strict regex in LEAKED_PASSWORD_SCAM
to avoid matching `passwordless`
Diffstat (limited to 'rules')
-rw-r--r-- | rules/regexp/misc.lua | 4 |
1 files 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 +} |