Browse Source

Merge pull request #4656 from twesterhever/temp-tighten-attachment-policy

Tighten rspamd's attachment policy
tags/3.7.2
Vsevolod Stakhov 7 months ago
parent
commit
6491804e19
No account linked to committer's email address
1 changed files with 25 additions and 6 deletions
  1. 25
    6
      src/plugins/lua/mime_types.lua

+ 25
- 6
src/plugins/lua/mime_types.lua View File

@@ -52,16 +52,10 @@ local settings = {
},

bad_extensions = {
bat = 2,
chm = 4,
com = 2,
cue = 2,
exe = 1,
hta = 2,
iso = 4,
jar = 2,
lnk = 4,
scr = 4,
-- In contrast to HTML MIME parts, dedicated HTML attachments are considered harmful
htm = 1,
html = 1,
@@ -70,11 +64,21 @@ local settings = {
-- Have you ever seen that in legit email?
ace = 4,
arj = 2,
aspx = 1,
asx = 2,
cab = 3,
dll = 4,
dqy = 2,
iqy = 2,
mht = 2,
mhtml = 2,
oqy = 2,
rqy = 2,
sfx = 2,
slk = 2,
vst = 2,
vss = 2,
wim = 2,
-- Additional bad extensions from Gmail
ade = 4,
adp = 4,
@@ -105,7 +109,10 @@ local settings = {
app = 4,
asp = 4,
bas = 4,
bat = 4,
chm = 4,
cnt = 4,
com = 4,
csh = 4,
diagcab = 4,
fxp = 4,
@@ -113,9 +120,12 @@ local settings = {
grp = 4,
hlp = 4,
hpj = 4,
hta = 4,
htc = 4,
inf = 4,
its = 4,
jnlp = 4,
lnk = 4,
ksh = 4,
mad = 4,
maf = 4,
@@ -158,17 +168,26 @@ local settings = {
psd1 = 4,
psdm1 = 4,
pst = 4,
pyc = 4,
pyo = 4,
pyw = 4,
pyz = 4,
pyzw = 4,
reg = 4,
scf = 4,
scr = 4,
shs = 4,
theme = 4,
url = 4,
vbp = 4,
vhd = 4,
vhdx = 4,
vsmacros = 4,
vsw = 4,
webpnp = 4,
website = 4,
ws = 4,
wsf = 4,
xbap = 4,
xll = 4,
xnk = 4,

Loading…
Cancel
Save