Lucene search

K
openvasCopyright (C) 2011 Greenbone Networks GmbHOPENVAS:801577
HistoryJan 21, 2011 - 12:00 a.m.

Hastymail2 Session Cookie Security Bypass Vulnerability

2011-01-2100:00:00
Copyright (C) 2011 Greenbone Networks GmbH
plugins.openvas.org
6

0.003 Low

EPSS

Percentile

69.8%

The host is running Hastymail2 and is prone to security bypass
vulnerability.

##############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_hastymail2_sec_bypass_vuln.nasl 7029 2017-08-31 11:51:40Z teissa $
#
# Hastymail2 Session Cookie Security Bypass Vulnerability
#
# Authors:
# Antu Sanadi <[email protected]>
#
# Copyright:
# Copyright (c) 2011 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 exploitation will allow remote attackers to capture this cookie
  by intercepting its transmission within an HTTP session.
  Impact Level: Application";
tag_affected = "Hastymail2 version prior to RC 8";
tag_insight = "The flaw is due to error in handling of session cookie, which fails
  to set the secure flag for the session cookie in an HTTPS session.";
tag_solution = "Upgrade to the Hastymail2 RC 8 or later
  For updates refer to http://www.hastymail.org/blogs/News/";
tag_summary = "The host is running Hastymail2 and is prone to security bypass
  vulnerability.";

if(description)
{
  script_id(801577);
  script_version("$Revision: 7029 $");
  script_tag(name:"last_modification", value:"$Date: 2017-08-31 13:51:40 +0200 (Thu, 31 Aug 2017) $");
  script_tag(name:"creation_date", value:"2011-01-21 14:38:54 +0100 (Fri, 21 Jan 2011)");
  script_cve_id("CVE-2009-5051");
  script_tag(name:"cvss_base", value:"5.0");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:N/A:N");
  script_name("Hastymail2 Session Cookie Security Bypass Vulnerability");
  script_xref(name : "URL" , value : "http://www.hastymail.org/security/");

  script_tag(name:"qod_type", value:"remote_banner");
  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (C) 2011 Greenbone Networks GmbH");
  script_family("Web application abuses");
  script_dependencies("gb_hastymail2_detect.nasl");
  script_require_ports("Services/www", 80);
  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("http_func.inc");
include("version_func.inc");

## Get HTTP Port
port = get_http_port(default:80);
if(!port){
  exit(0);
}

## Get version from KB
ver = get_kb_item("www/" + port + "/Hastymail2");
if(!ver){
  exit(0);
}

hm2Ver = eregmatch(pattern:"^(.+) under (/.*)$", string:ver);
if(hm2Ver[1])
{
  ver = ereg_replace(pattern:"([A-Za-z]+)", replace:"0.", string:hm2Ver[1]);
  if(ver != NULL)
  {
    ## Check for version before RC8
    if(version_is_less(version: ver, test_version:"2.8")){
      security_message(port);
    }
  }
}

0.003 Low

EPSS

Percentile

69.8%

Related for OPENVAS:801577