<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>68976</bug_id>
          
          <creation_ts>2004-10-26 06:13 0000</creation_ts>
          <short_desc>mail-client/thunderbird*, net-www/mozilla-firebird*, net-www/mozilla: insecure temp files</short_desc>
          <delta_ts>2005-08-15 21:59:38 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Security</product>
          <component>Vulnerabilities</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          <bug_file_loc>https://bugzilla.mozilla.org/show_bug.cgi?id=251297</bug_file_loc>
          <status_whiteboard>A4 [noglsa] koon</status_whiteboard>
          
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>vorlon@gentoo.org</reporter>
          <assigned_to>security@gentoo.org</assigned_to>
          <cc>mozilla@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>vorlon@gentoo.org</who>
            <bug_when>2004-10-26 06:13:05 0000</bug_when>
            <thetext>https://bugzilla.mozilla.org/show_bug.cgi?id=251297
_____
http://broadcast.ptraced.net/advisories/008-firefox.thunderbird.txt as posted on FD:


Mozilla Thunderbird 0.8 / Firefox 0.9.3 temporary files (local)

Martin (broadcast@ptraced.net)

-------------------
Program Description
-------------------

&quot;Thunderbird, our latest email program, includes intelligent spam 
filters, spell-checking, security, customization, and newsgroups 
support.&quot;

www.mozilla.org

-------------------
Problem Description
-------------------

When opening an attachment, or a link included in an email, Thunderbird 
prompts the user with a dialog box, giving the choice to &quot;Save to Disk&quot; 
or to &quot;Open with&quot; &lt;default program&gt;.

For example, we receive a PDF document attached, and on the Attachments 
section, we choose &quot;Open&quot;. 

broadcast:/tmp$ ls -l *.pdf
-rw-------  1 broadcast broadcast 2002560 2004-10-24 18:38 wskbq43m.pdf

While the dialog box is still open, the file permissions are OK, and the 
filename is random (except for the extension). 
If we choose to save it to disk, and check /tmp again:

broadcast:/tmp$ ls -l *.pdf
ls: *.pdf: No such file or directory

Great, it&apos;s gone. Now let&apos;s choose to open it with the default viewer 
(in my case, xpdf).
Again, while the dialog box is open, there are no apparent problems.

broadcast:/tmp$ ls -l *.pdf
-rw-------  1 broadcast broadcast 2002560 2004-10-24 18:42 hp1h30si.pd

But after choosing to open it with xpdf:

broadcast:/tmp$ ls -l *.pdf
-rw-r--r--  1 broadcast broadcast 2002560 2004-10-24 18:42 programming.pdf

The file becomes world readable, until the user closes xpdf, or whatever 
application he chose to read the attachment.
Also, the filename becomes predictable, but if the filename already 
exists on /tmp, Thunderbird will choose a similar filename, and won&apos;t 
work on the existing one.

This exact issue affects Mozilla Firefox 0.9.3. I haven&apos;t tested 
older/newer versions, and all of this was tested under Debian Unstable.

A copy of this advisory and future updates on this issue may be found on:
http://broadcast.ptraced.net/advisories/008-firefox.thunderbird.txt

______________
reply from Dan Veditz on FD:

This was fixed Friday (bug 251297) and the fix will be in next versions of
Mozilla products.

It looks like the bug was introduced last March which would make Mozilla 1.7
and Firefox 0.9 and later vulnerable, Mozilla 1.6 and Firefox 0.8 and
earlier OK. Thunderbird has been vulnerable from version 0.6 on.

-Dan Veditz</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vorlon@gentoo.org</who>
            <bug_when>2004-10-26 06:19:51 0000</bug_when>
            <thetext>for reference:

http://secunia.com/advisories/12956/
http://securitytracker.com/alerts/2004/Oct/1011916.html
http://securitytracker.com/alerts/2004/Oct/1011915.html

___

mozilla team, pls update/patch where appropriate</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>koon@gentoo.org</who>
            <bug_when>2004-10-26 09:20:25 0000</bug_when>
            <thetext>Given the severity, that probably should wait for upstream next version...
Mozilla team, please comment.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>agriffis@gentoo.org</who>
            <bug_when>2004-10-26 15:54:06 0000</bug_when>
            <thetext>I agree with Koon (speaking for the mozilla team unless Brad disagrees).  This doesn&apos;t warrant a special distro-patched release.  We&apos;ll wait for upstream</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>koon@gentoo.org</who>
            <bug_when>2004-11-10 05:40:45 0000</bug_when>
            <thetext>Looks like it&apos;s fixed in Firefox 1.0, Thunderbird 0.9... even if http://www.mozilla.org/projects/security/known-vulnerabilities.html is not up to date. Dunno about a fixed version in Mozilla though.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>koon@gentoo.org</who>
            <bug_when>2004-11-23 07:58:10 0000</bug_when>
            <thetext>Firefox is fixed in version 1.0, according to http://www.squarefree.com/burningedge/releases/1.0.html</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>koon@gentoo.org</who>
            <bug_when>2004-12-20 02:52:02 0000</bug_when>
            <thetext>Fixed in Mozilla 1.7.5, according to :
