Kerio Mail Server/Connect is prone to plaintext command injection vulnerability.
# Copyright (C) 2011 Greenbone Networks GmbH
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-or-later
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.0.901194");
script_version("2022-04-28T13:38:57+0000");
script_tag(name:"last_modification", value:"2022-04-28 13:38:57 +0000 (Thu, 28 Apr 2022)");
script_tag(name:"creation_date", value:"2011-03-25 15:52:06 +0100 (Fri, 25 Mar 2011)");
script_cve_id("CVE-2011-1506");
script_tag(name:"cvss_base", value:"6.8");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:P/I:P/A:P");
script_name("Kerio Products 'STARTTLS' Plaintext Command Injection Vulnerability");
script_category(ACT_GATHER_INFO);
script_copyright("Copyright (C) 2011 Greenbone Networks GmbH");
script_family("General");
script_dependencies("gb_kerio_mailserver_detect.nasl");
script_mandatory_keys("KerioMailServer/detected");
script_xref(name:"URL", value:"http://secunia.com/advisories/43678");
script_xref(name:"URL", value:"http://www.securityfocus.com/bid/46767");
script_xref(name:"URL", value:"http://www.vupen.com/english/advisories/2011/0610");
script_tag(name:"impact", value:"Successful exploitation will allow attacker to execute arbitrary
commands in the context of the user running the application.");
script_tag(name:"affected", value:"Kerio MailServer versions 6.x
Kerio Connect version 7.1.4 build 2985");
script_tag(name:"insight", value:"This flaw is caused by an error within the 'STARTTLS'
implementation where the switch from plaintext to TLS is implemented below the
application's I/O buffering layer, which could allow attackers to inject commands
during the plaintext phase of the protocol via man-in-the-middle attacks.");
script_tag(name:"solution", value:"No known solution was made available for at least one year
since the disclosure of this vulnerability. Likely none will be provided anymore. General solution
options are to upgrade to a newer release, disable respective features, remove the product or
replace the product by another one.");
script_tag(name:"summary", value:"Kerio Mail Server/Connect is prone to plaintext command injection vulnerability.");
script_tag(name:"qod_type", value:"remote_banner");
script_tag(name:"solution_type", value:"WillNotFix");
exit(0);
}
include("host_details.inc");
include("version_func.inc");
cpe_list = make_list( "cpe:/a:kerio:kerio_mailserver", "cpe:/a:kerio:connect" );
if( ! infos = get_app_version_and_location_from_list( cpe_list:cpe_list, exit_no_version:TRUE ) )
exit( 0 );
vers = infos["version"];
path = infos["location"];
cpe = infos["cpe"];
if( "cpe:/a:kerio:kerio_mailserver" >< cpe ) {
if( vers =~ "^6\." && version_in_range( version:vers, test_version:"6.0", test_version2:"6.7.3.patch1" ) ) {
report = report_fixed_ver( installed_version:vers, fixed_version:"None", install_path:path );
security_message( port:0, data:report );
exit( 0 );
}
}
else if( "cpe:/a:kerio:connect" >< cpe ) {
if( vers =~ "^7\." && version_is_less_equal( version:vers, test_version:"7.1.4" ) ) {
report = report_fixed_ver( installed_version:vers, fixed_version:"None", install_path:path );
security_message( port:0, data:report );
exit( 0 );
}
}
exit( 99 );