Closed
Bug 156546
Opened 22 years ago
Closed 22 years ago
Forwarded inline: Incorrect signature/encryption status shown in header area
Categories
(MailNews Core :: Security: S/MIME, defect, P1)
Tracking
(Not tracked)
VERIFIED
FIXED
psm2.3
People
(Reporter: KaiE, Assigned: KaiE)
References
Details
(Whiteboard: [adt1 rtm])
Attachments
(1 file, 3 obsolete files)
2.37 KB,
patch
|
KaiE
:
review+
KaiE
:
superreview+
|
Details | Diff | Splinter Review |
There are multiple ways to see the bug.
-
Send a signed message to yourself.
Receive and forward that message inline to yourself, this time using encryption.
The received message will be shown as being both signed and encrypted.
-
Ensure that new signed messages you send to yourself are displayed as having a
valid signature.
Receive an opaquely signed mail from someboy, where the signature is not
verified, and an invalid signature symbol is shown.
Forward that message inline to yourself, and sign that message.
When receiving that message, an invalid signature will be shown, and worse, when
you view the message's security info, you'll not see your own cert, but you'll
see the cert of the signer of the forwarded message.
-
The previous case could be reversed, and that's probably the worst scenario. If
you forward a signed message, that can be verified by the recipient, but the
recipient is not able to verify your outermost signature, the recipient will see
it as a valid signed message.
-
Obtain an encrypted message that you can not decrypt (like an older message
encrypted to you, where you have no longer the private key to decrypt). That
message displays an invalid encryption.
Forward inline that message to yourself, encrypt it.
When receiving that message, you'll an invalid encryption icon, although you
should see a good encryption icon. (Since you were able to decrypt the outermost
message.)
Assignee | ||
Comment 1•22 years ago
|
||
The cause of this bug is in the mime parser for crypto mime types.
When we parse mime messages, only the crypto attributes of the outermost message
should result in setting UI attributes.
The current logic does not correctly the correct nesting of mime messages. For
some messages, it incorrectly assumes that inner message parts are still the
toplevel message.
The current logic increases the nesting level count, whenever a mimeMessage
object is seen, making the assumption that such an object were present for any
included sub message. However, that assumption is wrong for messages forwarded
inline.
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•22 years ago
|
||
This fix changes the code to use the following logic instead:
When walking up the chain of mime objects, in order to count the nesting level,
count every mime type except the crypto mime types.
The crypto mime types "encrypted/signed cms message" and "multipart signed cms
message" are viewed as being transparent to content nesting.
While this patch seems to work already for my test cases, before we start
reviewing, I'd like to check something. I wonder whether I should not check for
the special CMS classes, but rather for the more generic signature and
encrypted mime types.
Assignee | ||
Comment 3•22 years ago
|
||
Indeed, this patch just uses the superclasses of the cms special classes, and
still works.
Attachment #90676 -
Attachment is obsolete: true
Comment 4•22 years ago
|
||
Comment on attachment 90679 [details] [diff] [review]
Patch v2
R=ducarroz. Maybe you could remove those extern delacation not needed instead
of commenting them out.
Attachment #90679 -
Flags: review+
Assignee | ||
Comment 5•22 years ago
|
||
Actually, commenting it out made most sense in my patch v1. In v2, where I no
longer need the cms types, but only the base types, I now think I should avoid
adding the includes. This is a new patch that adds an "extern" declaration to
one of the files, no longer adds includes, and no longer comments out the other
extern declaration.
The patch behaves identically.
Attachment #90679 -
Attachment is obsolete: true
Comment 6•22 years ago
|
||
Comment on attachment 90687 [details] [diff] [review]
Patch v3
R=ducarroz
Attachment #90687 -
Flags: review+
Assignee | ||
Comment 7•22 years ago
|
||
Alec, can you please review?
Comment 8•22 years ago
|
||
cc ddrinan.
Comment 9•22 years ago
|
||
Comment on attachment 90687 [details] [diff] [review]
Patch v3
sr=alecf
Attachment #90687 -
Flags: superreview+
Assignee | ||
Comment 10•22 years ago
|
||
Checked in to trunk, marking fixed.
Nominating.
Severity: normal → major
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Priority: -- → P1
Resolution: --- → FIXED
Whiteboard: [adt1 rtm]
Target Milestone: --- → 2.3
Assignee | ||
Comment 11•22 years ago
|
||
The previous patch compiled on all platforms but Windows. I was required to
check in a bustage fix.
(Technical details: The failure were unresolved externals. The "extern"
declarations did not work on Windows. Therefore I had to go back to using
#include.)
For documentation purposes, this is the adjusted version of the previous patch,
having the bustage fix, as checked in to the trunk.
Attachment #90687 -
Attachment is obsolete: true
Assignee | ||
Comment 12•22 years ago
|
||
Comment on attachment 90790 [details] [diff] [review]
Patch v3 after bustage fix
Carring forward reviews to bustage fixed patch.
Attachment #90790 -
Flags: superreview+
Attachment #90790 -
Flags: review+
Comment 13•22 years ago
|
||
Did this make today's trunk build? If so, let's get it verified today.
Assignee | ||
Comment 14•22 years ago
|
||
Yes, today's trunk build contains the fix. I checked it in right before the
1.1beta freeze at midnight.
Comment 15•22 years ago
|
||
Charles promised to verify this on the trunk.
Comment 16•22 years ago
|
||
I have verified this on the trunk on OSX, win2k, and linux7.3.
However, bug 156715 is really pretty nasty on windows - it prevents me from
using s/mime functionality in a normal use model when composing messages. I had
to compose all my messages using my linux client and then view them through my
windows client.
Marking verified, as bug 156715 already exists to track the pref problem on
windows trunk.
Status: RESOLVED → VERIFIED
Comment 17•22 years ago
|
||
adt1.0.1+ (on ADT's behalf) approval for checkin to the 1.0 branch. pls check
this in asap, the add the fixed1.0.1 keyword. thanks!
Comment 18•22 years ago
|
||
please checkin to the 1.0.1 branch. once there, remove the "mozilla1.0.1+"
keyword and add the "fixed1.0.1" keyword.
Keywords: mozilla1.0.1 → mozilla1.0.1+
Assignee | ||
Comment 19•22 years ago
|
||
Checked in to 1.0 branch.
Whiteboard: [adt1 rtm] [ETA 07/12] → [adt1 rtm]
Comment 20•22 years ago
|
||
Verified on 20020715 Branch builds, with the exceptions noted in a separate bug
related specifically to issues forwarding messages inline on the Mac only.
Question: when I mark these bugs verified1.0.1, should I yank out all of the
other keywords, such as approval, nsbeta1+, etc?
Keywords: fixed1.0.1 → verified1.0.1
You need to log in
before you can comment on or make changes to this bug.
Description
•