http://www.mozilla.org/releases/mozilla1.7.5/changelog.html

Waiting for mozilla-bin to reach 1.7.5.

mozilla-1.7.5 : &quot;x86 ppc sparc alpha amd64 ia64&quot;
mozilla-bin-1.7.5 : not in portage yet
mozilla-firefox-1.0 : &quot;x86 ppc sparc alpha amd64 ia64 arm&quot;
mozilla-firefox-bin-1.0 : ready
&gt;=mozilla-thunderbird-0.9 : &quot;x86 ppc sparc alpha amd64 ia64&quot;
&gt;=mozilla-thunderbird-bin-0.9 : &quot;x86&quot;
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>koon@gentoo.org</who>
            <bug_when>2004-12-20 06:20:26 0000</bug_when>
            <thetext>mozilla team : please provide a mozilla-bin 1.7.5

arch teams : please start to test mozilla-1.7.5, mozilla-firefox-1.0 and mozilla-thunderbird[-bin]-1.0 and mark stable accordingly.

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gustavoz@gentoo.org</who>
            <bug_when>2004-12-20 07:02:04 0000</bug_when>
            <thetext>mozilla-thunderbird-1.0 sparc stable.
mozilla-firefox-1.0 was already sparc stable.
now building, then testing mozilla-1.7.5.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>absinthe@gentoo.org</who>
            <bug_when>2004-12-20 07:19:19 0000</bug_when>
            <thetext>amd64 done.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gustavoz@gentoo.org</who>
            <bug_when>2004-12-20 12:19:07 0000</bug_when>
            <thetext>mozilla-1.7.5 sparc stable, we&apos;re done.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tester@gentoo.org</who>
            <bug_when>2004-12-20 13:11:07 0000</bug_when>
            <thetext>On x86, should I mark mozilla-thunderbird 0.9 or 1.0 ?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>koon@gentoo.org</who>
            <bug_when>2004-12-20 13:19:11 0000</bug_when>
            <thetext>1.0 is mostly a stabilized 0.9 release. As a Thunderbird user, I can only recomment marking the 1.0 version. From a security point of view, these two versions are probably identical (but changelogs are quite obscure on this). In brief, I would say, mark thunderbird-1.0, and if you can&apos;t, mark 0.9.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tester@gentoo.org</who>
            <bug_when>2004-12-21 01:06:11 0000</bug_when>
            <thetext>mozilla-1.7.5 and thunderbird-1.0 are x86... re-add us if mozilla-bin needs to be tested... </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kloeri@gentoo.org</who>
            <bug_when>2004-12-21 03:54:58 0000</bug_when>
            <thetext>Alpha stable.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>koon@gentoo.org</who>
            <bug_when>2004-12-28 12:38:38 0000</bug_when>
            <thetext>mozilla team: please provide a mozilla-bin-1.7.5 ebuild.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>chriswhite@gentoo.org</who>
            <bug_when>2004-12-28 13:41:33 0000</bug_when>
            <thetext>ok, 1.7.5-bin put in cvs.  Marked x86 stable already.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>koon@gentoo.org</who>
            <bug_when>2004-12-29 00:35:40 0000</bug_when>
            <thetext>mozilla-1.7.5 : still needs &quot;ppc&quot; and &quot;ia64&quot;
mozilla-bin-1.7.5 : ready
&gt;=mozilla-firefox-1.0 : still needs &quot;ppc&quot; &quot;ia64&quot; and &quot;arm&quot;
mozilla-firefox-bin-1.0 : ready
&gt;=mozilla-thunderbird-0.9 : still needs &quot;ppc&quot; and &quot;ia64&quot;
&gt;=mozilla-thunderbird-bin-0.9 : ready

ppc, ia64, arm : please test and mark stable</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>josejx@gentoo.org</who>
            <bug_when>2004-12-29 04:21:56 0000</bug_when>
            <thetext>Tested and marked mozilla-firefox-1.0 and mozilla-thunderbird-1.0 ppc stable.  If no one else gets to it, I&apos;ll test mozilla-1.7.5 tomorrow.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>koon@gentoo.org</who>
            <bug_when>2005-01-01 10:58:27 0000</bug_when>
            <thetext>Please vote on GLSA need. This is a temporary disclosure of file attachment contents. I vote NO for this one.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jaervosz@gentoo.org</who>
            <bug_when>2005-01-01 14:35:27 0000</bug_when>
            <thetext>I vote NO as well.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>koon@gentoo.org</who>
            <bug_when>2005-01-02 10:36:39 0000</bug_when>
            <thetext>Closed without GLSA.
arm, ia64, remember to mark mozilla 1.7.5 stable</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>koon@gentoo.org</who>
            <bug_when>2005-01-05 01:12:33 0000</bug_when>
            <thetext>GLSA 200501-03</thetext>
          </long_desc>
      
    </bug>

</bugzilla>