diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2017-01-28 12:30:29 +0000 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2017-01-28 14:24:17 +0000 |
commit | 02c4f8fb8927c97939d3daa345148739e275dc8d (patch) | |
tree | fed8bb398c66b9b5419423de9416f08524e6a4ec /test | |
parent | 2a27d0e4e61c2eecbb9557e8ad5d0a55077ee4ff (diff) |
DKIM: check pointer to calculated body hash before verify comparison. Bug 2029
We can have a missing body hash from a malformed DKIM-Signature: header
Diffstat (limited to 'test')
-rw-r--r-- | test/log/4506 | 5 | ||||
-rw-r--r-- | test/scripts/4500-DKIM/4506 | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/test/log/4506 b/test/log/4506 index d50bbe1f4..20e9c6b51 100644 --- a/test/log/4506 +++ b/test/log/4506 @@ -4,6 +4,9 @@ 1999-03-02 09:44:33 10HmaX-0005vi-00 DKIM: d=test.ex s=sel c=simple/simple a=rsa-sha1 b=0 [invalid - signature tag missing or invalid] 1999-03-02 09:44:33 10HmaX-0005vi-00 signer: test.ex bits: 0 1999-03-02 09:44:33 10HmaX-0005vi-00 <= CALLER@bloggs.com H=(xxx) [127.0.0.1] P=smtp S=sss id=qwerty1234@disco-zombie.net -1999-03-02 09:44:33 10HmaY-0005vi-00 DKIM: d=test.ex s=sel c=simple/simple a=rsa-sha1 b=1024 [verification failed - body hash mismatch (body probably modified in transit)] +1999-03-02 09:44:33 10HmaY-0005vi-00 DKIM: d=test.ex s=sel c=simple/simple a=rsa-sha1 b=1024 [invalid - signature tag missing or invalid] 1999-03-02 09:44:33 10HmaY-0005vi-00 signer: test.ex bits: 1024 1999-03-02 09:44:33 10HmaY-0005vi-00 <= CALLER@bloggs.com H=(xxx) [127.0.0.1] P=smtp S=sss id=qwerty1234@disco-zombie.net +1999-03-02 09:44:33 10HmaZ-0005vi-00 DKIM: d=test.ex s=sel c=simple/simple a=rsa-sha1 b=1024 [verification failed - body hash mismatch (body probably modified in transit)] +1999-03-02 09:44:33 10HmaZ-0005vi-00 signer: test.ex bits: 1024 +1999-03-02 09:44:33 10HmaZ-0005vi-00 <= CALLER@bloggs.com H=(xxx) [127.0.0.1] P=smtp S=sss id=qwerty1234@disco-zombie.net diff --git a/test/scripts/4500-DKIM/4506 b/test/scripts/4500-DKIM/4506 index b2d53e8fc..14bba8346 100644 --- a/test/scripts/4500-DKIM/4506 +++ b/test/scripts/4500-DKIM/4506 @@ -1,6 +1,6 @@ # DKIM verify, errors # -exim -d-all+acl -DSERVER=server -bd -oX PORT_D +exim -DSERVER=server -bd -oX PORT_D **** # # This should fail verify (missing header hash in sig header) |