Lucene search

K
openvasCopyright (C) 2009 Greenbone AGOPENVAS:1361412562310900713
HistoryMay 29, 2009 - 12:00 a.m.

SquirrelMail Command Execution Vulnerability

2009-05-2900:00:00
Copyright (C) 2009 Greenbone AG
plugins.openvas.org
65

CVSS2

6.8

Attack Vector

NETWORK

Attack Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:M/Au:N/C:P/I:P/A:P

AI Score

6.5

Confidence

Low

EPSS

0.043

Percentile

92.3%

SquirrelMail Web application is prone to a command execution vulnerability.

# SPDX-FileCopyrightText: 2009 Greenbone AG
# 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-only

CPE = "cpe:/a:squirrelmail:squirrelmail";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.900713");
  script_version("2024-03-01T14:37:10+0000");
  script_tag(name:"last_modification", value:"2024-03-01 14:37:10 +0000 (Fri, 01 Mar 2024)");
  script_tag(name:"creation_date", value:"2009-05-29 07:35:11 +0200 (Fri, 29 May 2009)");
  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_cve_id("CVE-2009-1381");
  script_name("SquirrelMail Command Execution Vulnerability");
  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (C) 2009 Greenbone AG");
  script_family("Web application abuses");
  script_dependencies("squirrelmail_detect.nasl");
  script_mandatory_keys("squirrelmail/installed");

  script_xref(name:"URL", value:"http://secunia.com/advisories/35140");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/34916");
  script_xref(name:"URL", value:"http://www.debian.org/security/2009/dsa-1802");
  script_xref(name:"URL", value:"http://release.debian.org/proposed-updates/stable_diffs/squirrelmail_1.4.15-4+lenny2.debdiff");

  script_tag(name:"impact", value:"Successful exploitation will let the attacker execute arbitrary commands into
  the context of the affected web mailing application and can conduct cross site
  scripting, session fixation or phishing attacks.");

  script_tag(name:"affected", value:"SquirrelMail version prior to 1.4.19.");

  script_tag(name:"insight", value:"The flaw is due to improper handling of arbitrary commands in map_yp_alias
  function in functions/imap_general.php file via shell metacharacters in a
  username string that is used by the ypmatch program.");

  script_tag(name:"solution", value:"Upgrade to SquirrelMail version 1.4.19 or later.");

  script_tag(name:"summary", value:"SquirrelMail Web application is prone to a command execution vulnerability.");

  script_tag(name:"solution_type", value:"VendorFix");
  script_tag(name:"qod_type", value:"remote_banner_unreliable");

  exit(0);
}

include("host_details.inc");
include("version_func.inc");

if( ! port = get_app_port( cpe:CPE ) )
  exit( 0 );

if( ! vers = get_app_version( cpe:CPE, port:port ) )
  exit( 0 );

if( version_is_less_equal( version:vers, test_version:"1.4.18" ) ) {
  report = report_fixed_ver( installed_version:vers, fixed_version:"1.4.19" );
  security_message( port:port, data:report );
  exit( 0 );
}

exit( 99 );

CVSS2

6.8

Attack Vector

NETWORK

Attack Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:M/Au:N/C:P/I:P/A:P

AI Score

6.5

Confidence

Low

EPSS

0.043

Percentile

92.3%