Closed
Bug 295118
Opened 19 years ago
Closed 19 years ago
Digital signature won't show in particular nested MIME message
Categories
(Thunderbird :: General, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 145180
People
(Reporter: marco, Assigned: mscott)
Details
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050513 Fedora/1.0.4-1.3.1 Firefox/1.0.4
Build Identifier: Thunderbird/1.0.2-1.3.3 (20050513) Fedora/1.0.4-1.3.1
I noticed that when receiving a message that have multiple nested MIME/multipart
sections, Thunderbird won't recognize the digital signature if the FIRST
"Content-Type" doesn't report multipart/signed, even if the digital signature is
actually in a nested section.
This particular situation I found out using Mailman 2.1.5 (still have to check
with other version) that sometimes adds the mailing list signature transforming
a mail message in a MIME multipart message with the original message (even if
MIME multipart itself) in the first section and the signature in the second.
(I am about to forward this to the Mailman mantainer too, but i don't expect a
change there, and Mailman is widely used)
Reproducible: Always
Steps to Reproduce:
I tried with these example message, sent directly to me telnetting to port 25 on
my SMTP.
It's easy to reproduce the trial just by changing both "RCPT" and "To:" lines
with your address, then just open up the telnet session and paste it.
Obviously, you will eventually find out that the digital signature is NOT
correct, but this is another matter, as the problem is simply that in the FIRST
case the signature won't even show, and in the second will.
I also changed the multipart boundaries to something more readable.
FIRST CASE (example of a mail with MIME multipart nested as Mailman would create):
>>>FROM HERE
MAIL FROM: <mmatarazzo@nuisoft.it>
RCPT TO: <marco@nuisoft.it>
DATA
From: Marco Matarazzo <mmatarazzo@nuisoft.it>
MIME-Version: 1.0
To: Marco <marco@nuisoft.it>
Subject: Trying it out
Content-Type: multipart/mixed; boundary="--mime"
This is a cryptographically signed message in MIME format.
----mime
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature";
micalg=sha1; boundary="--sign"
This is a cryptographically signed message in MIME format.
----sign
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Some text here.
----sign
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature
AtcwggJAoAMCAQICAw6/+jANBgkqhkiG9w0BAQQFADBiMQswCQYDVQQGEwJaQTElMCMGA1UE
ChMcVGhhd3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNv
ChMcVGhhd3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNv
bmFsIEZyZWVtYWlsIElzc3VpbmcgQ0EwHhcNMDUwNTIwMTMyNTI5WhcNMDYwNTIwMTMyNTI5
WjBHMR8wHQYDVQQDExZUaGF3dGUgRnJlZW1haWwgTWVtYmVyMSQwIgYJKoZIhvcNAQkBFhVt
bWF0YXJhenpvQG51aXNvZnQuaXQwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC0
4j8YEJnk4hje4AMjgWwIFBnOShJl5hskDKhYeKPhOV3ZwI9jxgIlWeYfL0C8O6nZt7QNuNPv
TKsDKWerLdmAG1uqC0422YUG40xgO41WWV3TX+th0CiJAqxACKQisryV3je86fvh7r+iDFyb
VHSUwV7k7xnfNgahNz6vZ+D0aWhFS4y1tlR4eSffDJPiFAwoW6QgcGl6RGE4JGFnHdHhmGOs
kEP9cfgIlbtph9FeiUbFKCJco+KJsRRiix8gJUX/me0tIthMCe9ObAGEm4s3MiCpVsUylXlE
MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIII+TCC
AtcwggJAoAMCAQICAw6/+jANBgkqhkiG9w0BAQQFADBiMQswCQYDVQQGEwJaQTElMCMGA1UE
BAUAA4GBAMHXePgSPAY9xiedXG7rcOIOledSYpraOLYcC3NAWwn/h40NT3Gq9M3iCMpSbp2/
LGLUE98fz4rFlYyDwy1ynNzLeqflHjaonwWmSHCUs7K0gThIiNrjTJ3FX3yW73nyqnnqOO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GSIb3DQEJEAILMWugaTBiMQswCQYD
VQQGEwJaQTElMCMGA1UEChMcVGhhd3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UE
----sign--
----mime
.
QUIT
>>>TO HERE
SECOND CASE:
Try it again after changing the line just after the "Subject":
Content-Type: multipart/mixed; boundary="--mime"
with
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature";
micalg=sha1; boundary="--mime"
Actual Results:
In the first case, the message won't show the digital signature.
In the second, it will.
Expected Results:
It would have shown the digital signature in both cases.
I tried to read MIME specification and I admit I cannot find out if nesting a
multipart/signed in a multipart/mixed is right.
I notice that (maybe, I am guessing) Mailman recognize the signed message, as it
repeats the "This is a cryptographically signed message in MIME format." line,
so maybe it should also set the message as multipart/signed and not
multipart/mixed, or, moreover, simply add another section to an already
multipart'ed (sorry for that) message.
Anyway, other clients (included Outlook Express, sadly) correctly recognize the
digital signature even in this case, and Thiunderbird won't. So i believe it
should be fixed, even if it's not entirely correct.
Related to Core bug 145180 or Core bug 159238?
Reporter | ||
Comment 2•19 years ago
|
||
> Related to Core bug 145180 or Core bug 159238?
It seems so. What is the best way to act? Remove this one ?
(In reply to comment #2)
> What is the best way to act? Remove this one ?
You could resolve this bug and mark it as a duplicate of the closest matching bug.
Reporter | ||
Comment 4•19 years ago
|
||
*** This bug has been marked as a duplicate of 145180 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•