aboutsummaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-11-29 17:11:37 +0000
committerGitHub <noreply@github.com>2016-11-29 17:11:37 +0000
commitee81d64e6f30d3f91913019b79d12326052ce9ed (patch)
treea38e91671476e5cac4d928e9628eab57dc20fcae /rules
parent4d69ef1b8d6dc9d71c687dac9fbc00a21197abe0 (diff)
parent22ac7e9325b67c8aa96174b47a61960fbb3127f3 (diff)
downloadrspamd-ee81d64e6f30d3f91913019b79d12326052ce9ed.tar.gz
rspamd-ee81d64e6f30d3f91913019b79d12326052ce9ed.zip
Merge pull request #1206 from fatalbanana/php
[Minor] Remove duplicated rule
Diffstat (limited to 'rules')
-rw-r--r--rules/regexp/compromised_hosts.lua4
-rw-r--r--rules/regexp/headers.lua7
2 files changed, 2 insertions, 9 deletions
diff --git a/rules/regexp/compromised_hosts.lua b/rules/regexp/compromised_hosts.lua
index e5e6e6aec..8d224b315 100644
--- a/rules/regexp/compromised_hosts.lua
+++ b/rules/regexp/compromised_hosts.lua
@@ -83,10 +83,10 @@ reconf['HAS_X_ANTIABUSE'] = {
group = "compromised_hosts"
}
-reconf['PHP_EVALD_CODE'] = {
+reconf['X_PHP_EVAL'] = {
re = "X-PHP-Script=/eval\\(\\)\\'d/Hi || X-PHP-Originating-Script=/eval\\(\\)\\'d/Hi",
description = "Message sent using eval'd PHP",
- score = 5.0,
+ score = 4.0,
group = "compromised_hosts"
}
diff --git a/rules/regexp/headers.lua b/rules/regexp/headers.lua
index 5118a5b9b..d05874809 100644
--- a/rules/regexp/headers.lua
+++ b/rules/regexp/headers.lua
@@ -785,13 +785,6 @@ reconf['INVALID_POSTFIX_RECEIVED'] = {
group = 'header'
}
-reconf['X_PHP_EVAL'] = {
- re = "X-PHP-Originating-Script=/ : eval\\(\\)'d code$/X",
- score = 4.0,
- description = "Message sent by eval()'d PHP code",
- group = 'header'
-}
-
reconf['X_PHP_FORGED_0X'] = {
re = "X-PHP-Originating-Script=/^0\\d/X",
score = 4.0,