Closed Bug 1314417 Opened 8 years ago Closed 8 years ago

Client is auto rendering base64 image URLs (?)

Categories

(Thunderbird :: Message Reader UI, defect)

45 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 322533

People

(Reporter: henickdotnet, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/602.2.14 (KHTML, like Gecko) Version/10.0.1 Safari/602.2.14

Steps to reproduce:

...Opened spammy HTML message that bypassed the history filter, because it is impossible (or poorly documented) to select single messages without opening them.

I did not hold back any of the offending messages that were in my inbox this morning, because I was in a hurry and didn't think of it. Once notified of a ticket, I'll be happy to check the message source and provide more details, forward the message with headers, or whatever else may help to get to the bottom of the issue... but at the moment I'm at Starbucks and not at all willing to get near that inbox until I'm back home and don't have to worry about fifty strangers believing me a brazen pervert.


Actual results:

An ad for purported Cialis, built around an unlicensed porn still photo full of girly bits in full and flagrant display, was displayed in the body of the message - but the usual "blocking external content" bar and Allow button were absent. The message just up and rendered.


Expected results:

When the message was selected, the expected behavior was that he usual "blocking external content" bar and Allow button would appear, while the offending image itself would remain hidden or signified by a broken-image icon.
tl;dr: nasty spammers are taking advantage of the client's RFC 2111 compliance, but the client doesn't distinguish RFC 2111 image parts from other message content... which really ought to fire a trigger for the user to opt-in image display like it does for images requested over port 80.

Here's the message source with the headers, blocks, and things intact, but with the base64 image source replaced to meet requirements of brevity:

Return-Path: <a776@tisoneills.com>
X-Original-To: ben@henick.net
Delivered-To: ben@henick.net
X-No-Auth: unauthenticated sender
X-No-Relay: not in my network
Received: from 42-73-250-206.EMOME-IP.hinet.net (42-73-250-206.EMOME-IP.hinet.net [42.73.250.206])
	by henick.net (Postfix) with ESMTPS id EA9041E3499A
	for <ben@henick.net>; Tue,  1 Nov 2016 14:33:06 -0500 (CDT)
Received: from [96.279.084.168] (helo=[192.168.160.134])
	by tisoneills.com with esmtpsa (TLSv1.2:DHE-RSA-AES128-SHA:128)
	(Exim 4.99_1)
	(envelope-from <a776@tisoneills.com>)
	id 08PPCU-DGLL1M-GH
	for <ben@henick.net>; Wed, 2 Nov 2016 03:20:15 +0800
Subject: Hello
To: <ben@henick.net>
From: "Mathias Lutz" <a776@tisoneills.com>
Message-ID: <ec02c86c-cd83-c41a-1f19-9e707a4ed409@1-trust.net>
Date: Wed, 2 Nov 2016 03:20:15 +0800
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101
 Thunderbird/45.2.0
MIME-Version: 1.0
Content-Type: multipart/alternative;
 boundary="------------1A0D56C0588E725AD3CC7A6F"

This is a multi-part message in MIME format.
--------------1A0D56C0588E725AD3CC7A6F
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit

Hello friend. How are you?


<http://ortoxela.com.gt/ok/q6ile.php>

With less than half her attention engaged, she could not for long dismiss her fear of imprisonment ahead. First the federal military command brought the entire USA under control, as General McDonough had done in Canada. My staff and I have our hands full as is, without adding unfounded suspicions that the Council itself is lying to the people. For instance, that every civilization technologically advanced beyond us must be peaceful, else they couldn't have lasted. . At its distance, how could your robot possibly tell whether that was Emissary passing through? Hancock frowned again. The Governor General of Demeter blinked at him across her desk.  Proceed upon signal. Daniel Brodersen was born in what was still called the state of Washington and had, indeed, not broken from the USA during the civil wars, as several regions attempted and the Holy Western Republic succeeded in doing.  After Bob's death, a special election overwhelmingly gave his office to John. May I ask today for a bit more of your trust? Sure, he said, if you tell me the reasons. Brodersen curbed his temper. But tell us, Joelle. He grinned to show he meant no harm.  He could well be right, likewise, about this whole idea of a plot against us being a sick fantasy.  Suppose the Emissary expedition learned it's a false idea.
______________
Best Regards,
Mathias Lutz


--------------1A0D56C0588E725AD3CC7A6F
Content-Type: multipart/related;
 boundary="------------C7A8917B8AA7A5D05FCAE689"


--------------C7A8917B8AA7A5D05FCAE689
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit

<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hello friend. How are you?<br>
    </p>
    <p><a href="http://ortoxela.com.gt/ok/q6ile.php"><img
          src="cid:part1.2F88FBF9.1587CFB6@tisserlaw.com" alt=""
          height="400" border="0" width="581"><br>
      </a></p>
    <p>With less than half her attention engaged, she could not for long dismiss her fear of imprisonment ahead. First the federal military command brought the entire USA under control, as General McDonough had done in Canada. My staff and I have our hands full as is, without adding unfounded suspicions that the Council itself is lying to the people. For instance, that every civilization technologically advanced beyond us must be peaceful, else they couldn't have lasted. . At its distance, how could your robot possibly tell whether that was Emissary passing through? Hancock frowned again. The Governor General of Demeter blinked at him across her desk.  Proceed upon signal. Daniel Brodersen was born in what was still called the state of Washington and had, indeed, not broken from the USA during the civil wars, as several regions attempted and the Holy Western Republic succeeded in doing.  After Bob's death, a special election overwhelmingly gave his office to John. May I ask today for a bit more of your trust? Sure, he said, if you tell me the reasons. Brodersen curbed his temper. But tell us, Joelle. He grinned to show he meant no harm.  He could well be right, likewise, about this whole idea of a plot against us being a sick fantasy.  Suppose the Emissary expedition learned it's a false idea.<br>
      ______________<br>
      Best Regards,<br>
      Mathias Lutz<br>
      <br>
    </p>
  </body>
</html>

--------------C7A8917B8AA7A5D05FCAE689
Content-Type: image/jpeg;
 name="d.jpg"
Content-Transfer-Encoding: base64
Content-ID: <part1.2F88FBF9.1587CFB6@tisserlaw.com>
Content-Disposition: inline;
 filename="d.jpg"

/9j/4AAQSkZJRgABAQEASABIAAD/2wBDABALDA4MChAODQ4SERATGCkbGBYWGDIkJh4pOzQ+PTo0OThBSV5QQUVZRjg5Um9TWWFkaWppP09ze3Jmel5naWX/wAALCACQAGwBAREA/8QAGgAAAQUBAAAAAAAAAAAAAAAABAABAgMFBv/EAD0QAAIBAwMABgYIBQMFAAAAAAECAwAEEQUSIRMxQVFhcQYiMlKBkRQVIzNCkqHhQ1OiscEWYtEmNILw8f/aAAgBAQAAPwDgKWafNKlSpxSpZyeqlSIpDxpqQJA4p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pRWVnbjg1CFNPSFQ0TF8ckGqDcyLavCkG71gV5FCat9KvbmLbGOibAkIIGKoaCf6ZqDCM7JYtqHPWcUDcWFy1naMsbdIoKOvhnIrobKK0Xpo7mNiDFtUjv4rMa/lsUa3NtK5GRGVGQano9u9tZYlGHdi5HdRuea52/sbg3sjRPhWOcVRpYPPwroIpl6LYTg5zipiRT+IU4ce8KkHX3h86kHX3h86XSL7wpdIvvCl0i+8PnTiRT+MCmLKe0UxYd4ps+NUzyRLJ66ISeeTiuZs7o2ufULZx24on64YfwT+an+uW7ID+apfXLgfcn81P9dv/J/q/an+uZP5P9X7VMaxIf4WP/L9qY6w4/g/1ftTrq7/AMkfm/apDVpCM9CPzftUhqshODCPzftU/rF8DMK8/wC79quSZ25McYHdv5P6VbO0e8HakmR11zY2NwaZk9bz7qZV25Az8KntwKUQDk57D2ipjCZbGceFTRstwR1VHcW9YjB8qdSTx2HtxVq7tuN3VSDtg7SMhgflREdwykbCCfKrre5mWQMAcY68ZotZ25LPJkkniPPbXMEKXyDS3c+1Uh35p88Yz11IcdtPuHJBFOjjjkU5udh7/IVcqsYwwI5GeqmVsA+vikGB62Iz4VYkmzPJGOc4oqKZcYEjbOwgUSDHj76ceS/tXNENu4UUgjduBUwrdWRT7O9qiRj8ZpjIvfTdKoHV86qdmkY7V6u2kt1MoxuOKiJ5PeqX0mX3qZ53kADkkDqpklZGDJwR1USNQuf5hr//2Q==
--------------C7A8917B8AA7A5D05FCAE689--

--------------1A0D56C0588E725AD3CC7A6F--
Component: Untriaged → Message Reader UI
So your complaint is that embedded and attached images actually show when the message HTML is rendered. That's desired behaviour. You could equally transmit porn as ASCII art ;-)

You can view your messages as plain text (View > Message Body As > Plain Text).

Richard, do you know of a preference to switch off all image display?

Magnus, this is a WONTFIX, right?
Flags: needinfo?(richard.marti)
Flags: needinfo?(mkmelin+mozilla)
I'm not aware of a pref to disable non-remote images. The only solution I see is to use View > Message Body As > Plain Text.
Flags: needinfo?(richard.marti)
It seems we've wandered from questions of bugginess (which doesn't exist here) to discussions of usability/HCI/propriety.

