<?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>88904</bug_id>
          
          <creation_ts>2005-04-12 15:25 0000</creation_ts>
          <short_desc>mail-filter/gld: Format String Flaws and Buffer Overflows</short_desc>
          <delta_ts>2005-04-13 05:23:06 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>http://securitytracker.com/alerts/2005/Apr/1013678.html</bug_file_loc>
          <status_whiteboard>B0 [glsa] jaervosz</status_whiteboard>
          
          <priority>P2</priority>
          <bug_severity>blocker</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>formula7@gentoo.org</reporter>
          <assigned_to>security@gentoo.org</assigned_to>
          <cc>net-mail@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>formula7@gentoo.org</who>
            <bug_when>2005-04-12 15:25:14 0000</bug_when>
            <thetext>Version(s): 1.3, 1.4
Description:  dong-hun you from INetCop Security reported several vulnerabilities in Gld. A remote user can obtain root privileges.

The &apos;server.c&apos; file contaisn several buffer overflows. A remote user can supply specially crafted input to trigger a buffer overflow and execute arbitrary code.

The &apos;cnf.c&apos; file contains several format string vulnerabilities, where user-supplied data is not properly validated and is passed to a syslog() call without the appropriate format string specifier. A remote user can supply specially crafted input to execute arbitrary code with root privileges.
Impact:  A remote user can execute arbitrary code with root privileges.

Solution:  No solution was available at the time of this entry.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jaervosz@gentoo.org</who>
            <bug_when>2005-04-12 23:07:09 0000</bug_when>
            <thetext>auditors and/or net-mail please advise.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tigger@gentoo.org</who>
            <bug_when>2005-04-13 02:12:38 0000</bug_when>
            <thetext>despite the various &quot;this is safe&quot; comments in the source code, it hasn&apos;t been thought out so well.

perl -e &apos;print &quot;request=&quot; . (&quot;x&quot; x 2000) . &quot;\n\n&quot;&apos; | nc localhost 2525

Overflow at: server.c:265

strcpy without proper length checks (despite comments in the code which say otherwise).

attacker decides what lands on the stack, so its easily exploitable.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jaervosz@gentoo.org</who>
            <bug_when>2005-04-13 02:55:24 0000</bug_when>
            <thetext>Has upstream been informed about this?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jaervosz@gentoo.org</who>
            <bug_when>2005-04-13 03:02:53 0000</bug_when>
            <thetext>Bummer, cached page here. 1.5 is released today. 

net-mail please bump.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ticho@gentoo.org</who>
            <bug_when>2005-04-13 03:04:33 0000</bug_when>
            <thetext>I&apos;ll do it.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jaervosz@gentoo.org</who>
            <bug_when>2005-04-13 03:15:30 0000</bug_when>
            <thetext>Default config IS affected -&gt; upgrading severity.

net-mail please provide a better default than this:

#
# Shall we bind only to loopback ? (0=No,1=Yes) (default is 0)
#
LOOPBACKONLY=0

#
# The list of networks allowed to connect to us (default is everybody)
# The format is network/cidrmask,....
#
# Uncomment the line to activate it.
#
#CLIENTS=192.168.168.0/24 172.16.0.0/19 127.0.0.1/32
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jaervosz@gentoo.org</who>
            <bug_when>2005-04-13 03:24:28 0000</bug_when>
            <thetext>net-mail please also fix the default user. Right now the default config make it run with root privs:

#
# The user used to run gld (default value is no user change)
# uncomment the line to activate it.
#
#USER=nobody

#
# The group used to run gld (default value is no group change)
# uncomment the line to activate it.
#
#GROUP=nobody
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ticho@gentoo.org</who>
            <bug_when>2005-04-13 03:30:42 0000</bug_when>
            <thetext>Ebuild for 1.5 in portage, x86 stable.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jaervosz@gentoo.org</who>
            <bug_when>2005-04-13 03:42:11 0000</bug_when>
            <thetext>amd64 please test and mark stable ASAP.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jaervosz@gentoo.org</who>
            <bug_when>2005-04-13 03:56:12 0000</bug_when>
            <thetext>amd64 please cvs up if you&apos;re already started:

[12:56:33] &lt;@Ticho&gt; jaervosz: updated the gld ebuild, since it installed few files in wrong places</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ticho@gentoo.org</who>
            <bug_when>2005-04-13 04:35:25 0000</bug_when>
            <thetext>It seems to work just fine on a busy amd64 mailserver I admin. Marked stable on amd64.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jaervosz@gentoo.org</who>
            <bug_when>2005-04-13 04:37:46 0000</bug_when>
            <thetext>Thx everyone. This one is ready for glsa.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jaervosz@gentoo.org</who>
            <bug_when>2005-04-13 05:23:06 0000</bug_when>
            <thetext>GLSA 200504-10</thetext>
          </long_desc>
      
    </bug>

</bugzilla>