Skip to content

Commit f459cd2

Browse files
committed
milter: default PermitAuthenticationOverrides off
1 parent 59b3ed4 commit f459cd2

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ All notable changes to this project will be documented in this file.
4141
headers are parsed is built without making you jump through weird hoops.
4242
- milter - The default behaviour for messages that fail basic validity checks
4343
(malformed headers, too many headers) is to reject them.
44+
- milter - `PermitAuthenticationOverrides` defaults to `false`.
4445

4546
### Removed
4647
- libopenarc - `arc_mail_parse()`

openarc/openarc.c

-1
Original file line numberDiff line numberDiff line change
@@ -1163,7 +1163,6 @@ arcf_config_new(void)
11631163
}
11641164

11651165
new->conf_maxhdrsz = DEFMAXHDRSZ;
1166-
new->conf_overridecv = true;
11671166
new->conf_safekeys = true;
11681167
new->conf_authresip = true;
11691168

openarc/openarc.conf.5.in

+5
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,11 @@ will be checked.
239239
Controls whether a previous Authentication-Result with the same
240240
.Ar authserv-id
241241
is allowed to override the computed ARC chain validation status.
242+
The default is
243+
.Cm false ,
244+
because this is unsafe unless you have verified that forged
245+
Authentication-Result headers will be removed before this filter
246+
processes the message.
242247

243248
.It Cm PidFile Pq string
244249
Specifies the path to a file that should be created at process start

test/conftest.py

+1
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ def milter_config(request, tmp_path, private_key):
8181
'KeyFile': 'elpmaxe._domainkey.example.com.key',
8282
'Mode': 'sv',
8383
'FixedTimestamp': '1234567890',
84+
'PermitAuthenticationOverrides': 'true',
8485
'RequireSafeKeys': 'false', # tmp is world writeable
8586
}
8687

0 commit comments

Comments
 (0)