To reframe the issue: anyone can dump porn-bedazzled messages (or goodness knows what else) into an inbox.  THERE IS NO WAY TO PREVENT THIS BEHAVIOR short of a perfectly-tuned spam filter, emphasis on "perfectly".

There is no preference setting to shut down this behavior universally, which is why I expressly marked this as a "Message Reader UI" issue once I learned that the client behavior itself is compliant.

Even so, don't you think the user should have the last word on the matter of rendering binary content in the message reader?
> There is no preference setting to shut down this behavior universally, which
> is why I expressly marked this as a "Message Reader UI" issue once I learned
> that the client behavior itself is compliant.

...Turns out I'm only right about this on a technicality.  It's not a Preference bit, but the View menu option is universal.  Fair enough.

Unbury it or move/duplicate it in the Preference panes, then?  I think my own reaction demonstrates that nobody's going to look for this unless and until they NEED it, unless it's turned on by default (which would cause fury, I'm sure).
I think we could have a pref for this, if someone provided a patch (likely tricky to do though).
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Flags: needinfo?(mkmelin+mozilla)
Resolution: --- → DUPLICATE
(In reply to Magnus Melin from comment #6)

> *** This bug has been marked as a duplicate of bug 322533 ***

Oh, excellent.  Should I be ashamed that I didn't find the earlier bug?
Heh, no worries. I'll tell you this: very few feature requests don't already have an entry in bugzilla, unless it's related to very new technology.
You need to log in before you can comment on or make changes to this bug.