Lucene search

K
openvasCopyright (C) 2002 [email protected]OPENVAS:136141256231011444
HistoryNov 03, 2005 - 12:00 a.m.

PHP Mail Function Header Spoofing Vulnerability

2005-11-0300:00:00
Copyright (C) 2002 [email protected]
plugins.openvas.org
21

6.5 Medium

AI Score

Confidence

Low

7.5 High

CVSS2

Access Vector

NETWORK

Access Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

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

0.028 Low

EPSS

Percentile

90.5%

The remote host is running a version of PHP <= 4.2.2.

The mail() function does not properly sanitize user input.

# SPDX-FileCopyrightText: 2002 [email protected]
# 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

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.11444");
  script_version("2023-08-03T05:05:16+0000");
  script_tag(name:"last_modification", value:"2023-08-03 05:05:16 +0000 (Thu, 03 Aug 2023)");
  script_tag(name:"creation_date", value:"2005-11-03 14:08:04 +0100 (Thu, 03 Nov 2005)");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/5562");
  script_tag(name:"cvss_base", value:"7.5");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:P/A:P");
  script_cve_id("CVE-2002-0985", "CVE-2002-0986");
  script_name("PHP Mail Function Header Spoofing Vulnerability");
  script_category(ACT_GATHER_INFO);
  script_family("Web application abuses");
  script_copyright("Copyright (C) 2002 [email protected]");
  script_dependencies("gb_get_http_banner.nasl");
  script_mandatory_keys("PHP/banner");
  script_require_ports("Services/www", 80);

  script_tag(name:"solution", value:"Contact your vendor for the latest PHP release.");

  script_tag(name:"summary", value:"The remote host is running a version of PHP <= 4.2.2.

  The mail() function does not properly sanitize user input.");

  script_tag(name:"impact", value:"This allows users to forge email to make it look like it is
  coming from a different source other than the server.

  Users can exploit this even if SAFE_MODE is enabled.");

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

  exit(0);
}

include("http_func.inc");
include("port_service_func.inc");

port = http_get_port(default:80);
banner = http_get_remote_headers(port:port);
if(!banner || "PHP" >!< banner)
  exit(0);

if(egrep(pattern:".*PHP/([0-3]\..*|4\.[01]\..*|4\.2\.[0-2][^0-9])", string:banner)) {
  security_message(port:port);
  exit(0);
}

exit(99);

6.5 Medium

AI Score

Confidence

Low

7.5 High

CVSS2

Access Vector

NETWORK

Access Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

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

0.028 Low

EPSS

Percentile

90.5%

Related for OPENVAS:136141256231011444