Lucene search
K

Dovecot 'base_dir' Insecure Permissions Security Bypass Vulnerability

🗓️ 02 Dec 2009 00:00:00Reported by Copyright (C) 2009 Greenbone Networks GmbHType 
openvas
 openvas
🔗 plugins.openvas.org👁 31 Views

Dovecot 'base_dir' Insecure Permissions Security Bypass Vulnerability. Successful attack may allow malicious logins and further attacks due to insecure 'base_dir' directory permissions in Dovecot versions 1.2 before 1.2.8. Apply patch or upgrade to version 1.2.8

Related
Refs
Code
###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_dovecot_base_dir_sec_bypass_vuln.nasl 4865 2016-12-28 16:16:43Z teissa $
#
# Description: Dovecot 'base_dir' Insecure Permissions Security Bypass Vulnerability
#
# Authors:
# Antu Sanadi <[email protected]>
#
# Copyright:
# Copyright (c) 2009 Greenbone Networks GmbH, http://www.greenbone.net
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2
# (or any later version), as published by the Free Software Foundation.
#
# 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.
###############################################################################

tag_impact = "Successful attack could allow malicious people to log in as another user,
  which may aid in further attacks.
  Impact Level: System";
tag_affected = "Dovecot versions 1.2 before 1.2.8";
tag_insight = "This flaw is due to insecure permissions (0777) being set on the 'base_dir'
  directory and its parents, which could allow malicious users to replace auth
  sockets and log in as other users.";
tag_solution = "Apply the patch or upgrade to Dovecot version 1.2.8
  http://www.dovecot.org/download.html";
tag_summary = "This host has Dovecot installed and is prone to Security Bypass
  Vulnerability";

if(description)
{
  script_id(801055);
  script_version("$Revision: 4865 $");
  script_tag(name:"last_modification", value:"$Date: 2016-12-28 17:16:43 +0100 (Wed, 28 Dec 2016) $");
  script_tag(name:"creation_date", value:"2009-12-02 13:54:57 +0100 (Wed, 02 Dec 2009)");
  script_tag(name:"cvss_base", value:"4.6");
  script_tag(name:"cvss_base_vector", value:"AV:L/AC:L/Au:N/C:P/I:P/A:P");
  script_cve_id("CVE-2009-3897");
  script_bugtraq_id(37084);
  script_name("Dovecot 'base_dir' Insecure Permissions Security Bypass Vulnerability");
  script_xref(name : "URL" , value : "http://xforce.iss.net/xforce/xfdb/54363");
  script_xref(name : "URL" , value : "http://www.vupen.com/english/advisories/2009/3306");
  script_xref(name : "URL" , value : "http://www.dovecot.org/list/dovecot-news/2009-November/000143.html");

  script_tag(name:"qod_type", value:"executable_version");
  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (C) 2009 Greenbone Networks GmbH");
  script_family("General");
  script_dependencies("secpod_dovecot_detect.nasl");
  script_require_keys("Dovecot/Ver");
  script_tag(name : "impact" , value : tag_impact);
  script_tag(name : "affected" , value : tag_affected);
  script_tag(name : "insight" , value : tag_insight);
  script_tag(name : "solution" , value : tag_solution);
  script_tag(name : "summary" , value : tag_summary);
  exit(0);
}


include("version_func.inc");

dovecotVer = get_kb_item("Dovecot/Ver");
if((dovecotVer != NULL) && (dovecotVer =~ "^1\.2"))
{
  if(version_is_less(version:dovecotVer, test_version:"1.2.8")){
    security_message(0);
  }
}

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation