<?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>47631</bug_id>
          
          <creation_ts>2004-04-12 13:56 0000</creation_ts>
          <short_desc>app-admin/monit-4.2 multiple vulnerabilities in HTTP interface</short_desc>
          <delta_ts>2004-04-19 02:40:15 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>GLSA Errors</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          <bug_file_loc>http://www.tildeslash.com/monit/secadv_20040305.txt</bug_file_loc>
          
          
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>koon@gentoo.org</reporter>
          <assigned_to>security@gentoo.org</assigned_to>
          <cc>pYrania@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>koon@gentoo.org</who>
            <bug_when>2004-04-12 13:56:57 0000</bug_when>
            <thetext>monit versions 4.2 and before are vulnerable to these vulns :

------------------------------------------------------------------
1. Monit HTTP Interface Buffer Overflow Vulnerability
=====================================================

Monit implements a simple HTTP interface that supports Basic
authentication. This interface suffers from a buffer overflow
vulnerability when handling a client that authenticates with malformed
credentials. An attacker could send a carefully crafted Authorization
header to the monit server and cause the server to either crash or
worse to execute arbitrary code with the privileges of the monit user.


2. Off-By-One Overflow in Monit HTTP Interface
==============================================

This buffer overflow lies in the handling of POST submissions with
entity bodies. If the request body has the exact length of X bytes,
monit will write one byte past its designated input buffer. This error
can cause the monit server to crash.
------------------------------------------------------------------

Note that an there&apos;s a published exploit for the HTTP Interface Buffer Overflow Vulnerability :
http://www.securityfocus.com/archive/1/360121


Reproducible: Didn&apos;t try
Steps to Reproduce:</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>koon@gentoo.org</who>
            <bug_when>2004-04-12 13:59:16 0000</bug_when>
            <thetext>Fixed in upstream : version 4.2.1
Markus, we need to bump this one (once again) :)
Thanks in advance.
-K</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pYrania@gentoo.org</who>
            <bug_when>2004-04-12 16:42:43 0000</bug_when>
            <thetext>Bumped. They really should try finding all vulnerabilities first and make a bump afterwards. ;)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>koon@gentoo.org</who>
            <bug_when>2004-04-13 00:32:58 0000</bug_when>
            <thetext>Thanks Markus.
Ready for a GLSA.
-K</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>koon@gentoo.org</who>
            <bug_when>2004-04-19 02:40:15 0000</bug_when>
            <thetext>GLSA 200404-16 is out -- closing</thetext>
          </long_desc>
      
    </bug>

</bugzilla>